An Algodv2 client
The ID of the token bridge
The asset index
Transaction ID
Attest given token from Aptos.
Address of token bridge
Origin chain ID
Address of token on origin chain
Transaction payload
Creates attestation message
Address of Inj token bridge contract
Address of wallet in inj format
Name or address of the asset to be attested For native assets the asset string is the denomination. For foreign assets the asset string is the inj address of the foreign asset
Message to be broadcast
Constructs payload to create wrapped asset.
Note that this function is typically called in tandem with createWrappedTypeOnAptos
because
we must first create the CoinType that is used by create_wrapped_coin<CoinType>
. Since it's
not possible to create a resource and use it in the same transaction, this is broken into
separate transactions.
Address of token bridge
Bytes of attest VAA
Transaction payload
Constructs payload to create wrapped asset type. The type is of form {{address}}::coin::T
,
where address is sha256_hash(tokenBridgeAddress | chainID | "::" | originAddress | 0xFF)
.
Note that the typical createWrapped call is broken into two parts on Aptos because we must first
create the CoinType that is used by create_wrapped_coin<CoinType>
. Since it's not possible to
create a resource and use it in the same transaction, this is broken into separate transactions.
Address of token bridge
Bytes of attest VAA
Transaction payload
Get qualified type of asset on Aptos given its origin info.
Client used to transfer data to/from Aptos node
Address of token bridge
Chain ID of chain asset is originally from
Asset address on origin chain
Fully qualified type of asset on Aptos
Returns a foreign asset address on Ethereum for a provided native chain and asset address, AddressZero if it does not exist
zero pad to 32 bytes
Returns the address of the foreign asset
Address of token bridge contact
Holds the wallet and signing information
The chainId of the origin of the asset
The address of the origin asset
The foreign asset address or null
Returns a foreign asset address on Solana for a provided native chain and asset address
zero pad to 32 bytes
Returns true if this transfer was completed on Algorand
AlgodV2 client
Most likely the Token bridge ID
VAA to check
true if VAA has been redeemed, false otherwise
Determine whether or not the transfer in the given VAA has completed on Aptos.
Client used to transfer data to/from Aptos node
Address of token bridge
Bytes of transfer VAA
True if transfer is completed
Return if the VAA has been redeemed or not
The Injective token bridge contract address
The signed VAA byte array
Holds the wallet and signing information
true if the VAA has been redeemed.
This function is used to check if a VAA has been redeemed on terra2 by querying the token bridge contract.
The token bridge address (bech32)
The signed VAA byte array
The LCD client. Only used for querying, not transactions will be signed
Returns whethor or not an asset on Algorand is a wormhole wrapped asset
Algodv2 client
token bridge ID
Algorand asset index
true if the asset is wrapped
Determines whether or not given address is wrapped or native to Aptos.
Client used to transfer data to/from Aptos node
Address of token bridge
Fully qualified type of asset
True if asset is wrapped
Returns whether or not an asset address on Ethereum is a wormhole wrapped asset
Checks if the asset is a wrapped asset
The address of the Injective token bridge contract
Connection/wallet information
Address of the asset in Injective format
true if asset is a wormhole wrapped asset
Returns whether or not an asset on Solana is a wormhole wrapped asset
Returns an origin chain and asset address on {originChain} for a provided Wormhole wrapped address
Algodv2 client
Application ID of the token bridge
Algorand asset index
wrapped wormhole information structure
Gets the origin chain ID and address of an asset on Aptos, given its fully qualified type.
Client used to transfer data to/from Aptos node
Address of token bridge
Fully qualified type of asset
Original chain ID and address of asset
Returns a origin chain and asset address on {originChain} for a provided Wormhole wrapped address
Returns information about the asset
Address of the asset in wormhole wrapped format (hex string)
WASM api client
Information about the asset
Returns a origin chain and asset address on {originChain} for a provided Wormhole wrapped address
This basically just submits the VAA to Algorand
AlgodV2 client
Token bridge ID
Core bridge ID
The VAA to be redeemed
Transaction ID(s)
Register the token specified in the given VAA in the transfer recipient's account if necessary and complete the transfer.
Client used to transfer data to/from Aptos node
Address of token bridge
Bytes of transfer VAA
Transaction payload
Submits the supplied VAA to Injective
Address of Inj token bridge contract
Address of wallet in inj format
VAA with the attestation message
Message to be broadcast
Transfers an asset from Algorand to a receiver on another chain
AlgodV2 client
Application ID of the token bridge
Application ID of the core bridge
Asset index
Quantity to transfer
Receiving account
Reeiving chain
Transfer fee
payload for payload3 transfers
Sequence number of confirmation
Transfer an asset on Aptos to another chain.
Address of token bridge
Full qualified type of asset to transfer
Amount to send to recipient
Target chain
Recipient's address on target chain
Fee to pay relayer
Payload3 data, leave undefined for basic token transfers
Transaction payload
Creates the necessary messages to transfer an asset
Address of the Inj wallet
Address of the token bridge contract
Address of the token being transferred
Amount of token to be transferred
Destination chain
Destination wallet address
Relayer fee
Optional payload
Transfer messages to be sent on chain
Generated using TypeDoc
Attest an already created asset If you create a new asset on algorand and want to transfer it elsewhere, you create an attestation for it on algorand... pass that vaa to the target chain.. submit it.. then you can transfer from algorand to that target chain