types

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetRes

type AssetRes struct {
	DenomUnits []DenomUnit       `json:"denom_units,omitempty"`
	Base       *string           `json:"base,omitempty"`
	Name       *string           `json:"name,omitempty"`
	Symbol     *string           `json:"symbol,omitempty"`
	Address    *string           `json:"address,omitempty"`
	LogoUris   map[string]string `json:"logo_URIs,omitempty"`
	Icon       *string           `json:"icon,omitempty"`
	TypeAsset  *string           `json:"type_asset,omitempty"`
	Traces     []Trace           `json:"traces,omitempty"`
}

type AssetResList

type AssetResList []AssetRes

type AssetType

type AssetType string
const (
	AssetTypeCw20  AssetType = "cw20"
	AssetTypeIcs20 AssetType = "ics20"
)

type AssetsRes

type AssetsRes struct {
	Assets AssetResList `json:"assets"`
}

type ChainRes

type ChainRes struct {
	ChannelId *string `json:"channel_id,omitempty"`
	Path      *string `json:"path,omitempty"`
}

type CounterPartyRes

type CounterPartyRes struct {
	ChainName *string `json:"chain_name,omitempty"`
	BaseDenom *string `json:"base_denom,omitempty"`
	ChannelId *string `json:"channel_id,omitempty"`
}

type DenomUnit

type DenomUnit struct {
	Denom    *string `json:"denom"`
	Exponent uint8   `json:"exponent"`
}

type IbcRes

type IbcRes struct {
	Denom     *string `json:"denom,omitempty"`
	Path      *string `json:"path,omitempty"`
	BaseDenom *string `json:"base_denom,omitempty"`
	Symbol    *string `json:"symbol,omitempty"`
	Name      *string `json:"name,omitempty"`
	Icon      *string `json:"icon,omitempty"`
	Decimals  *uint8  `json:"decimals,omitempty"`
}

type IbcResMap

type IbcResMap map[string]IbcRes

type IbcsRes

type IbcsRes struct {
	Mainnet IbcResMap `json:"mainnet"`
	Testnet IbcResMap `json:"testnet"`
}

type TokenRes

type TokenRes struct {
	Protocol *string `json:"protocol,omitempty"`
	Symbol   *string `json:"symbol,omitempty"`
	Name     *string `json:"name,omitempty"`
	Token    *string `json:"token,omitempty"`
	Icon     *string `json:"icon,omitempty"`
	Decimals *uint8  `json:"decimals,omitempty"`
}

type TokenResMap

type TokenResMap map[string]TokenRes

type TokenType added in v1.0.3

type TokenType int
const (
	TokenTypeCW20 TokenType = 0 + iota
	TokenTypeERC20
)

type TokensRes

type TokensRes struct {
	Mainnet TokenResMap `json:"mainnet"`
	Testnet TokenResMap `json:"testnet"`
}

type Trace

type Trace struct {
	Type         *string         `json:"type,omitempty"`
	CounterParty CounterPartyRes `json:"counterparty,omitempty"`
	Chain        ChainRes        `json:"chain,omitempty"`
}

type TraceType

type TraceType string
const (
	TraceTypeIbc     TraceType = "ibc"
	TraceTypeIbcCw20 TraceType = "ibc-cw20"
)

type Unmarshalable

type Unmarshalable interface {
	TokensRes | IbcsRes | AssetsRes
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL