Skip to main content

Module directives

Module directives 

Expand description

EIP-712 directive structs, domains, and signer recovery helpers.

Structs§

ActionSpec
CancelOrderByCloid
CancelOrderByOid
CreditOption
CreditToken
DirectiveSigningError
HCTransferOption
HCUpdateApiWallet
HLCancel
HLCancelByCloid
HLOrder
HLSendAsset
LimitOrder
ParseActionKeyError
SendAsset
StartLiquidation
StopLiquidation
SystemCreditOption
SystemCreditToken
SystemStartLiquidation
SystemStopLiquidation
SystemWithdrawToken
TransferOption
TypeFieldSpec
TypedDataSpec
UpdateApiWallet
WithdrawToken

Enums§

ActionKey
DirectiveError
DomainKind
SignerType

Constants§

HC_ACTION_ID_TRANSFER_OPTION
HC_ACTION_ID_UPDATE_API_WALLET
HC_ACTION_VERSION
HL_ACTION_ID_CANCEL_BY_CLOID
HL_ACTION_ID_CANCEL_BY_OID
HL_ACTION_ID_LIMIT_ORDER
HL_ACTION_ID_SEND_ASSET
HL_ACTION_VERSION
HL_TIF_ALO
HL_TIF_GTC
HL_TIF_IOC
HYPERCALL_API_DOMAIN_NAME
HYPERCALL_DOMAIN_VERSION
HYPERCALL_MAINNET_CHAIN_ID
HYPERCALL_MANAGER_DOMAIN_NAME
HYPERCALL_RSM_DOMAIN_NAME
HYPERCALL_TESTNET_CHAIN_ID
SYSTEM_ACTION_ID_CREDIT_OPTION
SYSTEM_ACTION_ID_CREDIT_TOKEN
SYSTEM_ACTION_ID_START_LIQUIDATION
SYSTEM_ACTION_ID_STOP_LIQUIDATION
SYSTEM_ACTION_ID_WITHDRAW_TOKEN
SYSTEM_ACTION_VERSION

Functions§

hypercall_api_domain
hypercall_manager_domain
hypercall_rsm_domain
recover_address_from_signature_bytes
recover_hc_update_api_wallet_signer
recover_hl_cancel_by_cloid_signer
recover_hl_cancel_by_oid_signer
recover_hl_order_signer
recover_rsm_hl_cancel_by_cloid_signer
recover_rsm_hl_cancel_by_oid_signer
recover_rsm_hl_order_signer
recover_rsm_hl_send_asset_signer
recover_system_credit_option_signer
recover_system_credit_token_signer
recover_system_start_liquidation_signer
recover_system_stop_liquidation_signer
recover_system_withdraw_token_signer
sign_directive_with_signer