Expand description
USDC in and out of Hyperliquid through the Arbitrum bridge. In: a USDC transfer to the bridge
on Arbitrum, credited to the same address on Hyperliquid in about a minute; under
MINIMUM_DEPOSIT it is lost. Out: withdraw3 on the venue (crate::transfer::Withdraw3).
The reads before a deposit are crate::client::evm::rpc queries, sent by the caller.
Enums§
Constants§
- MAINNET_
BRIDGE - The Hyperliquid bridge on Arbitrum One.
- MAINNET_
USDC - Native USDC on Arbitrum One.
- MINIMUM_
DEPOSIT - Below this the bridge credits nothing and the USDC is gone.
- TESTNET_
BRIDGE - Testnet’s bridge, on Arbitrum Sepolia.
- TESTNET_
USDC - The USDC testnet’s bridge takes, on Arbitrum Sepolia.
Functions§
- bridge
- The bridge a deposit on
networkgoes to. - deposit_
calldata usdc_transfer_calldatato the network’s bridge, refusing what it would lose. The transaction goes tousdconNetwork::arbitrum_chain_idwith no value.- eth_
amount - An
eth_balance_requestanswer as ETH, exactly. - eth_
balance_ request - The owner’s ETH, for gas, at the latest block. Its answer reads with
eth_amount. - rpc_url
- A public JSON-RPC for the Arbitrum chain the bridge is on (
Network::arbitrum_chain_id). - usdc
- The USDC contract a deposit on
networkis a transfer of. - usdc_
amount - A
usdc_balance_requestanswer as USDC, exactly. - usdc_
balance_ request - The owner’s USDC on the network’s Arbitrum chain:
balanceOfthrougheth_callat the latest block. Its answer reads withusdc_amount. - usdc_
transfer_ calldata 0xcalldata for USDCtransfer(to, amount)(erc20::transfer). The amount is scaled to six decimals exactly; a seventh place is refused, never rounded.