Documentation
¶
Overview ¶
Package multichain defines all supported assets and chains. It also re-exports the individual multichain APIs.
Index ¶
- Constants
- type AccountClient
- type AccountTx
- type AccountTxBuilder
- type Address
- type AddressEncodeDecoder
- type Asset
- type Chain
- type ChainType
- type ContractCallData
- type ContractCaller
- type EthereumCompatAddress
- type GasEstimator
- type Network
- type RawAddress
- type UTXOClient
- type UTXOInput
- type UTXORecipient
- type UTXOTx
- type UTXOTxBuilder
- type UTXOutpoint
- type UTXOutput
Constants ¶
const ( BCH = Asset("BCH") // Bitcoin Cash BNB = Asset("BNB") // Binance Coin BTC = Asset("BTC") // Bitcoin CELO = Asset("CELO") // Celo DGB = Asset("DGB") // DigiByte DOGE = Asset("DOGE") // Dogecoin ETH = Asset("ETH") // Ether FIL = Asset("FIL") // Filecoin FTM = Asset("FTM") // Fantom SOL = Asset("SOL") // Solana LUNA = Asset("LUNA") // Luna ZEC = Asset("ZEC") // Zcash )
Enumeration of supported assets. When introducing a new chain, or new asset from an existing chain, you must add a human-readable string to this set of enumerated values. Assets must be listed in alphabetical order.
const ( Acala = Chain("Acala") BinanceSmartChain = Chain("BinanceSmartChain") Bitcoin = Chain("Bitcoin") BitcoinCash = Chain("BitcoinCash") Celo = Chain("Celo") DigiByte = Chain("DigiByte") Dogecoin = Chain("Dogecoin") Ethereum = Chain("Ethereum") Fantom = Chain("Fantom") Filecoin = Chain("Filecoin") Solana = Chain("Solana") Terra = Chain("Terra") Zcash = Chain("Zcash") )
Enumeration of supported chains. When introducing a new chain, you must add a human-readable string to this set of enumerated values. Chains must be listed in alphabetical order.
const ( ChainTypeAccountBased = ChainType("Account") ChainTypeUTXOBased = ChainType("UTXO") )
const ( NetworkLocalnet = Network("localnet") NetworkTestnet = Network("testnet") NetworkMainnet = Network("mainnet") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountClient ¶ added in v0.2.0
type AccountTxBuilder ¶ added in v0.2.0
type AddressEncodeDecoder ¶ added in v0.2.1
type AddressEncodeDecoder = address.EncodeDecoder
type Asset ¶
type Asset string
An Asset uniquely identifies assets using human-readable strings.
func (Asset) OriginChain ¶ added in v0.2.0
OriginChain returns the chain upon which the asset originates. For example, the origin chain of BTC is Bitcoin.
type Chain ¶
type Chain string
A Chain uniquely identifies a blockchain using a human-readable string.
func (Chain) IsAccountBased ¶ added in v0.2.2
func (Chain) IsUTXOBased ¶ added in v0.2.2
func (Chain) Marshal ¶
Marshal the chain to binary. You should not call this function directly, unless you are implementing marshalling for a container type.
type ChainType ¶ added in v0.2.2
type ChainType string
func (ChainType) Marshal ¶ added in v0.2.2
Marshal the chain type to binary. You should not call this function directly, unless you are implementing marshalling for a container type.
type ContractCallData ¶ added in v0.2.0
type ContractCaller ¶ added in v0.2.0
type EthereumCompatAddress ¶ added in v0.2.0
type GasEstimator ¶ added in v0.2.0
type Network ¶ added in v0.2.4
type Network string
func (Network) Marshal ¶ added in v0.2.4
Marshal the network to binary. You should not call this function directly, unless you are implementing marshalling for a container type.
type RawAddress ¶ added in v0.2.0
type RawAddress = address.RawAddress
type UTXOClient ¶ added in v0.2.0
type UTXORecipient ¶ added in v0.2.0
type UTXOTxBuilder ¶ added in v0.2.0
type UTXOutpoint ¶ added in v0.2.2
Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
account
Package account defines the Account API.
|
Package account defines the Account API. |
|
address
Package address defines the Address API.
|
Package address defines the Address API. |
|
contract
Package contract defines the Contract API.
|
Package contract defines the Contract API. |
|
gas
Package gas defines the Gas API.
|
Package gas defines the Gas API. |
|
utxo
Package utxo defines the UTXO API.
|
Package utxo defines the UTXO API. |
|
chain
|
|
|
infra
|
|
|
bitcoin
command
|
|
|
digibyte
command
|
|
|
dogecoin
command
|