View Source Changelog
0.3.1
Changed
User-signed actions now sign with
signatureChainId0x66eee(421614). The EIP-712 domain'schainIdand the action'ssignatureChainIdmust agree, because the exchange rebuilds the domain fromsignatureChainIdto recover the signer. They did agree before, at0xa4b1(42161), so signatures verified — but that diverged from the official Python SDK and the nktkas TypeScript SDK, which both use0x66eee. Signatures are now byte-comparable with both.Both values are accepted by the exchange; only self-consistency matters. The Hyperliquid frontend itself sends
0xa4b1(seetest/debug/send_asset_debug_test.exs, built from captured payloads). Setconfig :hyperliquid, signature_chain_id: 42_161to restore the previous behaviour.
Fixed
- The
usdSendEIP-712 test vector now passes. It had asserted the reference SDKs'0x66eeesignature while the library signed with0xa4b1.
Added
Hyperliquid.Config.signature_chain_id/0andsignature_chain_id_hex/0— a single source of truth for a value that was previously hardcoded in the Rust NIF and in a dozen Elixir modules independently. That duplication is what allowed the domain andsignatureChainIdto drift apart beforee0e67bf.Hyperliquid.Api.Exchange.UserSigned— shared EIP-712 domain and signing for user-signed actions. The five actions that previously signed through specialized Rust NIFs (usdSend,withdraw3,spotSend,approveAgent,approveBuilderFee) now go through it, so configuration reaches them. Verified byte-identical to the NIF path before switching.
Upgrade notes
Precompiled NIFs are rebuilt for this release: the Rust chain/1 default moved
to 421614 so the standalone Signer.sign_* functions stay in step with
Config.signature_chain_id/0.
0.3.0
Fixed
- L1 action signing was non-deterministic. The connection id is the keccak of
the action's msgpack encoding, and msgpack preserves field order, so field order
is part of the signed preimage. Actions were encoded straight from Elixir maps,
which do not preserve insertion order — for atom keys the order follows the atom
table, which is populated differently on every BEAM run. The same action hashed
to a different connection id on each boot. Added
Hyperliquid.Api.ActionEncoder, which renders actions in canonical field order; the signed preimage and the request body are now built from the same canonicalized value. Verified against the reference Python SDK. - Candle close time (
T) was silently destroyed.to_snake_case/1downcased a lone uppercase letter, collapsing"T"onto"t". Affected every non-raw HTTP response, and fixed at all four key-transform sites. Thanks @code-supply (#7). clearinghouseStatesubscriptions could not target the main perps dex.validate_required/2treats""as missing, which is the documented default.dexis now optional. Thanks @code-supply (#8).
Added
- Full endpoint parity with the nktkas TypeScript SDK (v0.33.3): 78 info endpoints, 60 exchange actions, 31 subscription channels.
- HIP-4 prediction markets:
outcomeMeta,outcomeTemplates,settledOutcome,activateOutcomeDeployer,userOutcome,outcomeMetaUpdates. - Gossip priority and routing:
gossipPriorityAuctionStatus,gossipPriorityBid,usdcRouting,perpConciseAnnotations,fastAssetCtxs. - Exchange actions:
agentSendAsset,authorizeAqav2Role,finalizeEvmContract,hip3LiquidatorTransfer,topUpIsolatedOnlyMargin,stakingLinkDisableTradingUser. - Order priority fees:
groupingaccepts{:priority, rate}, serialized as{"p": rate}where the rate is the fractionrate / 1e8. - Documented the
FrontendMarkettime-in-force.
Changed
- Updated rustler to 0.38. Requires the
init!NIF list to be dropped (0.38 auto-registers#[rustler::nif]functions) and the Rust crate bumped to match. - Fixed local NIF builds:
crate: "signer_nif"resolved tonative/signer_nif, but the crate lives innative/signer, soHYPERLIQUID_BUILD_NIF=1never worked. Thanks @code-supply (#9).
Upgrade notes
Precompiled NIFs are rebuilt for this release. Anyone vendoring the 0.2.2
artifacts must take the 0.3.0 ones — the older binaries reject priority grouping
with invalid type: map, expected a string.
0.2.0
- Complete DSL migration: all endpoints defined via declarative macros (
use Endpoint,use SubscriptionEndpoint) - 62 Info endpoints, 38 Exchange endpoints, 26 WebSocket subscription channels
- Added Explorer API modules (
BlockDetails,TxDetails,UserDetails) and Stats modules - Added
Hyperliquid.Telemetrywith events for API, WebSocket, cache, RPC, and storage - Added
:telemetryinstrumentation to WebSocket connection/manager, cache init, RPC transport, and storage writer - Added
Hyperliquid.Transport.Rpcfor JSON-RPC calls to the Hyperliquid EVM - Ecto schema validation and optional Postgres persistence for subscription data
- Private key is now optional with config fallback and address validation
- Fixed EIP-712 domain name and chainId for all exchange modules
- Normalized market order prices to tick size in asset-based builder
0.1.6
- Updated l2Book post req to include sigFig and mantissa values
0.1.5
- Added new userFillsByTime endpoint to info context
0.1.4
- Added nSigFigs and mantissa optional params to l2Book subscription, add streamer pid to msg
0.1.3
- Added functions to cache for easier access and allow intellisense to help you see what's available