types

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSwap        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSwap          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSwap = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var TransferType_name = map[int32]string{
	0: "TransferTypeOut",
	1: "TransferTypeIn",
}
View Source
var TransferType_value = map[string]int32{
	"TransferTypeOut": 0,
	"TransferTypeIn":  1,
}

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

Types

type GenesisState

type GenesisState struct {
	// params defines all the paramaters of related to deposit.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"`
	// swaps defines the swaps active at genesis.
	Swaps []Swap `protobuf:"bytes,2,rep,name=swaps,proto3" json:"swaps" yaml:"swaps"`
}

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetSwaps

func (m *GenesisState) GetSwaps() []Swap

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type Hash

type Hash [32]byte

func (Hash) MarshalJSON

func (h Hash) MarshalJSON() ([]byte, error)

func (Hash) MarshalTo

func (h Hash) MarshalTo(bytes []byte) ([]byte, error)

func (*Hash) Size

func (h *Hash) Size() int

func (Hash) Unmarshal

func (h Hash) Unmarshal(bytes []byte) error

func (*Hash) UnmarshalJSON

func (h *Hash) UnmarshalJSON(b []byte) error

type MsgClient

type MsgClient interface {
	HTLT(ctx context.Context, in *MsgHTLT, opts ...grpc.CallOption) (*MsgHTLTResponse, error)
	Redeem(ctx context.Context, in *MsgRedeem, opts ...grpc.CallOption) (*MsgRedeemResponse, error)
	Refund(ctx context.Context, in *MsgRefund, opts ...grpc.CallOption) (*MsgRefundResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgHTLT

type MsgHTLT struct {
	TransferType TransferType                             `` /* 153-byte string literal not displayed */
	From         string                                   `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty" yaml:"from"`
	Recipient    string                                   `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty" yaml:"recipient"`
	HashedSecret Hash                                     `protobuf:"bytes,4,opt,name=hashed_secret,json=hashedSecret,proto3,customtype=Hash" json:"hashed_secret" yaml:"hashed_secret"`
	Secret       []byte                                   `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty" yaml:"secret"`
	Amount       github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,6,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount" yaml:"amount"`
}

func (*MsgHTLT) Descriptor

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

func (*MsgHTLT) GetAmount

func (*MsgHTLT) GetFrom

func (m *MsgHTLT) GetFrom() string

func (*MsgHTLT) GetRecipient

func (m *MsgHTLT) GetRecipient() string

func (*MsgHTLT) GetSecret

func (m *MsgHTLT) GetSecret() []byte

func (*MsgHTLT) GetTransferType

func (m *MsgHTLT) GetTransferType() TransferType

func (*MsgHTLT) Marshal

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

func (*MsgHTLT) MarshalTo

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

func (*MsgHTLT) MarshalToSizedBuffer

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

func (*MsgHTLT) ProtoMessage

func (*MsgHTLT) ProtoMessage()

func (*MsgHTLT) Reset

func (m *MsgHTLT) Reset()

func (*MsgHTLT) Size

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

func (*MsgHTLT) String

func (m *MsgHTLT) String() string

func (*MsgHTLT) Unmarshal

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

func (*MsgHTLT) XXX_DiscardUnknown

func (m *MsgHTLT) XXX_DiscardUnknown()

func (*MsgHTLT) XXX_Marshal

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

func (*MsgHTLT) XXX_Merge

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

func (*MsgHTLT) XXX_Size

func (m *MsgHTLT) XXX_Size() int

func (*MsgHTLT) XXX_Unmarshal

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

type MsgHTLTResponse

type MsgHTLTResponse struct {
}

func (*MsgHTLTResponse) Descriptor

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

func (*MsgHTLTResponse) Marshal

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

func (*MsgHTLTResponse) MarshalTo

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

func (*MsgHTLTResponse) MarshalToSizedBuffer

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

func (*MsgHTLTResponse) ProtoMessage

func (*MsgHTLTResponse) ProtoMessage()

func (*MsgHTLTResponse) Reset

func (m *MsgHTLTResponse) Reset()

func (*MsgHTLTResponse) Size

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

func (*MsgHTLTResponse) String

func (m *MsgHTLTResponse) String() string

func (*MsgHTLTResponse) Unmarshal

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

func (*MsgHTLTResponse) XXX_DiscardUnknown

func (m *MsgHTLTResponse) XXX_DiscardUnknown()

func (*MsgHTLTResponse) XXX_Marshal

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

func (*MsgHTLTResponse) XXX_Merge

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

func (*MsgHTLTResponse) XXX_Size

func (m *MsgHTLTResponse) XXX_Size() int

func (*MsgHTLTResponse) XXX_Unmarshal

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

type MsgRedeem

type MsgRedeem struct {
	From   string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"`
	Secret []byte `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
}

func (*MsgRedeem) Descriptor

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

func (*MsgRedeem) Marshal

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

func (*MsgRedeem) MarshalTo

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

func (*MsgRedeem) MarshalToSizedBuffer

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

func (*MsgRedeem) ProtoMessage

func (*MsgRedeem) ProtoMessage()

func (*MsgRedeem) Reset

func (m *MsgRedeem) Reset()

func (*MsgRedeem) Size

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

func (*MsgRedeem) String

func (m *MsgRedeem) String() string

func (*MsgRedeem) Unmarshal

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

func (*MsgRedeem) XXX_DiscardUnknown

func (m *MsgRedeem) XXX_DiscardUnknown()

func (*MsgRedeem) XXX_Marshal

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

func (*MsgRedeem) XXX_Merge

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

func (*MsgRedeem) XXX_Size

func (m *MsgRedeem) XXX_Size() int

func (*MsgRedeem) XXX_Unmarshal

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

type MsgRedeemResponse

type MsgRedeemResponse struct {
}

func (*MsgRedeemResponse) Descriptor

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

func (*MsgRedeemResponse) Marshal

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

func (*MsgRedeemResponse) MarshalTo

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

func (*MsgRedeemResponse) MarshalToSizedBuffer

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

func (*MsgRedeemResponse) ProtoMessage

func (*MsgRedeemResponse) ProtoMessage()

func (*MsgRedeemResponse) Reset

func (m *MsgRedeemResponse) Reset()

func (*MsgRedeemResponse) Size

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

func (*MsgRedeemResponse) String

func (m *MsgRedeemResponse) String() string

func (*MsgRedeemResponse) Unmarshal

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

func (*MsgRedeemResponse) XXX_DiscardUnknown

func (m *MsgRedeemResponse) XXX_DiscardUnknown()

func (*MsgRedeemResponse) XXX_Marshal

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

func (*MsgRedeemResponse) XXX_Merge

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

func (*MsgRedeemResponse) XXX_Size

func (m *MsgRedeemResponse) XXX_Size() int

func (*MsgRedeemResponse) XXX_Unmarshal

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

type MsgRefund

type MsgRefund struct {
	From         string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"`
	HashedSecret Hash   `protobuf:"bytes,2,opt,name=hashed_secret,json=hashedSecret,proto3,customtype=Hash" json:"hashed_secret"`
}

func (*MsgRefund) Descriptor

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

func (*MsgRefund) Marshal

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

func (*MsgRefund) MarshalTo

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

func (*MsgRefund) MarshalToSizedBuffer

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

func (*MsgRefund) ProtoMessage

func (*MsgRefund) ProtoMessage()

func (*MsgRefund) Reset

func (m *MsgRefund) Reset()

func (*MsgRefund) Size

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

func (*MsgRefund) String

func (m *MsgRefund) String() string

func (*MsgRefund) Unmarshal

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

func (*MsgRefund) XXX_DiscardUnknown

func (m *MsgRefund) XXX_DiscardUnknown()

func (*MsgRefund) XXX_Marshal

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

func (*MsgRefund) XXX_Merge

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

func (*MsgRefund) XXX_Size

func (m *MsgRefund) XXX_Size() int

func (*MsgRefund) XXX_Unmarshal

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

type MsgRefundResponse

type MsgRefundResponse struct {
}

func (*MsgRefundResponse) Descriptor

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

func (*MsgRefundResponse) Marshal

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

func (*MsgRefundResponse) MarshalTo

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

func (*MsgRefundResponse) MarshalToSizedBuffer

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

func (*MsgRefundResponse) ProtoMessage

func (*MsgRefundResponse) ProtoMessage()

func (*MsgRefundResponse) Reset

func (m *MsgRefundResponse) Reset()

func (*MsgRefundResponse) Size

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

func (*MsgRefundResponse) String

func (m *MsgRefundResponse) String() string

func (*MsgRefundResponse) Unmarshal

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

func (*MsgRefundResponse) XXX_DiscardUnknown

func (m *MsgRefundResponse) XXX_DiscardUnknown()

func (*MsgRefundResponse) XXX_Marshal

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

func (*MsgRefundResponse) XXX_Merge

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

func (*MsgRefundResponse) XXX_Size

func (m *MsgRefundResponse) XXX_Size() int

func (*MsgRefundResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type Params

type Params struct {
	LockedTimeOut time.Duration `` /* 126-byte string literal not displayed */
	LockedTimeIn  time.Duration `protobuf:"varint,2,opt,name=locked_time_in,json=lockedTimeIn,proto3,casttype=time.Duration" json:"locked_time_in,omitempty"`
}

func (*Params) Descriptor

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

func (*Params) GetLockedTimeIn

func (m *Params) GetLockedTimeIn() time.Duration

func (*Params) GetLockedTimeOut

func (m *Params) GetLockedTimeOut() time.Duration

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type Secret

type Secret []byte

func (Secret) MarshalJSON

func (s Secret) MarshalJSON() ([]byte, error)

func (Secret) MarshalTo

func (s Secret) MarshalTo(bytes []byte) ([]byte, error)

func (Secret) Size

func (s Secret) Size() int

func (Secret) Unmarshal

func (s Secret) Unmarshal(bytes []byte) error

func (*Secret) UnmarshalJSON

func (s *Secret) UnmarshalJSON(b []byte) error

type Swap

type Swap struct {
	TransferType TransferType                             `protobuf:"varint,1,opt,name=transfer_type,json=transferType,proto3,enum=decimal.swap.v1.TransferType" json:"transfer_type"`
	HashedSecret *Hash                                    `protobuf:"bytes,2,opt,name=hashed_secret,json=hashedSecret,proto3,customtype=Hash" json:"hashed_secret,omitempty"`
	From         string                                   `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	Recipient    string                                   `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient"`
	Amount       github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
	Timestamp    uint64                                   `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Redeemed     bool                                     `protobuf:"varint,7,opt,name=redeemed,proto3" json:"redeemed,omitempty"`
	Refunded     bool                                     `protobuf:"varint,8,opt,name=refunded,proto3" json:"refunded,omitempty"`
}

func (*Swap) Descriptor

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

func (*Swap) GetAmount

func (*Swap) GetFrom

func (m *Swap) GetFrom() string

func (*Swap) GetRecipient

func (m *Swap) GetRecipient() string

func (*Swap) GetRedeemed

func (m *Swap) GetRedeemed() bool

func (*Swap) GetRefunded

func (m *Swap) GetRefunded() bool

func (*Swap) GetTimestamp

func (m *Swap) GetTimestamp() uint64

func (*Swap) GetTransferType

func (m *Swap) GetTransferType() TransferType

func (*Swap) Marshal

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

func (*Swap) MarshalTo

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

func (*Swap) MarshalToSizedBuffer

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

func (*Swap) ProtoMessage

func (*Swap) ProtoMessage()

func (*Swap) Reset

func (m *Swap) Reset()

func (*Swap) Size

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

func (*Swap) String

func (m *Swap) String() string

func (*Swap) Unmarshal

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

func (*Swap) XXX_DiscardUnknown

func (m *Swap) XXX_DiscardUnknown()

func (*Swap) XXX_Marshal

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

func (*Swap) XXX_Merge

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

func (*Swap) XXX_Size

func (m *Swap) XXX_Size() int

func (*Swap) XXX_Unmarshal

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

type TransferType

type TransferType int32
const (
	TransferType_TransferTypeOut TransferType = 0
	TransferType_TransferTypeIn  TransferType = 1
)

func (TransferType) EnumDescriptor

func (TransferType) EnumDescriptor() ([]byte, []int)

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) HTLT

func (*UnimplementedMsgServer) Redeem

func (*UnimplementedMsgServer) Refund

Jump to

Keyboard shortcuts

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