Documentation ¶
Index ¶
- type AccountID
- func (c AccountID) MarshalJSON() ([]byte, error)
- func (c *AccountID) Parse(s string) error
- func (c *AccountID) ParseX(s string)
- func (c *AccountID) Scan(src interface{}) error
- func (c AccountID) String() string
- func (c *AccountID) UnmarshalJSON(data []byte) error
- func (c AccountID) Validate() error
- func (c AccountID) Value() (driver.Value, error)
- type AssetID
- func (a AssetID) MarshalJSON() ([]byte, error)
- func (a *AssetID) Parse(s string) error
- func (a *AssetID) ParseX(s string)
- func (a *AssetID) Scan(src interface{}) error
- func (a AssetID) String() string
- func (a *AssetID) UnmarshalJSON(data []byte) error
- func (a AssetID) Validate() error
- func (a AssetID) Value() (driver.Value, error)
- type ChainID
- func (c ChainID) MarshalJSON() ([]byte, error)
- func (c *ChainID) Parse(s string) error
- func (c *ChainID) ParseX(s string)
- func (c *ChainID) Scan(src interface{}) error
- func (c ChainID) String() string
- func (c *ChainID) UnmarshalJSON(data []byte) error
- func (c ChainID) Validate() error
- func (c ChainID) Value() (driver.Value, error)
- type ERC20AssetID
- type ERC721AssetID
- type EVMAccountID
- type EVMAddressable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountID ¶
func NewAccountID ¶ added in v0.1.0
func UnsafeAccountID ¶ added in v0.1.3
func (AccountID) MarshalJSON ¶
func (*AccountID) UnmarshalJSON ¶
type AssetID ¶ added in v0.0.3
type AssetID struct { ChainID ChainID `json:"chain_id"` Namespace string `json:"asset_namespace"` Reference string `json:"asset_reference"` }
func NewAssetID ¶ added in v0.1.0
func UnsafeAssetID ¶ added in v0.1.3
func (AssetID) MarshalJSON ¶ added in v0.0.3
func (*AssetID) UnmarshalJSON ¶ added in v0.0.3
type ChainID ¶
func NewChainID ¶ added in v0.1.0
func UnsafeChainID ¶ added in v0.1.3
func (ChainID) MarshalJSON ¶
func (*ChainID) UnmarshalJSON ¶
type ERC20AssetID ¶ added in v0.1.2
type ERC20AssetID struct { EVMAddressable AssetID }
func NewERC20AssetID ¶ added in v0.1.2
func NewERC20AssetID(chainID ChainID, namespace, reference string) (ERC20AssetID, error)
func UnsafeERC20AssetID ¶ added in v0.1.3
func UnsafeERC20AssetID(chainID ChainID, namespace, reference string) ERC20AssetID
func (ERC20AssetID) Address ¶ added in v0.1.2
func (a ERC20AssetID) Address() common.Address
type ERC721AssetID ¶ added in v0.1.2
type ERC721AssetID struct { EVMAddressable AssetID }
func NewERC721AssetID ¶ added in v0.1.2
func NewERC721AssetID(chainID ChainID, namespace, reference string) (ERC721AssetID, error)
func UnsafeERC721AssetID ¶ added in v0.1.3
func UnsafeERC721AssetID(chainID ChainID, namespace, reference string) ERC721AssetID
func (ERC721AssetID) Address ¶ added in v0.1.2
func (a ERC721AssetID) Address() common.Address
type EVMAccountID ¶ added in v0.1.2
type EVMAccountID struct { EVMAddressable AccountID }
func NewEVMAccountID ¶ added in v0.1.2
func NewEVMAccountID(chainID ChainID, address string) (EVMAccountID, error)
func UnsafeEVMAccountID ¶ added in v0.1.3
func UnsafeEVMAccountID(chainID ChainID, address string) EVMAccountID
func (EVMAccountID) Address ¶ added in v0.1.2
func (a EVMAccountID) Address() common.Address
func (EVMAccountID) Validate ¶ added in v0.1.7
func (a EVMAccountID) Validate() error
type EVMAddressable ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.