Skip to main content

Module spot

Module spot 

Source
Expand description

Deploying a HIP-1 spot token and its HIP-2 hyperliquidity: every spotDeploy variant, all L1 actions, and finalizeEvmContract, which completes a token’s link to a HyperEVM contract. The reads that go with them are in tokens.

Re-exports§

pub use evm::EvmFinalizer;
pub use evm::FinalizeEvmContract;
pub use share::FeeShare;

Modules§

evm
finalizeEvmContract: the second half of linking a spot token to a HyperEVM ERC-20, sent by the contract’s deployer or the finalizer its storage names.
share
The deployer trading fee share: the part of a token’s trading fees its deployer keeps, sent as a percentage string.

Enums§

SpotDeploy
{"type":"spotDeploy",<variant>:{..}}. A token is deployed in five steps sent in this order: RegisterToken2, UserGenesis (as many times as needed), Genesis, RegisterSpot and RegisterHyperliquidity. The rest are optional. Wei amounts are integers in the token’s wei decimals.