How To Use
Build and Deploy
Build and deploy on EVM chains
Build and deploy on Near Protocol
Register chain
Register EVM Chain
Set relay contract on EVM Chains
register in relay contract
Register Near
NOTE: Near Protocol testnet chain id 5566818579631833089, mainnet chain id 5566818579631833088
Register token
Deploy vault token on relay chain Every token has a vault token. The vault token will distribute to the users that provide cross-chain liquidity. The mos relay contract is manager of all vault tokens.
Register token on relay chain
Set fee ratio on relay chain
Add Cross-chain Token
Relay Chain Bind the token mapping relationship between the two chains that requires cross-chain
Relay Chain sets the token cross-chain fee ratio
Altchain sets token mintable
NOTE: If set the token mintable, the token must grant the minter role to mos contract.
Altchain sets bridge token
Token cross-chain transfer and deposit
token transfer
token depsit
Note that the
--token
parameter is optional, if not set, it means to transfer out Native Token. Similarly --address is also an optional parameter. If it is not filled in, it will be the default caller's address.transfer native token to other chain:
transfer native token to sender's address:
List token mapped chain
relay chain
altchains
Last updated