exported

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

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")
)
View Source
var TransferState_name = map[int32]string{
	0: "TRANSFER_STATE_UNSPECIFIED",
	1: "TRANSFER_STATE_PENDING",
	2: "TRANSFER_STATE_ARCHIVED",
}
View Source
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) Descriptor() ([]byte, []int)

func (*Chain) Marshal

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

func (*Chain) MarshalTo

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

func (*Chain) MarshalToSizedBuffer

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

func (*Chain) ProtoMessage

func (*Chain) ProtoMessage()

func (*Chain) Reset

func (m *Chain) Reset()

func (*Chain) Size

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

func (*Chain) String

func (m *Chain) String() string

func (*Chain) Unmarshal

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

func (Chain) Validate

func (m Chain) Validate() error

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 (m *Chain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Chain) XXX_Merge

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

func (*Chain) XXX_Size

func (m *Chain) XXX_Size() int

func (*Chain) XXX_Unmarshal

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

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        TransferID        `protobuf:"varint,3,opt,name=id,proto3,casttype=TransferID" 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 TransferID added in v0.13.0

type TransferID uint64

TransferID represents the unique cross transfer identifier

func (TransferID) Bytes added in v0.13.0

func (t TransferID) Bytes() []byte

Bytes returns the byte array of TransferID

func (TransferID) String added in v0.13.0

func (t TransferID) String() string

String returns a string representation of TransferID

type TransferState

type TransferState int32
const (
	TRANSFER_STATE_UNSPECIFIED TransferState = 0
	Pending                    TransferState = 1
	Archived                   TransferState = 2
)

func TransferStateFromString added in v0.13.1

func TransferStateFromString(s string) TransferState

TransferStateFromString converts a describing state string to the corresponding TransferState

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

Jump to

Keyboard shortcuts

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