exported

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 13 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",
	3: "TRANSFER_STATE_INSUFFICIENT_AMOUNT",
}
View Source
var TransferState_value = map[string]int32{
	"TRANSFER_STATE_UNSPECIFIED":         0,
	"TRANSFER_STATE_PENDING":             1,
	"TRANSFER_STATE_ARCHIVED":            2,
	"TRANSFER_STATE_INSUFFICIENT_AMOUNT": 3,
}

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 Asset added in v0.14.0

type Asset struct {
	Denom         string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	IsNativeAsset bool   `protobuf:"varint,3,opt,name=is_native_asset,json=isNativeAsset,proto3" json:"is_native_asset,omitempty"`
}

func NewAsset added in v0.14.0

func NewAsset(denom string, isNative bool) Asset

NewAsset returns an asset struct

func (*Asset) Descriptor added in v0.14.0

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

func (*Asset) Marshal added in v0.14.0

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

func (*Asset) MarshalTo added in v0.14.0

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

func (*Asset) MarshalToSizedBuffer added in v0.14.0

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

func (*Asset) ProtoMessage added in v0.14.0

func (*Asset) ProtoMessage()

func (*Asset) Reset added in v0.14.0

func (m *Asset) Reset()

func (*Asset) Size added in v0.14.0

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

func (*Asset) String added in v0.14.0

func (m *Asset) String() string

func (*Asset) Unmarshal added in v0.14.0

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

func (Asset) Validate added in v0.14.0

func (m Asset) Validate() error

Validate checks the stateless validity of the asset

func (*Asset) XXX_DiscardUnknown added in v0.14.0

func (m *Asset) XXX_DiscardUnknown()

func (*Asset) XXX_Marshal added in v0.14.0

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

func (*Asset) XXX_Merge added in v0.14.0

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

func (*Asset) XXX_Size added in v0.14.0

func (m *Asset) XXX_Size() int

func (*Asset) XXX_Unmarshal added in v0.14.0

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

type Chain

type Chain struct {
	Name                  string           `protobuf:"bytes,1,opt,name=name,proto3" json:"name,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 NewCrossChainTransfer added in v0.15.0

func NewCrossChainTransfer(id uint64, recipient CrossChainAddress, asset sdk.Coin, state TransferState) CrossChainTransfer

NewCrossChainTransfer returns a CrossChainTransfer

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 FeeInfo added in v0.15.0

type FeeInfo struct {
	Chain   string                                 `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"`
	Asset   string                                 `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"`
	FeeRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=fee_rate,json=feeRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"fee_rate"`
	MinFee  github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=min_fee,json=minFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_fee"`
	MaxFee  github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=max_fee,json=maxFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"max_fee"`
}

func NewFeeInfo added in v0.15.0

func NewFeeInfo(chain string, asset string, feeRate sdk.Dec, minFee sdk.Int, maxFee sdk.Int) FeeInfo

NewFeeInfo returns a FeeInfo struct

func ZeroFeeInfo added in v0.15.0

func ZeroFeeInfo(chain string, asset string) FeeInfo

ZeroFeeInfo returns a FeeInfo struct with zero fees

func (*FeeInfo) Descriptor added in v0.15.0

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

func (*FeeInfo) Marshal added in v0.15.0

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

func (*FeeInfo) MarshalTo added in v0.15.0

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

func (*FeeInfo) MarshalToSizedBuffer added in v0.15.0

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

func (*FeeInfo) ProtoMessage added in v0.15.0

func (*FeeInfo) ProtoMessage()

func (*FeeInfo) Reset added in v0.15.0

func (m *FeeInfo) Reset()

func (*FeeInfo) Size added in v0.15.0

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

func (*FeeInfo) String added in v0.15.0

func (m *FeeInfo) String() string

func (*FeeInfo) Unmarshal added in v0.15.0

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

func (FeeInfo) Validate added in v0.15.0

func (m FeeInfo) Validate() error

Validate checks the stateless validity of fee info

func (*FeeInfo) XXX_DiscardUnknown added in v0.15.0

func (m *FeeInfo) XXX_DiscardUnknown()

func (*FeeInfo) XXX_Marshal added in v0.15.0

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

func (*FeeInfo) XXX_Merge added in v0.15.0

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

func (*FeeInfo) XXX_Size added in v0.15.0

func (m *FeeInfo) XXX_Size() int

func (*FeeInfo) XXX_Unmarshal added in v0.15.0

func (m *FeeInfo) 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
	InsufficientAmount         TransferState = 3
)

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