Documentation ¶
Index ¶
- Variables
- type AddressValidator
- type Chain
- func (*Chain) Descriptor() ([]byte, []int)
- func (m *Chain) Marshal() (dAtA []byte, err error)
- func (m *Chain) MarshalTo(dAtA []byte) (int, error)
- func (m *Chain) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Chain) ProtoMessage()
- func (m *Chain) Reset()
- func (m *Chain) Size() (n int)
- func (m *Chain) String() string
- func (m *Chain) Unmarshal(dAtA []byte) error
- func (m Chain) Validate() error
- func (m *Chain) XXX_DiscardUnknown()
- func (m *Chain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Chain) XXX_Merge(src proto.Message)
- func (m *Chain) XXX_Size() int
- func (m *Chain) XXX_Unmarshal(b []byte) error
- type CrossChainAddress
- func (*CrossChainAddress) Descriptor() ([]byte, []int)
- func (m *CrossChainAddress) Marshal() (dAtA []byte, err error)
- func (m *CrossChainAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *CrossChainAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CrossChainAddress) ProtoMessage()
- func (m *CrossChainAddress) Reset()
- func (m *CrossChainAddress) Size() (n int)
- func (m *CrossChainAddress) String() string
- func (m *CrossChainAddress) Unmarshal(dAtA []byte) error
- func (m CrossChainAddress) Validate() error
- func (m *CrossChainAddress) XXX_DiscardUnknown()
- func (m *CrossChainAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrossChainAddress) XXX_Merge(src proto.Message)
- func (m *CrossChainAddress) XXX_Size() int
- func (m *CrossChainAddress) XXX_Unmarshal(b []byte) error
- type CrossChainTransfer
- func (*CrossChainTransfer) Descriptor() ([]byte, []int)
- func (m *CrossChainTransfer) Marshal() (dAtA []byte, err error)
- func (m *CrossChainTransfer) MarshalTo(dAtA []byte) (int, error)
- func (m *CrossChainTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CrossChainTransfer) ProtoMessage()
- func (m *CrossChainTransfer) Reset()
- func (m *CrossChainTransfer) Size() (n int)
- func (m *CrossChainTransfer) String() string
- func (m *CrossChainTransfer) Unmarshal(dAtA []byte) error
- func (m CrossChainTransfer) Validate() error
- func (m *CrossChainTransfer) XXX_DiscardUnknown()
- func (m *CrossChainTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrossChainTransfer) XXX_Merge(src proto.Message)
- func (m *CrossChainTransfer) XXX_Size() int
- func (m *CrossChainTransfer) XXX_Unmarshal(b []byte) error
- type TransferFee
- func (*TransferFee) Descriptor() ([]byte, []int)
- func (m *TransferFee) Marshal() (dAtA []byte, err error)
- func (m *TransferFee) MarshalTo(dAtA []byte) (int, error)
- func (m *TransferFee) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransferFee) ProtoMessage()
- func (m *TransferFee) Reset()
- func (m *TransferFee) Size() (n int)
- func (m *TransferFee) String() string
- func (m *TransferFee) Unmarshal(dAtA []byte) error
- func (m *TransferFee) XXX_DiscardUnknown()
- func (m *TransferFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransferFee) XXX_Merge(src proto.Message)
- func (m *TransferFee) XXX_Size() int
- func (m *TransferFee) XXX_Unmarshal(b []byte) error
- type TransferState
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var TransferState_name = map[int32]string{
0: "TRANSFER_STATE_UNSPECIFIED",
1: "TRANSFER_STATE_PENDING",
2: "TRANSFER_STATE_ARCHIVED",
}
var TransferState_value = map[string]int32{
"TRANSFER_STATE_UNSPECIFIED": 0,
"TRANSFER_STATE_PENDING": 1,
"TRANSFER_STATE_ARCHIVED": 2,
}
Functions ¶
This section is empty.
Types ¶
type AddressValidator ¶ added in v0.9.0
type AddressValidator func(ctx sdk.Context, address CrossChainAddress) error
AddressValidator defines a function that implements address verification upon a request to link addresses
type Chain ¶
type Chain struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` NativeAsset string `protobuf:"bytes,2,opt,name=native_asset,json=nativeAsset,proto3" json:"native_asset,omitempty"` SupportsForeignAssets bool `` /* 127-byte string literal not displayed */ KeyType exported.KeyType `protobuf:"varint,4,opt,name=key_type,json=keyType,proto3,enum=tss.exported.v1beta1.KeyType" json:"key_type,omitempty"` Module string `protobuf:"bytes,5,opt,name=module,proto3" json:"module,omitempty"` }
Chain represents the properties of a registered blockchain
func (*Chain) Descriptor ¶
func (*Chain) ProtoMessage ¶
func (*Chain) ProtoMessage()
func (Chain) Validate ¶
Validate performs a stateless check to ensure the Chain object has been initialized correctly
func (*Chain) XXX_DiscardUnknown ¶
func (m *Chain) XXX_DiscardUnknown()
func (*Chain) XXX_Marshal ¶
func (*Chain) XXX_Unmarshal ¶
type CrossChainAddress ¶
type CrossChainAddress struct { Chain Chain `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` }
CrossChainAddress represents a generalized address on any registered chain
func (*CrossChainAddress) Descriptor ¶
func (*CrossChainAddress) Descriptor() ([]byte, []int)
func (*CrossChainAddress) Marshal ¶
func (m *CrossChainAddress) Marshal() (dAtA []byte, err error)
func (*CrossChainAddress) MarshalTo ¶
func (m *CrossChainAddress) MarshalTo(dAtA []byte) (int, error)
func (*CrossChainAddress) MarshalToSizedBuffer ¶
func (m *CrossChainAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CrossChainAddress) ProtoMessage ¶
func (*CrossChainAddress) ProtoMessage()
func (*CrossChainAddress) Reset ¶
func (m *CrossChainAddress) Reset()
func (*CrossChainAddress) Size ¶
func (m *CrossChainAddress) Size() (n int)
func (*CrossChainAddress) String ¶
func (m *CrossChainAddress) String() string
func (*CrossChainAddress) Unmarshal ¶
func (m *CrossChainAddress) Unmarshal(dAtA []byte) error
func (CrossChainAddress) Validate ¶ added in v0.9.0
func (m CrossChainAddress) Validate() error
Validate validates the CrossChainAddress
func (*CrossChainAddress) XXX_DiscardUnknown ¶
func (m *CrossChainAddress) XXX_DiscardUnknown()
func (*CrossChainAddress) XXX_Marshal ¶
func (m *CrossChainAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CrossChainAddress) XXX_Merge ¶
func (m *CrossChainAddress) XXX_Merge(src proto.Message)
func (*CrossChainAddress) XXX_Size ¶
func (m *CrossChainAddress) XXX_Size() int
func (*CrossChainAddress) XXX_Unmarshal ¶
func (m *CrossChainAddress) XXX_Unmarshal(b []byte) error
type CrossChainTransfer ¶
type CrossChainTransfer struct { Recipient CrossChainAddress `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient"` Asset types.Coin `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset"` ID uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` State TransferState `protobuf:"varint,4,opt,name=state,proto3,enum=nexus.exported.v1beta1.TransferState" json:"state,omitempty"` }
CrossChainTransfer represents a generalized transfer of some asset to a registered blockchain
func NewPendingCrossChainTransfer ¶ added in v0.9.0
func NewPendingCrossChainTransfer(id uint64, recipient CrossChainAddress, asset sdk.Coin) CrossChainTransfer
NewPendingCrossChainTransfer returns a pending CrossChainTransfer
func (*CrossChainTransfer) Descriptor ¶
func (*CrossChainTransfer) Descriptor() ([]byte, []int)
func (*CrossChainTransfer) Marshal ¶
func (m *CrossChainTransfer) Marshal() (dAtA []byte, err error)
func (*CrossChainTransfer) MarshalTo ¶
func (m *CrossChainTransfer) MarshalTo(dAtA []byte) (int, error)
func (*CrossChainTransfer) MarshalToSizedBuffer ¶
func (m *CrossChainTransfer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CrossChainTransfer) ProtoMessage ¶
func (*CrossChainTransfer) ProtoMessage()
func (*CrossChainTransfer) Reset ¶
func (m *CrossChainTransfer) Reset()
func (*CrossChainTransfer) Size ¶
func (m *CrossChainTransfer) Size() (n int)
func (*CrossChainTransfer) String ¶
func (m *CrossChainTransfer) String() string
func (*CrossChainTransfer) Unmarshal ¶
func (m *CrossChainTransfer) Unmarshal(dAtA []byte) error
func (CrossChainTransfer) Validate ¶ added in v0.9.0
func (m CrossChainTransfer) Validate() error
Validate validates the CrossChainTransfer
func (*CrossChainTransfer) XXX_DiscardUnknown ¶
func (m *CrossChainTransfer) XXX_DiscardUnknown()
func (*CrossChainTransfer) XXX_Marshal ¶
func (m *CrossChainTransfer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CrossChainTransfer) XXX_Merge ¶
func (m *CrossChainTransfer) XXX_Merge(src proto.Message)
func (*CrossChainTransfer) XXX_Size ¶
func (m *CrossChainTransfer) XXX_Size() int
func (*CrossChainTransfer) XXX_Unmarshal ¶
func (m *CrossChainTransfer) XXX_Unmarshal(b []byte) error
type TransferFee ¶ added in v0.11.1
type TransferFee struct {
Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}
TransferFee represents accumulated fees generated by the network
func (*TransferFee) Descriptor ¶ added in v0.11.1
func (*TransferFee) Descriptor() ([]byte, []int)
func (*TransferFee) Marshal ¶ added in v0.11.1
func (m *TransferFee) Marshal() (dAtA []byte, err error)
func (*TransferFee) MarshalTo ¶ added in v0.11.1
func (m *TransferFee) MarshalTo(dAtA []byte) (int, error)
func (*TransferFee) MarshalToSizedBuffer ¶ added in v0.11.1
func (m *TransferFee) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransferFee) ProtoMessage ¶ added in v0.11.1
func (*TransferFee) ProtoMessage()
func (*TransferFee) Reset ¶ added in v0.11.1
func (m *TransferFee) Reset()
func (*TransferFee) Size ¶ added in v0.11.1
func (m *TransferFee) Size() (n int)
func (*TransferFee) String ¶ added in v0.11.1
func (m *TransferFee) String() string
func (*TransferFee) Unmarshal ¶ added in v0.11.1
func (m *TransferFee) Unmarshal(dAtA []byte) error
func (*TransferFee) XXX_DiscardUnknown ¶ added in v0.11.1
func (m *TransferFee) XXX_DiscardUnknown()
func (*TransferFee) XXX_Marshal ¶ added in v0.11.1
func (m *TransferFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransferFee) XXX_Merge ¶ added in v0.11.1
func (m *TransferFee) XXX_Merge(src proto.Message)
func (*TransferFee) XXX_Size ¶ added in v0.11.1
func (m *TransferFee) XXX_Size() int
func (*TransferFee) XXX_Unmarshal ¶ added in v0.11.1
func (m *TransferFee) XXX_Unmarshal(b []byte) error
type TransferState ¶
type TransferState int32
const ( TRANSFER_STATE_UNSPECIFIED TransferState = 0 Pending TransferState = 1 Archived TransferState = 2 )
func (TransferState) EnumDescriptor ¶
func (TransferState) EnumDescriptor() ([]byte, []int)
func (TransferState) String ¶
func (x TransferState) String() string
func (TransferState) Validate ¶ added in v0.9.0
func (m TransferState) Validate() error
Validate validates the TransferState