Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AssetParam
- func (*AssetParam) Descriptor() ([]byte, []int)
- func (this *AssetParam) Equal(that interface{}) bool
- func (m *AssetParam) Marshal() (dAtA []byte, err error)
- func (m *AssetParam) MarshalTo(dAtA []byte) (int, error)
- func (m *AssetParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AssetParam) ProtoMessage()
- func (m *AssetParam) Reset()
- func (m *AssetParam) Size() (n int)
- func (m *AssetParam) String() string
- func (m *AssetParam) Unmarshal(dAtA []byte) error
- func (m *AssetParam) XXX_DiscardUnknown()
- func (m *AssetParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AssetParam) XXX_Merge(src proto.Message)
- func (m *AssetParam) XXX_Size() int
- func (m *AssetParam) XXX_Unmarshal(b []byte) error
- type AssetParamDto
- type AssetSupply
- func (*AssetSupply) Descriptor() ([]byte, []int)
- func (m *AssetSupply) Marshal() (dAtA []byte, err error)
- func (m *AssetSupply) MarshalTo(dAtA []byte) (int, error)
- func (m *AssetSupply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AssetSupply) ProtoMessage()
- func (m *AssetSupply) Reset()
- func (m *AssetSupply) Size() (n int)
- func (m *AssetSupply) String() string
- func (m *AssetSupply) Unmarshal(dAtA []byte) error
- func (m *AssetSupply) XXX_DiscardUnknown()
- func (m *AssetSupply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AssetSupply) XXX_Merge(src proto.Message)
- func (m *AssetSupply) XXX_Size() int
- func (m *AssetSupply) XXX_Unmarshal(b []byte) error
- type Client
- type CreateHTLCRequest
- type HTLC
- func (h HTLC) Convert() interface{}
- func (*HTLC) Descriptor() ([]byte, []int)
- func (this *HTLC) Equal(that interface{}) bool
- func (m *HTLC) Marshal() (dAtA []byte, err error)
- func (m *HTLC) MarshalTo(dAtA []byte) (int, error)
- func (m *HTLC) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HTLC) ProtoMessage()
- func (m *HTLC) Reset()
- func (m *HTLC) Size() (n int)
- func (m *HTLC) String() string
- func (m *HTLC) Unmarshal(dAtA []byte) error
- func (m *HTLC) XXX_DiscardUnknown()
- func (m *HTLC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HTLC) XXX_Merge(src proto.Message)
- func (m *HTLC) XXX_Size() int
- func (m *HTLC) XXX_Unmarshal(b []byte) error
- type HTLCState
- type MsgClaimHTLC
- func (*MsgClaimHTLC) Descriptor() ([]byte, []int)
- func (this *MsgClaimHTLC) Equal(that interface{}) bool
- func (msg MsgClaimHTLC) GetSignBytes() []byte
- func (msg MsgClaimHTLC) GetSigners() []sdk.AccAddress
- func (m *MsgClaimHTLC) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimHTLC) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimHTLC) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimHTLC) ProtoMessage()
- func (m *MsgClaimHTLC) Reset()
- func (msg MsgClaimHTLC) Route() string
- func (m *MsgClaimHTLC) Size() (n int)
- func (m *MsgClaimHTLC) String() string
- func (msg MsgClaimHTLC) Type() string
- func (m *MsgClaimHTLC) Unmarshal(dAtA []byte) error
- func (msg MsgClaimHTLC) ValidateBasic() error
- func (m *MsgClaimHTLC) XXX_DiscardUnknown()
- func (m *MsgClaimHTLC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimHTLC) XXX_Merge(src proto.Message)
- func (m *MsgClaimHTLC) XXX_Size() int
- func (m *MsgClaimHTLC) XXX_Unmarshal(b []byte) error
- type MsgClaimHTLCResponse
- func (*MsgClaimHTLCResponse) Descriptor() ([]byte, []int)
- func (m *MsgClaimHTLCResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimHTLCResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimHTLCResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimHTLCResponse) ProtoMessage()
- func (m *MsgClaimHTLCResponse) Reset()
- func (m *MsgClaimHTLCResponse) Size() (n int)
- func (m *MsgClaimHTLCResponse) String() string
- func (m *MsgClaimHTLCResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClaimHTLCResponse) XXX_DiscardUnknown()
- func (m *MsgClaimHTLCResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimHTLCResponse) XXX_Merge(src proto.Message)
- func (m *MsgClaimHTLCResponse) XXX_Size() int
- func (m *MsgClaimHTLCResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateHTLC
- func (*MsgCreateHTLC) Descriptor() ([]byte, []int)
- func (this *MsgCreateHTLC) Equal(that interface{}) bool
- func (msg MsgCreateHTLC) GetSignBytes() []byte
- func (msg MsgCreateHTLC) GetSigners() []sdk.AccAddress
- func (m *MsgCreateHTLC) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateHTLC) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateHTLC) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateHTLC) ProtoMessage()
- func (m *MsgCreateHTLC) Reset()
- func (msg MsgCreateHTLC) Route() string
- func (m *MsgCreateHTLC) Size() (n int)
- func (m *MsgCreateHTLC) String() string
- func (msg MsgCreateHTLC) Type() string
- func (m *MsgCreateHTLC) Unmarshal(dAtA []byte) error
- func (msg MsgCreateHTLC) ValidateBasic() error
- func (m *MsgCreateHTLC) XXX_DiscardUnknown()
- func (m *MsgCreateHTLC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateHTLC) XXX_Merge(src proto.Message)
- func (m *MsgCreateHTLC) XXX_Size() int
- func (m *MsgCreateHTLC) XXX_Unmarshal(b []byte) error
- type MsgCreateHTLCResponse
- func (*MsgCreateHTLCResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateHTLCResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateHTLCResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateHTLCResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateHTLCResponse) ProtoMessage()
- func (m *MsgCreateHTLCResponse) Reset()
- func (m *MsgCreateHTLCResponse) Size() (n int)
- func (m *MsgCreateHTLCResponse) String() string
- func (m *MsgCreateHTLCResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateHTLCResponse) XXX_DiscardUnknown()
- func (m *MsgCreateHTLCResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateHTLCResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateHTLCResponse) XXX_Size() int
- func (m *MsgCreateHTLCResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Params
- func (h Params) Convert() interface{}
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAssetSuppliesRequest
- func (*QueryAssetSuppliesRequest) Descriptor() ([]byte, []int)
- func (m *QueryAssetSuppliesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAssetSuppliesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAssetSuppliesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAssetSuppliesRequest) ProtoMessage()
- func (m *QueryAssetSuppliesRequest) Reset()
- func (m *QueryAssetSuppliesRequest) Size() (n int)
- func (m *QueryAssetSuppliesRequest) String() string
- func (m *QueryAssetSuppliesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAssetSuppliesRequest) XXX_DiscardUnknown()
- func (m *QueryAssetSuppliesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAssetSuppliesRequest) XXX_Merge(src proto.Message)
- func (m *QueryAssetSuppliesRequest) XXX_Size() int
- func (m *QueryAssetSuppliesRequest) XXX_Unmarshal(b []byte) error
- type QueryAssetSuppliesResponse
- func (*QueryAssetSuppliesResponse) Descriptor() ([]byte, []int)
- func (m *QueryAssetSuppliesResponse) GetAssetSupplies() []AssetSupply
- func (m *QueryAssetSuppliesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAssetSuppliesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAssetSuppliesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAssetSuppliesResponse) ProtoMessage()
- func (m *QueryAssetSuppliesResponse) Reset()
- func (m *QueryAssetSuppliesResponse) Size() (n int)
- func (m *QueryAssetSuppliesResponse) String() string
- func (m *QueryAssetSuppliesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAssetSuppliesResponse) XXX_DiscardUnknown()
- func (m *QueryAssetSuppliesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAssetSuppliesResponse) XXX_Merge(src proto.Message)
- func (m *QueryAssetSuppliesResponse) XXX_Size() int
- func (m *QueryAssetSuppliesResponse) XXX_Unmarshal(b []byte) error
- type QueryAssetSupplyRequest
- func (*QueryAssetSupplyRequest) Descriptor() ([]byte, []int)
- func (m *QueryAssetSupplyRequest) GetDenom() string
- func (m *QueryAssetSupplyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAssetSupplyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAssetSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAssetSupplyRequest) ProtoMessage()
- func (m *QueryAssetSupplyRequest) Reset()
- func (m *QueryAssetSupplyRequest) Size() (n int)
- func (m *QueryAssetSupplyRequest) String() string
- func (m *QueryAssetSupplyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAssetSupplyRequest) XXX_DiscardUnknown()
- func (m *QueryAssetSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAssetSupplyRequest) XXX_Merge(src proto.Message)
- func (m *QueryAssetSupplyRequest) XXX_Size() int
- func (m *QueryAssetSupplyRequest) XXX_Unmarshal(b []byte) error
- type QueryAssetSupplyResponse
- func (*QueryAssetSupplyResponse) Descriptor() ([]byte, []int)
- func (m *QueryAssetSupplyResponse) GetAssetSupply() *AssetSupply
- func (m *QueryAssetSupplyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAssetSupplyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAssetSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAssetSupplyResponse) ProtoMessage()
- func (m *QueryAssetSupplyResponse) Reset()
- func (m *QueryAssetSupplyResponse) Size() (n int)
- func (m *QueryAssetSupplyResponse) String() string
- func (m *QueryAssetSupplyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAssetSupplyResponse) XXX_DiscardUnknown()
- func (m *QueryAssetSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAssetSupplyResponse) XXX_Merge(src proto.Message)
- func (m *QueryAssetSupplyResponse) XXX_Size() int
- func (m *QueryAssetSupplyResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryHTLCRequest
- func (*QueryHTLCRequest) Descriptor() ([]byte, []int)
- func (m *QueryHTLCRequest) GetId() string
- func (m *QueryHTLCRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryHTLCRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryHTLCRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryHTLCRequest) ProtoMessage()
- func (m *QueryHTLCRequest) Reset()
- func (m *QueryHTLCRequest) Size() (n int)
- func (m *QueryHTLCRequest) String() string
- func (m *QueryHTLCRequest) Unmarshal(dAtA []byte) error
- func (m *QueryHTLCRequest) XXX_DiscardUnknown()
- func (m *QueryHTLCRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryHTLCRequest) XXX_Merge(src proto.Message)
- func (m *QueryHTLCRequest) XXX_Size() int
- func (m *QueryHTLCRequest) XXX_Unmarshal(b []byte) error
- type QueryHTLCResp
- type QueryHTLCResponse
- func (*QueryHTLCResponse) Descriptor() ([]byte, []int)
- func (m *QueryHTLCResponse) GetHtlc() *HTLC
- func (m *QueryHTLCResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryHTLCResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryHTLCResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryHTLCResponse) ProtoMessage()
- func (m *QueryHTLCResponse) Reset()
- func (m *QueryHTLCResponse) Size() (n int)
- func (m *QueryHTLCResponse) String() string
- func (m *QueryHTLCResponse) Unmarshal(dAtA []byte) error
- func (m *QueryHTLCResponse) XXX_DiscardUnknown()
- func (m *QueryHTLCResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryHTLCResponse) XXX_Merge(src proto.Message)
- func (m *QueryHTLCResponse) XXX_Size() int
- func (m *QueryHTLCResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResp
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type SupplyLimit
- func (*SupplyLimit) Descriptor() ([]byte, []int)
- func (this *SupplyLimit) Equal(that interface{}) bool
- func (m *SupplyLimit) Marshal() (dAtA []byte, err error)
- func (m *SupplyLimit) MarshalTo(dAtA []byte) (int, error)
- func (m *SupplyLimit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SupplyLimit) ProtoMessage()
- func (m *SupplyLimit) Reset()
- func (m *SupplyLimit) Size() (n int)
- func (m *SupplyLimit) String() string
- func (m *SupplyLimit) Unmarshal(dAtA []byte) error
- func (m *SupplyLimit) XXX_DiscardUnknown()
- func (m *SupplyLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SupplyLimit) XXX_Merge(src proto.Message)
- func (m *SupplyLimit) XXX_Size() int
- func (m *SupplyLimit) XXX_Unmarshal(b []byte) error
- type SupplyLimitDto
- type SwapDirection
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AssetSupplies(ctx context.Context, req *QueryAssetSuppliesRequest) (*QueryAssetSuppliesResponse, error)
- func (*UnimplementedQueryServer) AssetSupply(ctx context.Context, req *QueryAssetSupplyRequest) (*QueryAssetSupplyResponse, error)
- func (*UnimplementedQueryServer) HTLC(ctx context.Context, req *QueryHTLCRequest) (*QueryHTLCResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( ModuleName = "htlc" SecretLength = 64 // length for the secret in bytes HashLockLength = 64 // length for the hash lock in bytes HTLCIDLength = 64 // HTLCIDLength is the length for the hash lock in hex string MaxLengthForAddressOnOtherChain = 128 // maximum length for the address on other chains MinTimeLock = 50 // minimum time span for HTLC MaxTimeLock = 25480 // maximum time span for HTLC )
Variables ¶
var ( ErrInvalidLengthHtlc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowHtlc = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupHtlc = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var HTLCState_name = map[int32]string{
0: "HTLC_STATE_OPEN",
1: "HTLC_STATE_COMPLETED",
2: "HTLC_STATE_REFUNDED",
}
var HTLCState_value = map[string]int32{
"HTLC_STATE_OPEN": 0,
"HTLC_STATE_COMPLETED": 1,
"HTLC_STATE_REFUNDED": 2,
}
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var SwapDirection_name = map[int32]string{
0: "INVALID",
1: "INCOMING",
2: "OUTGOING",
}
var SwapDirection_value = map[string]int32{
"INVALID": 0,
"INCOMING": 1,
"OUTGOING": 2,
}
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AssetParam ¶
type AssetParam struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
SupplyLimit SupplyLimit `protobuf:"bytes,2,opt,name=supply_limit,json=supplyLimit,proto3" json:"supply_limit" yaml:"supply_limit"`
Active bool `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`
DeputyAddress string `protobuf:"bytes,4,opt,name=deputy_address,json=deputyAddress,proto3" json:"deputy_address,omitempty" yaml:"deputy_address"`
FixedFee github_com_irisnet_irishub_sdk_go_types.Int `` /* 130-byte string literal not displayed */
MinSwapAmount github_com_irisnet_irishub_sdk_go_types.Int `` /* 147-byte string literal not displayed */
MaxSwapAmount github_com_irisnet_irishub_sdk_go_types.Int `` /* 147-byte string literal not displayed */
MinBlockLock uint64 `protobuf:"varint,8,opt,name=min_block_lock,json=minBlockLock,proto3" json:"min_block_lock,omitempty" yaml:"min_block_lock"`
MaxBlockLock uint64 `protobuf:"varint,9,opt,name=max_block_lock,json=maxBlockLock,proto3" json:"max_block_lock,omitempty" yaml:"max_block_lock"`
}
func (*AssetParam) Descriptor ¶
func (*AssetParam) Descriptor() ([]byte, []int)
func (*AssetParam) Equal ¶
func (this *AssetParam) Equal(that interface{}) bool
func (*AssetParam) Marshal ¶
func (m *AssetParam) Marshal() (dAtA []byte, err error)
func (*AssetParam) MarshalToSizedBuffer ¶
func (m *AssetParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AssetParam) ProtoMessage ¶
func (*AssetParam) ProtoMessage()
func (*AssetParam) Reset ¶
func (m *AssetParam) Reset()
func (*AssetParam) Size ¶
func (m *AssetParam) Size() (n int)
func (*AssetParam) String ¶
func (m *AssetParam) String() string
func (*AssetParam) Unmarshal ¶
func (m *AssetParam) Unmarshal(dAtA []byte) error
func (*AssetParam) XXX_DiscardUnknown ¶
func (m *AssetParam) XXX_DiscardUnknown()
func (*AssetParam) XXX_Marshal ¶
func (m *AssetParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssetParam) XXX_Merge ¶
func (m *AssetParam) XXX_Merge(src proto.Message)
func (*AssetParam) XXX_Size ¶
func (m *AssetParam) XXX_Size() int
func (*AssetParam) XXX_Unmarshal ¶
func (m *AssetParam) XXX_Unmarshal(b []byte) error
type AssetParamDto ¶
type AssetParamDto struct {
Denom string `json:"denom"`
SupplyLimit SupplyLimitDto `json:"supply_limit"`
Active bool `json:"active"`
DeputyAddress string `json:"deputy_address"`
FixedFee uint64 `json:"fixed_fee"`
MinSwapAmount uint64 `json:"min_swap_amount"`
MaxSwapAmount uint64 `json:"max_swap_amount"`
MinBlockLock uint64 `json:"min_block_lock"`
MaxBlockLock uint64 `json:"max_block_lock"`
}
type AssetSupply ¶
type AssetSupply struct {
IncomingSupply types.Coin `protobuf:"bytes,1,opt,name=incoming_supply,json=incomingSupply,proto3" json:"incoming_supply" yaml:"incoming_supply"`
OutgoingSupply types.Coin `` /* 128-byte string literal not displayed */
CurrentSupply types.Coin `protobuf:"bytes,3,opt,name=current_supply,json=currentSupply,proto3" json:"current_supply" yaml:"current_supply"`
TimeLimitedCurrentSupply types.Coin `` /* 162-byte string literal not displayed */
TimeElapsed time.Duration `protobuf:"bytes,5,opt,name=time_elapsed,json=timeElapsed,proto3,stdduration" json:"time_elapsed" yaml:"time_elapsed"`
}
func (*AssetSupply) Descriptor ¶
func (*AssetSupply) Descriptor() ([]byte, []int)
func (*AssetSupply) Marshal ¶
func (m *AssetSupply) Marshal() (dAtA []byte, err error)
func (*AssetSupply) MarshalToSizedBuffer ¶
func (m *AssetSupply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AssetSupply) ProtoMessage ¶
func (*AssetSupply) ProtoMessage()
func (*AssetSupply) Reset ¶
func (m *AssetSupply) Reset()
func (*AssetSupply) Size ¶
func (m *AssetSupply) Size() (n int)
func (*AssetSupply) String ¶
func (m *AssetSupply) String() string
func (*AssetSupply) Unmarshal ¶
func (m *AssetSupply) Unmarshal(dAtA []byte) error
func (*AssetSupply) XXX_DiscardUnknown ¶
func (m *AssetSupply) XXX_DiscardUnknown()
func (*AssetSupply) XXX_Marshal ¶
func (m *AssetSupply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssetSupply) XXX_Merge ¶
func (m *AssetSupply) XXX_Merge(src proto.Message)
func (*AssetSupply) XXX_Size ¶
func (m *AssetSupply) XXX_Size() int
func (*AssetSupply) XXX_Unmarshal ¶
func (m *AssetSupply) XXX_Unmarshal(b []byte) error
type Client ¶
type Client interface {
sdk.Module
CreateHTLC(request CreateHTLCRequest, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error)
ClaimHTLC(hashLock string, secret string, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error)
QueryHTLC(hashLock string) (QueryHTLCResp, sdk.Error)
QueryParams() (QueryParamsResp, sdk.Error)
}
expose HTLC module api for user
type CreateHTLCRequest ¶
type CreateHTLCRequest struct {
To string `json:"to"`
ReceiverOnOtherChain string `json:"receiver_on_other_chain"`
SenderOnOtherChain string `json:"sender_on_other_chain"`
Amount sdk.DecCoins `json:"amount"`
HashLock string `json:"hash_lock"`
Timestamp uint64 `json:"timestamp"`
TimeLock uint64 `json:"time_lock"`
Transfer bool ` json:"transfer"`
}
type HTLC ¶
type HTLC struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
ReceiverOnOtherChain string `` /* 156-byte string literal not displayed */
SenderOnOtherChain string `` /* 148-byte string literal not displayed */
Amount github_com_irisnet_irishub_sdk_go_types.Coins `protobuf:"bytes,6,rep,name=amount,proto3,castrepeated=github.com/irisnet/irishub-sdk-go/types.Coins" json:"amount"`
HashLock string `protobuf:"bytes,7,opt,name=hash_lock,json=hashLock,proto3" json:"hash_lock,omitempty" yaml:"hash_lock"`
Secret string `protobuf:"bytes,8,opt,name=secret,proto3" json:"secret,omitempty"`
Timestamp uint64 `protobuf:"varint,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
ExpirationHeight uint64 `` /* 136-byte string literal not displayed */
State HTLCState `protobuf:"varint,11,opt,name=state,proto3,enum=irismod.htlc.HTLCState" json:"state,omitempty"`
ClosedBlock uint64 `protobuf:"varint,12,opt,name=closed_block,json=closedBlock,proto3" json:"closed_block,omitempty" yaml:"closed_block"`
Transfer bool `protobuf:"varint,13,opt,name=transfer,proto3" json:"transfer,omitempty"`
Direction SwapDirection `protobuf:"varint,14,opt,name=direction,proto3,enum=irismod.htlc.SwapDirection" json:"direction,omitempty"`
}
HTLC defines the struct of an HTLC
func (*HTLC) Descriptor ¶
func (*HTLC) ProtoMessage ¶
func (*HTLC) ProtoMessage()
func (*HTLC) XXX_DiscardUnknown ¶
func (m *HTLC) XXX_DiscardUnknown()
func (*HTLC) XXX_Unmarshal ¶
type HTLCState ¶
type HTLCState int32
HTLCState defines the state of an HTLC
func (HTLCState) EnumDescriptor ¶
type MsgClaimHTLC ¶
type MsgClaimHTLC struct {
Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
Secret string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"`
}
MsgClaimHTLC defines a message to claim an HTLC
func (*MsgClaimHTLC) Descriptor ¶
func (*MsgClaimHTLC) Descriptor() ([]byte, []int)
func (*MsgClaimHTLC) Equal ¶
func (this *MsgClaimHTLC) Equal(that interface{}) bool
func (MsgClaimHTLC) GetSignBytes ¶
func (msg MsgClaimHTLC) GetSignBytes() []byte
func (MsgClaimHTLC) GetSigners ¶
func (msg MsgClaimHTLC) GetSigners() []sdk.AccAddress
func (*MsgClaimHTLC) Marshal ¶
func (m *MsgClaimHTLC) Marshal() (dAtA []byte, err error)
func (*MsgClaimHTLC) MarshalToSizedBuffer ¶
func (m *MsgClaimHTLC) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimHTLC) ProtoMessage ¶
func (*MsgClaimHTLC) ProtoMessage()
func (*MsgClaimHTLC) Reset ¶
func (m *MsgClaimHTLC) Reset()
func (MsgClaimHTLC) Route ¶
func (msg MsgClaimHTLC) Route() string
func (*MsgClaimHTLC) Size ¶
func (m *MsgClaimHTLC) Size() (n int)
func (*MsgClaimHTLC) String ¶
func (m *MsgClaimHTLC) String() string
func (MsgClaimHTLC) Type ¶
func (msg MsgClaimHTLC) Type() string
func (*MsgClaimHTLC) Unmarshal ¶
func (m *MsgClaimHTLC) Unmarshal(dAtA []byte) error
func (MsgClaimHTLC) ValidateBasic ¶
func (msg MsgClaimHTLC) ValidateBasic() error
func (*MsgClaimHTLC) XXX_DiscardUnknown ¶
func (m *MsgClaimHTLC) XXX_DiscardUnknown()
func (*MsgClaimHTLC) XXX_Marshal ¶
func (m *MsgClaimHTLC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimHTLC) XXX_Merge ¶
func (m *MsgClaimHTLC) XXX_Merge(src proto.Message)
func (*MsgClaimHTLC) XXX_Size ¶
func (m *MsgClaimHTLC) XXX_Size() int
func (*MsgClaimHTLC) XXX_Unmarshal ¶
func (m *MsgClaimHTLC) XXX_Unmarshal(b []byte) error
type MsgClaimHTLCResponse ¶
type MsgClaimHTLCResponse struct {
}
MsgClaimHTLCResponse defines the Msg/ClaimHTLC response type
func (*MsgClaimHTLCResponse) Descriptor ¶
func (*MsgClaimHTLCResponse) Descriptor() ([]byte, []int)
func (*MsgClaimHTLCResponse) Marshal ¶
func (m *MsgClaimHTLCResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimHTLCResponse) MarshalTo ¶
func (m *MsgClaimHTLCResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClaimHTLCResponse) MarshalToSizedBuffer ¶
func (m *MsgClaimHTLCResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimHTLCResponse) ProtoMessage ¶
func (*MsgClaimHTLCResponse) ProtoMessage()
func (*MsgClaimHTLCResponse) Reset ¶
func (m *MsgClaimHTLCResponse) Reset()
func (*MsgClaimHTLCResponse) Size ¶
func (m *MsgClaimHTLCResponse) Size() (n int)
func (*MsgClaimHTLCResponse) String ¶
func (m *MsgClaimHTLCResponse) String() string
func (*MsgClaimHTLCResponse) Unmarshal ¶
func (m *MsgClaimHTLCResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimHTLCResponse) XXX_DiscardUnknown ¶
func (m *MsgClaimHTLCResponse) XXX_DiscardUnknown()
func (*MsgClaimHTLCResponse) XXX_Marshal ¶
func (m *MsgClaimHTLCResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimHTLCResponse) XXX_Merge ¶
func (m *MsgClaimHTLCResponse) XXX_Merge(src proto.Message)
func (*MsgClaimHTLCResponse) XXX_Size ¶
func (m *MsgClaimHTLCResponse) XXX_Size() int
func (*MsgClaimHTLCResponse) XXX_Unmarshal ¶
func (m *MsgClaimHTLCResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface {
// CreateHTLC defines a method for creating a HTLC
CreateHTLC(ctx context.Context, in *MsgCreateHTLC, opts ...grpc.CallOption) (*MsgCreateHTLCResponse, error)
// ClaimHTLC defines a method for claiming a HTLC
ClaimHTLC(ctx context.Context, in *MsgClaimHTLC, opts ...grpc.CallOption) (*MsgClaimHTLCResponse, 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 MsgCreateHTLC ¶
type MsgCreateHTLC struct {
Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
ReceiverOnOtherChain string `` /* 156-byte string literal not displayed */
SenderOnOtherChain string `` /* 148-byte string literal not displayed */
Amount github_com_irisnet_irishub_sdk_go_types.Coins `protobuf:"bytes,5,rep,name=amount,proto3,castrepeated=github.com/irisnet/irishub-sdk-go/types.Coins" json:"amount"`
HashLock string `protobuf:"bytes,6,opt,name=hash_lock,json=hashLock,proto3" json:"hash_lock,omitempty" yaml:"hash_lock"`
Timestamp uint64 `protobuf:"varint,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
TimeLock uint64 `protobuf:"varint,8,opt,name=time_lock,json=timeLock,proto3" json:"time_lock,omitempty" yaml:"time_lock"`
Transfer bool `protobuf:"varint,9,opt,name=transfer,proto3" json:"transfer,omitempty"`
}
MsgCreateHTLC defines a message to create an HTLC
func (*MsgCreateHTLC) Descriptor ¶
func (*MsgCreateHTLC) Descriptor() ([]byte, []int)
func (*MsgCreateHTLC) Equal ¶
func (this *MsgCreateHTLC) Equal(that interface{}) bool
func (MsgCreateHTLC) GetSignBytes ¶
func (msg MsgCreateHTLC) GetSignBytes() []byte
func (MsgCreateHTLC) GetSigners ¶
func (msg MsgCreateHTLC) GetSigners() []sdk.AccAddress
func (*MsgCreateHTLC) Marshal ¶
func (m *MsgCreateHTLC) Marshal() (dAtA []byte, err error)
func (*MsgCreateHTLC) MarshalToSizedBuffer ¶
func (m *MsgCreateHTLC) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateHTLC) ProtoMessage ¶
func (*MsgCreateHTLC) ProtoMessage()
func (*MsgCreateHTLC) Reset ¶
func (m *MsgCreateHTLC) Reset()
func (MsgCreateHTLC) Route ¶
func (msg MsgCreateHTLC) Route() string
func (*MsgCreateHTLC) Size ¶
func (m *MsgCreateHTLC) Size() (n int)
func (*MsgCreateHTLC) String ¶
func (m *MsgCreateHTLC) String() string
func (MsgCreateHTLC) Type ¶
func (msg MsgCreateHTLC) Type() string
func (*MsgCreateHTLC) Unmarshal ¶
func (m *MsgCreateHTLC) Unmarshal(dAtA []byte) error
func (MsgCreateHTLC) ValidateBasic ¶
func (msg MsgCreateHTLC) ValidateBasic() error
func (*MsgCreateHTLC) XXX_DiscardUnknown ¶
func (m *MsgCreateHTLC) XXX_DiscardUnknown()
func (*MsgCreateHTLC) XXX_Marshal ¶
func (m *MsgCreateHTLC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateHTLC) XXX_Merge ¶
func (m *MsgCreateHTLC) XXX_Merge(src proto.Message)
func (*MsgCreateHTLC) XXX_Size ¶
func (m *MsgCreateHTLC) XXX_Size() int
func (*MsgCreateHTLC) XXX_Unmarshal ¶
func (m *MsgCreateHTLC) XXX_Unmarshal(b []byte) error
type MsgCreateHTLCResponse ¶
type MsgCreateHTLCResponse struct {
}
MsgCreateHTLCResponse defines the Msg/CreateHTLC response type
func (*MsgCreateHTLCResponse) Descriptor ¶
func (*MsgCreateHTLCResponse) Descriptor() ([]byte, []int)
func (*MsgCreateHTLCResponse) Marshal ¶
func (m *MsgCreateHTLCResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateHTLCResponse) MarshalTo ¶
func (m *MsgCreateHTLCResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateHTLCResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateHTLCResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateHTLCResponse) ProtoMessage ¶
func (*MsgCreateHTLCResponse) ProtoMessage()
func (*MsgCreateHTLCResponse) Reset ¶
func (m *MsgCreateHTLCResponse) Reset()
func (*MsgCreateHTLCResponse) Size ¶
func (m *MsgCreateHTLCResponse) Size() (n int)
func (*MsgCreateHTLCResponse) String ¶
func (m *MsgCreateHTLCResponse) String() string
func (*MsgCreateHTLCResponse) Unmarshal ¶
func (m *MsgCreateHTLCResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateHTLCResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateHTLCResponse) XXX_DiscardUnknown()
func (*MsgCreateHTLCResponse) XXX_Marshal ¶
func (m *MsgCreateHTLCResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateHTLCResponse) XXX_Merge ¶
func (m *MsgCreateHTLCResponse) XXX_Merge(src proto.Message)
func (*MsgCreateHTLCResponse) XXX_Size ¶
func (m *MsgCreateHTLCResponse) XXX_Size() int
func (*MsgCreateHTLCResponse) XXX_Unmarshal ¶
func (m *MsgCreateHTLCResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface {
// CreateHTLC defines a method for creating a HTLC
CreateHTLC(context.Context, *MsgCreateHTLC) (*MsgCreateHTLCResponse, error)
// ClaimHTLC defines a method for claiming a HTLC
ClaimHTLC(context.Context, *MsgClaimHTLC) (*MsgClaimHTLCResponse, error)
}
MsgServer is the server API for Msg service.
type Params ¶
type Params struct {
AssetParams []AssetParam `protobuf:"bytes,1,rep,name=asset_params,json=assetParams,proto3" json:"asset_params" yaml:"asset_params"`
}
Params defines token module's parameters
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAssetSuppliesRequest ¶
type QueryAssetSuppliesRequest struct {
}
QueryAssetSuppliesRequest is request type for the Query/AssetSupplies RPC method
func (*QueryAssetSuppliesRequest) Descriptor ¶
func (*QueryAssetSuppliesRequest) Descriptor() ([]byte, []int)
func (*QueryAssetSuppliesRequest) Marshal ¶
func (m *QueryAssetSuppliesRequest) Marshal() (dAtA []byte, err error)
func (*QueryAssetSuppliesRequest) MarshalTo ¶
func (m *QueryAssetSuppliesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAssetSuppliesRequest) MarshalToSizedBuffer ¶
func (m *QueryAssetSuppliesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAssetSuppliesRequest) ProtoMessage ¶
func (*QueryAssetSuppliesRequest) ProtoMessage()
func (*QueryAssetSuppliesRequest) Reset ¶
func (m *QueryAssetSuppliesRequest) Reset()
func (*QueryAssetSuppliesRequest) Size ¶
func (m *QueryAssetSuppliesRequest) Size() (n int)
func (*QueryAssetSuppliesRequest) String ¶
func (m *QueryAssetSuppliesRequest) String() string
func (*QueryAssetSuppliesRequest) Unmarshal ¶
func (m *QueryAssetSuppliesRequest) Unmarshal(dAtA []byte) error
func (*QueryAssetSuppliesRequest) XXX_DiscardUnknown ¶
func (m *QueryAssetSuppliesRequest) XXX_DiscardUnknown()
func (*QueryAssetSuppliesRequest) XXX_Marshal ¶
func (m *QueryAssetSuppliesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAssetSuppliesRequest) XXX_Merge ¶
func (m *QueryAssetSuppliesRequest) XXX_Merge(src proto.Message)
func (*QueryAssetSuppliesRequest) XXX_Size ¶
func (m *QueryAssetSuppliesRequest) XXX_Size() int
func (*QueryAssetSuppliesRequest) XXX_Unmarshal ¶
func (m *QueryAssetSuppliesRequest) XXX_Unmarshal(b []byte) error
type QueryAssetSuppliesResponse ¶
type QueryAssetSuppliesResponse struct {
AssetSupplies []AssetSupply `protobuf:"bytes,1,rep,name=asset_supplies,json=assetSupplies,proto3" json:"asset_supplies" yaml:"asset_supplies"`
}
QueryAssetSuppliesResponse is response type for the Query/AssetSupplies RPC method
func (*QueryAssetSuppliesResponse) Descriptor ¶
func (*QueryAssetSuppliesResponse) Descriptor() ([]byte, []int)
func (*QueryAssetSuppliesResponse) GetAssetSupplies ¶
func (m *QueryAssetSuppliesResponse) GetAssetSupplies() []AssetSupply
func (*QueryAssetSuppliesResponse) Marshal ¶
func (m *QueryAssetSuppliesResponse) Marshal() (dAtA []byte, err error)
func (*QueryAssetSuppliesResponse) MarshalTo ¶
func (m *QueryAssetSuppliesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAssetSuppliesResponse) MarshalToSizedBuffer ¶
func (m *QueryAssetSuppliesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAssetSuppliesResponse) ProtoMessage ¶
func (*QueryAssetSuppliesResponse) ProtoMessage()
func (*QueryAssetSuppliesResponse) Reset ¶
func (m *QueryAssetSuppliesResponse) Reset()
func (*QueryAssetSuppliesResponse) Size ¶
func (m *QueryAssetSuppliesResponse) Size() (n int)
func (*QueryAssetSuppliesResponse) String ¶
func (m *QueryAssetSuppliesResponse) String() string
func (*QueryAssetSuppliesResponse) Unmarshal ¶
func (m *QueryAssetSuppliesResponse) Unmarshal(dAtA []byte) error
func (*QueryAssetSuppliesResponse) XXX_DiscardUnknown ¶
func (m *QueryAssetSuppliesResponse) XXX_DiscardUnknown()
func (*QueryAssetSuppliesResponse) XXX_Marshal ¶
func (m *QueryAssetSuppliesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAssetSuppliesResponse) XXX_Merge ¶
func (m *QueryAssetSuppliesResponse) XXX_Merge(src proto.Message)
func (*QueryAssetSuppliesResponse) XXX_Size ¶
func (m *QueryAssetSuppliesResponse) XXX_Size() int
func (*QueryAssetSuppliesResponse) XXX_Unmarshal ¶
func (m *QueryAssetSuppliesResponse) XXX_Unmarshal(b []byte) error
type QueryAssetSupplyRequest ¶
type QueryAssetSupplyRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QueryAssetSupplyRequest is request type for the Query/AssetSupply RPC method
func (*QueryAssetSupplyRequest) Descriptor ¶
func (*QueryAssetSupplyRequest) Descriptor() ([]byte, []int)
func (*QueryAssetSupplyRequest) GetDenom ¶
func (m *QueryAssetSupplyRequest) GetDenom() string
func (*QueryAssetSupplyRequest) Marshal ¶
func (m *QueryAssetSupplyRequest) Marshal() (dAtA []byte, err error)
func (*QueryAssetSupplyRequest) MarshalTo ¶
func (m *QueryAssetSupplyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAssetSupplyRequest) MarshalToSizedBuffer ¶
func (m *QueryAssetSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAssetSupplyRequest) ProtoMessage ¶
func (*QueryAssetSupplyRequest) ProtoMessage()
func (*QueryAssetSupplyRequest) Reset ¶
func (m *QueryAssetSupplyRequest) Reset()
func (*QueryAssetSupplyRequest) Size ¶
func (m *QueryAssetSupplyRequest) Size() (n int)
func (*QueryAssetSupplyRequest) String ¶
func (m *QueryAssetSupplyRequest) String() string
func (*QueryAssetSupplyRequest) Unmarshal ¶
func (m *QueryAssetSupplyRequest) Unmarshal(dAtA []byte) error
func (*QueryAssetSupplyRequest) XXX_DiscardUnknown ¶
func (m *QueryAssetSupplyRequest) XXX_DiscardUnknown()
func (*QueryAssetSupplyRequest) XXX_Marshal ¶
func (m *QueryAssetSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAssetSupplyRequest) XXX_Merge ¶
func (m *QueryAssetSupplyRequest) XXX_Merge(src proto.Message)
func (*QueryAssetSupplyRequest) XXX_Size ¶
func (m *QueryAssetSupplyRequest) XXX_Size() int
func (*QueryAssetSupplyRequest) XXX_Unmarshal ¶
func (m *QueryAssetSupplyRequest) XXX_Unmarshal(b []byte) error
type QueryAssetSupplyResponse ¶
type QueryAssetSupplyResponse struct {
AssetSupply *AssetSupply `protobuf:"bytes,1,opt,name=asset_supply,json=assetSupply,proto3" json:"asset_supply,omitempty" yaml:"asset_supply"`
}
QueryAssetSupplyResponse is response type for the Query/AssetSupply RPC method
func (*QueryAssetSupplyResponse) Descriptor ¶
func (*QueryAssetSupplyResponse) Descriptor() ([]byte, []int)
func (*QueryAssetSupplyResponse) GetAssetSupply ¶
func (m *QueryAssetSupplyResponse) GetAssetSupply() *AssetSupply
func (*QueryAssetSupplyResponse) Marshal ¶
func (m *QueryAssetSupplyResponse) Marshal() (dAtA []byte, err error)
func (*QueryAssetSupplyResponse) MarshalTo ¶
func (m *QueryAssetSupplyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAssetSupplyResponse) MarshalToSizedBuffer ¶
func (m *QueryAssetSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAssetSupplyResponse) ProtoMessage ¶
func (*QueryAssetSupplyResponse) ProtoMessage()
func (*QueryAssetSupplyResponse) Reset ¶
func (m *QueryAssetSupplyResponse) Reset()
func (*QueryAssetSupplyResponse) Size ¶
func (m *QueryAssetSupplyResponse) Size() (n int)
func (*QueryAssetSupplyResponse) String ¶
func (m *QueryAssetSupplyResponse) String() string
func (*QueryAssetSupplyResponse) Unmarshal ¶
func (m *QueryAssetSupplyResponse) Unmarshal(dAtA []byte) error
func (*QueryAssetSupplyResponse) XXX_DiscardUnknown ¶
func (m *QueryAssetSupplyResponse) XXX_DiscardUnknown()
func (*QueryAssetSupplyResponse) XXX_Marshal ¶
func (m *QueryAssetSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAssetSupplyResponse) XXX_Merge ¶
func (m *QueryAssetSupplyResponse) XXX_Merge(src proto.Message)
func (*QueryAssetSupplyResponse) XXX_Size ¶
func (m *QueryAssetSupplyResponse) XXX_Size() int
func (*QueryAssetSupplyResponse) XXX_Unmarshal ¶
func (m *QueryAssetSupplyResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface {
// HTLC queries the HTLC by the specified hash lock
HTLC(ctx context.Context, in *QueryHTLCRequest, opts ...grpc.CallOption) (*QueryHTLCResponse, error)
// AssetSupply queries the supply of an asset
AssetSupply(ctx context.Context, in *QueryAssetSupplyRequest, opts ...grpc.CallOption) (*QueryAssetSupplyResponse, error)
// AssetSupplies queries the supplies of all assets
AssetSupplies(ctx context.Context, in *QueryAssetSuppliesRequest, opts ...grpc.CallOption) (*QueryAssetSuppliesResponse, error)
// Params queries the htlc parameters
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryHTLCRequest ¶
type QueryHTLCRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
QueryHTLCRequest is the request type for the Query/HTLC RPC method
func (*QueryHTLCRequest) Descriptor ¶
func (*QueryHTLCRequest) Descriptor() ([]byte, []int)
func (*QueryHTLCRequest) GetId ¶
func (m *QueryHTLCRequest) GetId() string
func (*QueryHTLCRequest) Marshal ¶
func (m *QueryHTLCRequest) Marshal() (dAtA []byte, err error)
func (*QueryHTLCRequest) MarshalToSizedBuffer ¶
func (m *QueryHTLCRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryHTLCRequest) ProtoMessage ¶
func (*QueryHTLCRequest) ProtoMessage()
func (*QueryHTLCRequest) Reset ¶
func (m *QueryHTLCRequest) Reset()
func (*QueryHTLCRequest) Size ¶
func (m *QueryHTLCRequest) Size() (n int)
func (*QueryHTLCRequest) String ¶
func (m *QueryHTLCRequest) String() string
func (*QueryHTLCRequest) Unmarshal ¶
func (m *QueryHTLCRequest) Unmarshal(dAtA []byte) error
func (*QueryHTLCRequest) XXX_DiscardUnknown ¶
func (m *QueryHTLCRequest) XXX_DiscardUnknown()
func (*QueryHTLCRequest) XXX_Marshal ¶
func (m *QueryHTLCRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryHTLCRequest) XXX_Merge ¶
func (m *QueryHTLCRequest) XXX_Merge(src proto.Message)
func (*QueryHTLCRequest) XXX_Size ¶
func (m *QueryHTLCRequest) XXX_Size() int
func (*QueryHTLCRequest) XXX_Unmarshal ¶
func (m *QueryHTLCRequest) XXX_Unmarshal(b []byte) error
type QueryHTLCResp ¶
type QueryHTLCResp struct {
Sender string `json:"sender"`
To string `json:"to"`
ReceiverOnOtherChain string `json:"receiver_on_other_chain"`
SenderOnOtherChain string `json:"sender_on_other_chain"`
Amount sdk.Coins `json:"amount"`
Secret string `json:"secret"`
Timestamp uint64 `json:"timestamp"`
ExpirationHeight uint64 `json:"expiration_height"`
State int32 `json:"state"`
Transfer bool ` json:"transfer"`
}
type QueryHTLCResponse ¶
type QueryHTLCResponse struct {
Htlc *HTLC `protobuf:"bytes,1,opt,name=htlc,proto3" json:"htlc,omitempty"`
}
QueryBalanceResponse is the response type for the Query/HTLC RPC method
func (*QueryHTLCResponse) Descriptor ¶
func (*QueryHTLCResponse) Descriptor() ([]byte, []int)
func (*QueryHTLCResponse) GetHtlc ¶
func (m *QueryHTLCResponse) GetHtlc() *HTLC
func (*QueryHTLCResponse) Marshal ¶
func (m *QueryHTLCResponse) Marshal() (dAtA []byte, err error)
func (*QueryHTLCResponse) MarshalTo ¶
func (m *QueryHTLCResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryHTLCResponse) MarshalToSizedBuffer ¶
func (m *QueryHTLCResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryHTLCResponse) ProtoMessage ¶
func (*QueryHTLCResponse) ProtoMessage()
func (*QueryHTLCResponse) Reset ¶
func (m *QueryHTLCResponse) Reset()
func (*QueryHTLCResponse) Size ¶
func (m *QueryHTLCResponse) Size() (n int)
func (*QueryHTLCResponse) String ¶
func (m *QueryHTLCResponse) String() string
func (*QueryHTLCResponse) Unmarshal ¶
func (m *QueryHTLCResponse) Unmarshal(dAtA []byte) error
func (*QueryHTLCResponse) XXX_DiscardUnknown ¶
func (m *QueryHTLCResponse) XXX_DiscardUnknown()
func (*QueryHTLCResponse) XXX_Marshal ¶
func (m *QueryHTLCResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryHTLCResponse) XXX_Merge ¶
func (m *QueryHTLCResponse) XXX_Merge(src proto.Message)
func (*QueryHTLCResponse) XXX_Size ¶
func (m *QueryHTLCResponse) XXX_Size() int
func (*QueryHTLCResponse) XXX_Unmarshal ¶
func (m *QueryHTLCResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct {
}
QueryParamsRequest is request type for the Query/Parameters RPC method
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResp ¶
type QueryParamsResp struct {
AssetParams []AssetParamDto `json:"asset_params"`
}
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is response type for the Query/Parameters RPC method
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface {
// HTLC queries the HTLC by the specified hash lock
HTLC(context.Context, *QueryHTLCRequest) (*QueryHTLCResponse, error)
// AssetSupply queries the supply of an asset
AssetSupply(context.Context, *QueryAssetSupplyRequest) (*QueryAssetSupplyResponse, error)
// AssetSupplies queries the supplies of all assets
AssetSupplies(context.Context, *QueryAssetSuppliesRequest) (*QueryAssetSuppliesResponse, error)
// Params queries the htlc parameters
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}
QueryServer is the server API for Query service.
type SupplyLimit ¶
type SupplyLimit struct {
Limit github_com_irisnet_irishub_sdk_go_types.Int `protobuf:"bytes,1,opt,name=limit,proto3,customtype=github.com/irisnet/irishub-sdk-go/types.Int" json:"limit"`
TimeLimited bool `protobuf:"varint,2,opt,name=time_limited,json=timeLimited,proto3" json:"time_limited,omitempty" yaml:"time_limited"`
TimePeriod time.Duration `protobuf:"bytes,3,opt,name=time_period,json=timePeriod,proto3,stdduration" json:"time_period" yaml:"time_period"`
TimeBasedLimit github_com_irisnet_irishub_sdk_go_types.Int `` /* 150-byte string literal not displayed */
}
func (*SupplyLimit) Descriptor ¶
func (*SupplyLimit) Descriptor() ([]byte, []int)
func (*SupplyLimit) Equal ¶
func (this *SupplyLimit) Equal(that interface{}) bool
func (*SupplyLimit) Marshal ¶
func (m *SupplyLimit) Marshal() (dAtA []byte, err error)
func (*SupplyLimit) MarshalToSizedBuffer ¶
func (m *SupplyLimit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SupplyLimit) ProtoMessage ¶
func (*SupplyLimit) ProtoMessage()
func (*SupplyLimit) Reset ¶
func (m *SupplyLimit) Reset()
func (*SupplyLimit) Size ¶
func (m *SupplyLimit) Size() (n int)
func (*SupplyLimit) String ¶
func (m *SupplyLimit) String() string
func (*SupplyLimit) Unmarshal ¶
func (m *SupplyLimit) Unmarshal(dAtA []byte) error
func (*SupplyLimit) XXX_DiscardUnknown ¶
func (m *SupplyLimit) XXX_DiscardUnknown()
func (*SupplyLimit) XXX_Marshal ¶
func (m *SupplyLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SupplyLimit) XXX_Merge ¶
func (m *SupplyLimit) XXX_Merge(src proto.Message)
func (*SupplyLimit) XXX_Size ¶
func (m *SupplyLimit) XXX_Size() int
func (*SupplyLimit) XXX_Unmarshal ¶
func (m *SupplyLimit) XXX_Unmarshal(b []byte) error
type SupplyLimitDto ¶
type SwapDirection ¶
type SwapDirection int32
SwapDirection defines the direction of an HTLT
const ( // INVALID defines an htlt invalid direction. Invalid SwapDirection = 0 // INCOMING defines an htlt incoming direction. Incoming SwapDirection = 1 // OUTGOING defines an htlt outgoing direction. Outgoing SwapDirection = 2 )
func (SwapDirection) EnumDescriptor ¶
func (SwapDirection) EnumDescriptor() ([]byte, []int)
func (SwapDirection) String ¶
func (x SwapDirection) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct {
}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ClaimHTLC ¶
func (*UnimplementedMsgServer) ClaimHTLC(ctx context.Context, req *MsgClaimHTLC) (*MsgClaimHTLCResponse, error)
func (*UnimplementedMsgServer) CreateHTLC ¶
func (*UnimplementedMsgServer) CreateHTLC(ctx context.Context, req *MsgCreateHTLC) (*MsgCreateHTLCResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct {
}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AssetSupplies ¶
func (*UnimplementedQueryServer) AssetSupplies(ctx context.Context, req *QueryAssetSuppliesRequest) (*QueryAssetSuppliesResponse, error)
func (*UnimplementedQueryServer) AssetSupply ¶
func (*UnimplementedQueryServer) AssetSupply(ctx context.Context, req *QueryAssetSupplyRequest) (*QueryAssetSupplyResponse, error)
func (*UnimplementedQueryServer) HTLC ¶
func (*UnimplementedQueryServer) HTLC(ctx context.Context, req *QueryHTLCRequest) (*QueryHTLCResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)