types

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AccAddressByteSize = 20

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Chain added in v0.5.0

type Chain struct {
	ChainId   string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	ChainName string `protobuf:"bytes,2,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	ChainUrl  string `protobuf:"bytes,3,opt,name=chain_url,json=chainUrl,proto3" json:"chain_url,omitempty"`
}

func (*Chain) Descriptor added in v0.5.0

func (*Chain) Descriptor() ([]byte, []int)

func (*Chain) GetChainId added in v0.5.0

func (m *Chain) GetChainId() string

func (*Chain) GetChainName added in v0.5.0

func (m *Chain) GetChainName() string

func (*Chain) GetChainUrl added in v0.5.0

func (m *Chain) GetChainUrl() string

func (*Chain) Marshal added in v0.5.0

func (m *Chain) Marshal() (dAtA []byte, err error)

func (*Chain) MarshalTo added in v0.5.0

func (m *Chain) MarshalTo(dAtA []byte) (int, error)

func (*Chain) MarshalToSizedBuffer added in v0.5.0

func (m *Chain) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Chain) ProtoMessage added in v0.5.0

func (*Chain) ProtoMessage()

func (*Chain) Reset added in v0.5.0

func (m *Chain) Reset()

func (*Chain) Size added in v0.5.0

func (m *Chain) Size() (n int)

func (*Chain) String added in v0.5.0

func (m *Chain) String() string

func (*Chain) Unmarshal added in v0.5.0

func (m *Chain) Unmarshal(dAtA []byte) error

func (*Chain) XXX_DiscardUnknown added in v0.5.0

func (m *Chain) XXX_DiscardUnknown()

func (*Chain) XXX_Marshal added in v0.5.0

func (m *Chain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Chain) XXX_Merge added in v0.5.0

func (m *Chain) XXX_Merge(src proto.Message)

func (*Chain) XXX_Size added in v0.5.0

func (m *Chain) XXX_Size() int

func (*Chain) XXX_Unmarshal added in v0.5.0

func (m *Chain) XXX_Unmarshal(b []byte) error

type HexAddressString

type HexAddressString string

func NewHexAddrFromBytes added in v0.5.0

func NewHexAddrFromBytes(addr []byte) HexAddressString

func NoramlizeHexAddress added in v0.5.0

func NoramlizeHexAddress(addr string) HexAddressString

func (HexAddressString) Bytes added in v0.3.0

func (a HexAddressString) Bytes() []byte

func (HexAddressString) IsNull added in v0.5.1

func (a HexAddressString) IsNull() bool

func (HexAddressString) Marshal

func (a HexAddressString) Marshal() ([]byte, error)

func (HexAddressString) MarshalTo

func (a HexAddressString) MarshalTo(data []byte) (int, error)

func (HexAddressString) Size

func (a HexAddressString) Size() int

func (HexAddressString) String

func (a HexAddressString) String() string

func (*HexAddressString) Unmarshal

func (a *HexAddressString) Unmarshal(data []byte) error

type Nft added in v0.5.0

type Nft struct {
	ChainId      string           `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	ContractAddr HexAddressString `protobuf:"bytes,2,opt,name=contract_addr,json=contractAddr,proto3,customtype=HexAddressString" json:"contract_addr"`
	TokenId      HexAddressString `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3,customtype=HexAddressString" json:"token_id"`
}

func ParseNftId added in v0.5.0

func ParseNftId(nftId string) (Nft, error)

func (*Nft) Descriptor added in v0.5.0

func (*Nft) Descriptor() ([]byte, []int)

func (Nft) FormatString added in v0.5.0

func (nft Nft) FormatString() string

func (*Nft) GetChainId added in v0.5.0

func (m *Nft) GetChainId() string

func (*Nft) Marshal added in v0.5.0

func (m *Nft) Marshal() (dAtA []byte, err error)

func (*Nft) MarshalTo added in v0.5.0

func (m *Nft) MarshalTo(dAtA []byte) (int, error)

func (*Nft) MarshalToSizedBuffer added in v0.5.0

func (m *Nft) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Nft) ProtoMessage added in v0.5.0

func (*Nft) ProtoMessage()

func (*Nft) Reset added in v0.5.0

func (m *Nft) Reset()

func (*Nft) Size added in v0.5.0

func (m *Nft) Size() (n int)

func (*Nft) String added in v0.5.0

func (m *Nft) String() string

func (*Nft) Unmarshal added in v0.5.0

func (m *Nft) Unmarshal(dAtA []byte) error

func (*Nft) XXX_DiscardUnknown added in v0.5.0

func (m *Nft) XXX_DiscardUnknown()

func (*Nft) XXX_Marshal added in v0.5.0

func (m *Nft) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Nft) XXX_Merge added in v0.5.0

func (m *Nft) XXX_Merge(src proto.Message)

func (*Nft) XXX_Size added in v0.5.0

func (m *Nft) XXX_Size() int

func (*Nft) XXX_Unmarshal added in v0.5.0

func (m *Nft) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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