exported

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: Apache-2.0 Imports: 8 Imported by: 3

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        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 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

Jump to

Keyboard shortcuts

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