types

package
v1.0.3-prerelease Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 38 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeClaim             = "claim"
	EventTypeClaimFromEth      = "claim_from_eth"
	EventTypeThorchainDelegate = "claim_thor_delegate"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "claimarkeo" // append arkeo to avoid namespace collisions with comsos claim module

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_claim"

	// ClaimRecordsStorePrefix defines the store prefix for the claim records (by arkeo address)
	ClaimRecordsArkeoStorePrefix = "claimrecordsarkeo"

	// ClaimRecordsStorePrefix defines the store prefix for the claim records (by eth address)
	ClaimRecordsEthStorePrefix = "claimrecordsethereum"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const TypeMsgAddClaim = "add_claim"
View Source
const TypeMsgClaimArkeo = "claim_arkeo"
View Source
const TypeMsgClaimEth = "claim_eth"
View Source
const TypeMsgClaimThorchain = "claim_thorchain"
View Source
const TypeMsgTransferClaim = "transfer_claim"

Variables

View Source
var (
	ErrInvalidLengthClaimRecord        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowClaimRecord          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupClaimRecord = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrAirdropEnded                = errors.Register(ModuleName, 1, "Airdrop has ended")
	ErrNoClaimableAmount           = errors.Register(ModuleName, 2, "No Claimable Arkeo")
	ErrInvalidSignature            = errors.Register(ModuleName, 3, "Invalid signature")
	ErrClaimRecordNotTransferrable = errors.Register(ModuleName, 4, "Claim record can not be transferred")
	ErrInvalidCreator              = errors.Register(ModuleName, 5, "Invalid Creator")
)
View Source
var (
	EIP712Types = apitypes.Types{
		"Claim": []apitypes.Type{
			{Name: "address", Type: "address"},
			{Name: "arkeoAddress", Type: "string"},
			{Name: "amount", Type: "string"},
		},
		"EIP712Domain": []apitypes.Type{
			{Name: "name", Type: "string"},
			{Name: "chainId", Type: "uint256"},
			{Name: "version", Type: "string"},
		},
	}

	EIP712Domain = apitypes.TypedDataDomain{
		Name:    "ArkdropClaim",
		Version: "1",
		ChainId: math.NewHexOrDecimal256(1),
	}
)
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 (
	KeyClaimDenom            = []byte("ClaimDenom")
	DefaultClaimDenom string = "uarkeo"
)
View Source
var (
	KeyDurationUntilDecay                   = []byte("DurationUntilDecay")
	DefaultDurationUntilDecay time.Duration = time.Hour
)
View Source
var (
	KeyDurationOfDecay                   = []byte("DurationOfDecay")
	DefaultDurationOfDecay time.Duration = time.Hour
)
View Source
var (
	KeyAirdropStartTime               = []byte("AirdropStartTime")
	DeafultAirdropStartTime time.Time = time.Now().UTC()
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = 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 Action_name = map[int32]string{
	0: "ACTION_CLAIM",
	1: "ACTION_VOTE",
	2: "ACTION_DELEGATE",
}
View Source
var Action_value = map[string]int32{
	"ACTION_CLAIM":    0,
	"ACTION_VOTE":     1,
	"ACTION_DELEGATE": 2,
}
View Source
var Chain_name = map[int32]string{
	0: "ARKEO",
	1: "ETHEREUM",
}
View Source
var Chain_value = map[string]int32{
	"ARKEO":    0,
	"ETHEREUM": 1,
}
View Source
var Msg_serviceDesc = _Msg_serviceDesc
View Source
var Query_serviceDesc = _Query_serviceDesc

Functions

func IsValidAddress

func IsValidAddress(address string, chain Chain) bool

func IsValidEthAddress

func IsValidEthAddress(address string) bool

isValidEthAddress checks if the provided string is a valid address or not.

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI
	SetModuleAccount(ctx context.Context, macc sdk.ModuleAccountI)
	GetModuleAddress(name string) sdk.AccAddress
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type Action

type Action int32

actions for arkeo chain

const (
	ACTION_CLAIM    Action = 0
	ACTION_VOTE     Action = 1
	ACTION_DELEGATE Action = 2
)

func (Action) EnumDescriptor

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

func (Action) String

func (x Action) String() string

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx context.Context, senderPool, recipientPool string, amt sdk.Coins) error
	GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin
	MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type Chain

type Chain int32
const (
	ARKEO    Chain = 0
	ETHEREUM Chain = 1
)

func ChainFromString

func ChainFromString(chain string) (Chain, error)

ChainFromString convert chain string to Chain Enum type

func (Chain) EnumDescriptor

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

func (Chain) String

func (x Chain) String() string

type ClaimRecord

type ClaimRecord struct {
	Chain Chain `protobuf:"varint,1,opt,name=chain,proto3,enum=arkeo.claim.Chain" json:"chain,omitempty"`
	// arkeo address of claim user
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	// claimable amount per action (claim, vote, delegate - changed to 0 after
	// action completed)
	AmountClaim    types.Coin `protobuf:"bytes,3,opt,name=amount_claim,json=amountClaim,proto3" json:"amount_claim" yaml:"amount_claim"`
	AmountVote     types.Coin `protobuf:"bytes,4,opt,name=amount_vote,json=amountVote,proto3" json:"amount_vote" yaml:"amount_vote"`
	AmountDelegate types.Coin `protobuf:"bytes,5,opt,name=amount_delegate,json=amountDelegate,proto3" json:"amount_delegate" yaml:"amount_delegate"`
	IsTransferable bool       `protobuf:"varint,6,opt,name=is_transferable,json=isTransferable,proto3" json:"is_transferable,omitempty"`
}

A Claim Records is the metadata of claim data per address

func (*ClaimRecord) Descriptor

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

func (*ClaimRecord) GetAddress

func (m *ClaimRecord) GetAddress() string

func (*ClaimRecord) GetAmountClaim

func (m *ClaimRecord) GetAmountClaim() types.Coin

func (*ClaimRecord) GetAmountDelegate

func (m *ClaimRecord) GetAmountDelegate() types.Coin

func (*ClaimRecord) GetAmountVote

func (m *ClaimRecord) GetAmountVote() types.Coin

func (*ClaimRecord) GetChain

func (m *ClaimRecord) GetChain() Chain

func (*ClaimRecord) GetIsTransferable

func (m *ClaimRecord) GetIsTransferable() bool

func (*ClaimRecord) IsEmpty

func (claimRecord *ClaimRecord) IsEmpty() bool

func (*ClaimRecord) Marshal

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

func (*ClaimRecord) MarshalTo

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

func (*ClaimRecord) MarshalToSizedBuffer

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

func (*ClaimRecord) ProtoMessage

func (*ClaimRecord) ProtoMessage()

func (*ClaimRecord) Reset

func (m *ClaimRecord) Reset()

func (*ClaimRecord) Size

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

func (*ClaimRecord) String

func (m *ClaimRecord) String() string

func (*ClaimRecord) Unmarshal

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

func (*ClaimRecord) XXX_DiscardUnknown

func (m *ClaimRecord) XXX_DiscardUnknown()

func (*ClaimRecord) XXX_Marshal

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

func (*ClaimRecord) XXX_Merge

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

func (*ClaimRecord) XXX_Size

func (m *ClaimRecord) XXX_Size() int

func (*ClaimRecord) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// balance of the claim module's account
	ModuleAccountBalance types.Coin `` /* 143-byte string literal not displayed */
	Params               Params     `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
	// list of claim records, one for every airdrop recipient
	ClaimRecords []ClaimRecord `protobuf:"bytes,3,rep,name=claim_records,json=claimRecords,proto3" json:"claim_records" yaml:"claim_records"`
}

GenesisState defines the claim module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetClaimRecords

func (m *GenesisState) GetClaimRecords() []ClaimRecord

func (*GenesisState) GetModuleAccountBalance

func (m *GenesisState) GetModuleAccountBalance() types.Coin

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

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 MsgAddClaim

type MsgAddClaim struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Chain   Chain  `protobuf:"varint,2,opt,name=chain,proto3,enum=arkeo.claim.Chain" json:"chain,omitempty"`
	Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Amount  int64  `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
}

func NewMsgAddClaim

func NewMsgAddClaim(creator cosmos.AccAddress, chain Chain, address string, amount int64) *MsgAddClaim

func (*MsgAddClaim) Descriptor

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

func (*MsgAddClaim) GetAddress

func (m *MsgAddClaim) GetAddress() string

func (*MsgAddClaim) GetAmount

func (m *MsgAddClaim) GetAmount() int64

func (*MsgAddClaim) GetChain

func (m *MsgAddClaim) GetChain() Chain

func (*MsgAddClaim) GetCreator

func (m *MsgAddClaim) GetCreator() string

func (*MsgAddClaim) GetSignBytes

func (msg *MsgAddClaim) GetSignBytes() []byte

func (*MsgAddClaim) GetSigners

func (msg *MsgAddClaim) GetSigners() []sdk.AccAddress

func (*MsgAddClaim) Marshal

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

func (*MsgAddClaim) MarshalTo

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

func (*MsgAddClaim) MarshalToSizedBuffer

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

func (*MsgAddClaim) ProtoMessage

func (*MsgAddClaim) ProtoMessage()

func (*MsgAddClaim) Reset

func (m *MsgAddClaim) Reset()

func (*MsgAddClaim) Route

func (msg *MsgAddClaim) Route() string

func (*MsgAddClaim) Size

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

func (*MsgAddClaim) String

func (m *MsgAddClaim) String() string

func (*MsgAddClaim) Type

func (msg *MsgAddClaim) Type() string

func (*MsgAddClaim) Unmarshal

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

func (*MsgAddClaim) ValidateBasic

func (msg *MsgAddClaim) ValidateBasic() error

func (*MsgAddClaim) XXX_DiscardUnknown

func (m *MsgAddClaim) XXX_DiscardUnknown()

func (*MsgAddClaim) XXX_Marshal

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

func (*MsgAddClaim) XXX_Merge

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

func (*MsgAddClaim) XXX_Size

func (m *MsgAddClaim) XXX_Size() int

func (*MsgAddClaim) XXX_Unmarshal

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

type MsgAddClaimResponse

type MsgAddClaimResponse struct {
}

func (*MsgAddClaimResponse) Descriptor

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

func (*MsgAddClaimResponse) Marshal

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

func (*MsgAddClaimResponse) MarshalTo

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

func (*MsgAddClaimResponse) MarshalToSizedBuffer

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

func (*MsgAddClaimResponse) ProtoMessage

func (*MsgAddClaimResponse) ProtoMessage()

func (*MsgAddClaimResponse) Reset

func (m *MsgAddClaimResponse) Reset()

func (*MsgAddClaimResponse) Size

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

func (*MsgAddClaimResponse) String

func (m *MsgAddClaimResponse) String() string

func (*MsgAddClaimResponse) Unmarshal

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

func (*MsgAddClaimResponse) XXX_DiscardUnknown

func (m *MsgAddClaimResponse) XXX_DiscardUnknown()

func (*MsgAddClaimResponse) XXX_Marshal

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

func (*MsgAddClaimResponse) XXX_Merge

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

func (*MsgAddClaimResponse) XXX_Size

func (m *MsgAddClaimResponse) XXX_Size() int

func (*MsgAddClaimResponse) XXX_Unmarshal

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

type MsgClaimArkeo

type MsgClaimArkeo struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
}

func NewMsgClaimArkeo

func NewMsgClaimArkeo(creator cosmos.AccAddress) *MsgClaimArkeo

func (*MsgClaimArkeo) Descriptor

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

func (*MsgClaimArkeo) GetCreator

func (m *MsgClaimArkeo) GetCreator() string

func (*MsgClaimArkeo) GetSignBytes

func (msg *MsgClaimArkeo) GetSignBytes() []byte

func (*MsgClaimArkeo) GetSigners

func (msg *MsgClaimArkeo) GetSigners() []sdk.AccAddress

func (*MsgClaimArkeo) Marshal

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

func (*MsgClaimArkeo) MarshalTo

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

func (*MsgClaimArkeo) MarshalToSizedBuffer

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

func (*MsgClaimArkeo) ProtoMessage

func (*MsgClaimArkeo) ProtoMessage()

func (*MsgClaimArkeo) Reset

func (m *MsgClaimArkeo) Reset()

func (*MsgClaimArkeo) Route

func (msg *MsgClaimArkeo) Route() string

func (*MsgClaimArkeo) Size

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

func (*MsgClaimArkeo) String

func (m *MsgClaimArkeo) String() string

func (*MsgClaimArkeo) Type

func (msg *MsgClaimArkeo) Type() string

func (*MsgClaimArkeo) Unmarshal

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

func (*MsgClaimArkeo) ValidateBasic

func (msg *MsgClaimArkeo) ValidateBasic() error

func (*MsgClaimArkeo) XXX_DiscardUnknown

func (m *MsgClaimArkeo) XXX_DiscardUnknown()

func (*MsgClaimArkeo) XXX_Marshal

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

func (*MsgClaimArkeo) XXX_Merge

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

func (*MsgClaimArkeo) XXX_Size

func (m *MsgClaimArkeo) XXX_Size() int

func (*MsgClaimArkeo) XXX_Unmarshal

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

type MsgClaimArkeoResponse

type MsgClaimArkeoResponse struct {
}

func (*MsgClaimArkeoResponse) Descriptor

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

func (*MsgClaimArkeoResponse) Marshal

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

func (*MsgClaimArkeoResponse) MarshalTo

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

func (*MsgClaimArkeoResponse) MarshalToSizedBuffer

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

func (*MsgClaimArkeoResponse) ProtoMessage

func (*MsgClaimArkeoResponse) ProtoMessage()

func (*MsgClaimArkeoResponse) Reset

func (m *MsgClaimArkeoResponse) Reset()

func (*MsgClaimArkeoResponse) Size

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

func (*MsgClaimArkeoResponse) String

func (m *MsgClaimArkeoResponse) String() string

func (*MsgClaimArkeoResponse) Unmarshal

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

func (*MsgClaimArkeoResponse) XXX_DiscardUnknown

func (m *MsgClaimArkeoResponse) XXX_DiscardUnknown()

func (*MsgClaimArkeoResponse) XXX_Marshal

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

func (*MsgClaimArkeoResponse) XXX_Merge

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

func (*MsgClaimArkeoResponse) XXX_Size

func (m *MsgClaimArkeoResponse) XXX_Size() int

func (*MsgClaimArkeoResponse) XXX_Unmarshal

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

type MsgClaimEth

type MsgClaimEth struct {
	Creator    string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	EthAddress string `protobuf:"bytes,2,opt,name=eth_address,json=ethAddress,proto3" json:"eth_address,omitempty"`
	Signature  string `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
}

func NewMsgClaimEth

func NewMsgClaimEth(creator cosmos.AccAddress, ethAdress, signature string) *MsgClaimEth

func (*MsgClaimEth) Descriptor

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

func (*MsgClaimEth) GetCreator

func (m *MsgClaimEth) GetCreator() string

func (*MsgClaimEth) GetEthAddress

func (m *MsgClaimEth) GetEthAddress() string

func (*MsgClaimEth) GetSignBytes

func (msg *MsgClaimEth) GetSignBytes() []byte

func (*MsgClaimEth) GetSignature

func (m *MsgClaimEth) GetSignature() string

func (*MsgClaimEth) GetSigners

func (msg *MsgClaimEth) GetSigners() []sdk.AccAddress

func (*MsgClaimEth) Marshal

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

func (*MsgClaimEth) MarshalTo

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

func (*MsgClaimEth) MarshalToSizedBuffer

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

func (*MsgClaimEth) ProtoMessage

func (*MsgClaimEth) ProtoMessage()

func (*MsgClaimEth) Reset

func (m *MsgClaimEth) Reset()

func (*MsgClaimEth) Route

func (msg *MsgClaimEth) Route() string

func (*MsgClaimEth) Size

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

func (*MsgClaimEth) String

func (m *MsgClaimEth) String() string

func (*MsgClaimEth) Type

func (msg *MsgClaimEth) Type() string

func (*MsgClaimEth) Unmarshal

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

func (*MsgClaimEth) ValidateBasic

func (msg *MsgClaimEth) ValidateBasic() error

func (*MsgClaimEth) XXX_DiscardUnknown

func (m *MsgClaimEth) XXX_DiscardUnknown()

func (*MsgClaimEth) XXX_Marshal

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

func (*MsgClaimEth) XXX_Merge

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

func (*MsgClaimEth) XXX_Size

func (m *MsgClaimEth) XXX_Size() int

func (*MsgClaimEth) XXX_Unmarshal

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

type MsgClaimEthResponse

type MsgClaimEthResponse struct {
}

func (*MsgClaimEthResponse) Descriptor

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

func (*MsgClaimEthResponse) Marshal

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

func (*MsgClaimEthResponse) MarshalTo

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

func (*MsgClaimEthResponse) MarshalToSizedBuffer

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

func (*MsgClaimEthResponse) ProtoMessage

func (*MsgClaimEthResponse) ProtoMessage()

func (*MsgClaimEthResponse) Reset

func (m *MsgClaimEthResponse) Reset()

func (*MsgClaimEthResponse) Size

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

func (*MsgClaimEthResponse) String

func (m *MsgClaimEthResponse) String() string

func (*MsgClaimEthResponse) Unmarshal

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

func (*MsgClaimEthResponse) XXX_DiscardUnknown

func (m *MsgClaimEthResponse) XXX_DiscardUnknown()

func (*MsgClaimEthResponse) XXX_Marshal

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

func (*MsgClaimEthResponse) XXX_Merge

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

func (*MsgClaimEthResponse) XXX_Size

func (m *MsgClaimEthResponse) XXX_Size() int

func (*MsgClaimEthResponse) XXX_Unmarshal

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

type MsgClaimThorchain

type MsgClaimThorchain struct {
	Creator     string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	FromAddress string `protobuf:"bytes,2,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	ToAddress   string `protobuf:"bytes,3,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
}

func NewMsgClaimThorchain

func NewMsgClaimThorchain(creator cosmos.AccAddress, fromAddress string, toAddress string) *MsgClaimThorchain

func (*MsgClaimThorchain) Descriptor

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

func (*MsgClaimThorchain) GetCreator

func (m *MsgClaimThorchain) GetCreator() string

func (*MsgClaimThorchain) GetFromAddress

func (m *MsgClaimThorchain) GetFromAddress() string

func (*MsgClaimThorchain) GetSignBytes

func (msg *MsgClaimThorchain) GetSignBytes() []byte

func (*MsgClaimThorchain) GetSigners

func (msg *MsgClaimThorchain) GetSigners() []sdk.AccAddress

func (*MsgClaimThorchain) GetToAddress

func (m *MsgClaimThorchain) GetToAddress() string

func (*MsgClaimThorchain) Marshal

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

func (*MsgClaimThorchain) MarshalTo

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

func (*MsgClaimThorchain) MarshalToSizedBuffer

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

func (*MsgClaimThorchain) ProtoMessage

func (*MsgClaimThorchain) ProtoMessage()

func (*MsgClaimThorchain) Reset

func (m *MsgClaimThorchain) Reset()

func (*MsgClaimThorchain) Route

func (msg *MsgClaimThorchain) Route() string

func (*MsgClaimThorchain) Size

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

func (*MsgClaimThorchain) String

func (m *MsgClaimThorchain) String() string

func (*MsgClaimThorchain) Type

func (msg *MsgClaimThorchain) Type() string

func (*MsgClaimThorchain) Unmarshal

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

func (*MsgClaimThorchain) ValidateBasic

func (msg *MsgClaimThorchain) ValidateBasic() error

func (*MsgClaimThorchain) XXX_DiscardUnknown

func (m *MsgClaimThorchain) XXX_DiscardUnknown()

func (*MsgClaimThorchain) XXX_Marshal

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

func (*MsgClaimThorchain) XXX_Merge

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

func (*MsgClaimThorchain) XXX_Size

func (m *MsgClaimThorchain) XXX_Size() int

func (*MsgClaimThorchain) XXX_Unmarshal

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

type MsgClaimThorchainResponse

type MsgClaimThorchainResponse struct {
}

func (*MsgClaimThorchainResponse) Descriptor

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

func (*MsgClaimThorchainResponse) Marshal

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

func (*MsgClaimThorchainResponse) MarshalTo

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

func (*MsgClaimThorchainResponse) MarshalToSizedBuffer

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

func (*MsgClaimThorchainResponse) ProtoMessage

func (*MsgClaimThorchainResponse) ProtoMessage()

func (*MsgClaimThorchainResponse) Reset

func (m *MsgClaimThorchainResponse) Reset()

func (*MsgClaimThorchainResponse) Size

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

func (*MsgClaimThorchainResponse) String

func (m *MsgClaimThorchainResponse) String() string

func (*MsgClaimThorchainResponse) Unmarshal

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

func (*MsgClaimThorchainResponse) XXX_DiscardUnknown

func (m *MsgClaimThorchainResponse) XXX_DiscardUnknown()

func (*MsgClaimThorchainResponse) XXX_Marshal

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

func (*MsgClaimThorchainResponse) XXX_Merge

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

func (*MsgClaimThorchainResponse) XXX_Size

func (m *MsgClaimThorchainResponse) XXX_Size() int

func (*MsgClaimThorchainResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	ClaimEth(ctx context.Context, in *MsgClaimEth, opts ...grpc.CallOption) (*MsgClaimEthResponse, error)
	ClaimArkeo(ctx context.Context, in *MsgClaimArkeo, opts ...grpc.CallOption) (*MsgClaimArkeoResponse, error)
	TransferClaim(ctx context.Context, in *MsgTransferClaim, opts ...grpc.CallOption) (*MsgTransferClaimResponse, error)
	AddClaim(ctx context.Context, in *MsgAddClaim, opts ...grpc.CallOption) (*MsgAddClaimResponse, error)
	ClaimThorchain(ctx context.Context, in *MsgClaimThorchain, opts ...grpc.CallOption) (*MsgClaimThorchainResponse, 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 MsgServer

MsgServer is the server API for Msg service.

type MsgTransferClaim

type MsgTransferClaim struct {
	Creator   string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	ToAddress string `protobuf:"bytes,2,opt,name=toAddress,proto3" json:"toAddress,omitempty"`
}

func NewMsgTransferClaim

func NewMsgTransferClaim(creator, toAddress cosmos.AccAddress) *MsgTransferClaim

func (*MsgTransferClaim) Descriptor

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

func (*MsgTransferClaim) GetCreator

func (m *MsgTransferClaim) GetCreator() string

func (*MsgTransferClaim) GetSignBytes

func (msg *MsgTransferClaim) GetSignBytes() []byte

func (*MsgTransferClaim) GetSigners

func (msg *MsgTransferClaim) GetSigners() []sdk.AccAddress

func (*MsgTransferClaim) GetToAddress

func (m *MsgTransferClaim) GetToAddress() string

func (*MsgTransferClaim) Marshal

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

func (*MsgTransferClaim) MarshalTo

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

func (*MsgTransferClaim) MarshalToSizedBuffer

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

func (*MsgTransferClaim) ProtoMessage

func (*MsgTransferClaim) ProtoMessage()

func (*MsgTransferClaim) Reset

func (m *MsgTransferClaim) Reset()

func (*MsgTransferClaim) Route

func (msg *MsgTransferClaim) Route() string

func (*MsgTransferClaim) Size

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

func (*MsgTransferClaim) String

func (m *MsgTransferClaim) String() string

func (*MsgTransferClaim) Type

func (msg *MsgTransferClaim) Type() string

func (*MsgTransferClaim) Unmarshal

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

func (*MsgTransferClaim) ValidateBasic

func (msg *MsgTransferClaim) ValidateBasic() error

func (*MsgTransferClaim) XXX_DiscardUnknown

func (m *MsgTransferClaim) XXX_DiscardUnknown()

func (*MsgTransferClaim) XXX_Marshal

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

func (*MsgTransferClaim) XXX_Merge

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

func (*MsgTransferClaim) XXX_Size

func (m *MsgTransferClaim) XXX_Size() int

func (*MsgTransferClaim) XXX_Unmarshal

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

type MsgTransferClaimResponse

type MsgTransferClaimResponse struct {
}

func (*MsgTransferClaimResponse) Descriptor

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

func (*MsgTransferClaimResponse) Marshal

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

func (*MsgTransferClaimResponse) MarshalTo

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

func (*MsgTransferClaimResponse) MarshalToSizedBuffer

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

func (*MsgTransferClaimResponse) ProtoMessage

func (*MsgTransferClaimResponse) ProtoMessage()

func (*MsgTransferClaimResponse) Reset

func (m *MsgTransferClaimResponse) Reset()

func (*MsgTransferClaimResponse) Size

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

func (*MsgTransferClaimResponse) String

func (m *MsgTransferClaimResponse) String() string

func (*MsgTransferClaimResponse) Unmarshal

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

func (*MsgTransferClaimResponse) XXX_DiscardUnknown

func (m *MsgTransferClaimResponse) XXX_DiscardUnknown()

func (*MsgTransferClaimResponse) XXX_Marshal

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

func (*MsgTransferClaimResponse) XXX_Merge

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

func (*MsgTransferClaimResponse) XXX_Size

func (m *MsgTransferClaimResponse) XXX_Size() int

func (*MsgTransferClaimResponse) XXX_Unmarshal

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

type Params

type Params struct {
	AirdropStartTime   time.Time     `` /* 135-byte string literal not displayed */
	DurationUntilDecay time.Duration `` /* 157-byte string literal not displayed */
	DurationOfDecay    time.Duration `` /* 145-byte string literal not displayed */
	// denom of claimable asset
	ClaimDenom string `protobuf:"bytes,4,opt,name=claim_denom,json=claimDenom,proto3" json:"claim_denom,omitempty"`
	// uarkeo to distribute to arkeo account for gas to make claiming easier
	InitialGasAmount *types.Coin `` /* 137-byte string literal not displayed */
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(claimDenom string, airdropStartTime time.Time, durationUntilDecay, durationOfDecay time.Duration) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetAirdropStartTime

func (m *Params) GetAirdropStartTime() time.Time

func (*Params) GetClaimDenom

func (m *Params) GetClaimDenom() string

func (*Params) GetDurationOfDecay

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

func (*Params) GetDurationUntilDecay

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

func (*Params) GetInitialGasAmount

func (m *Params) GetInitialGasAmount() *types.Coin

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

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

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

func (p Params) Validate() error

Validate validates the set of params

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 QueryClaimRecordRequest

type QueryClaimRecordRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Chain   Chain  `protobuf:"varint,2,opt,name=chain,proto3,enum=arkeo.claim.Chain" json:"chain,omitempty"`
}

func (*QueryClaimRecordRequest) Descriptor

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

func (*QueryClaimRecordRequest) GetAddress

func (m *QueryClaimRecordRequest) GetAddress() string

func (*QueryClaimRecordRequest) GetChain

func (m *QueryClaimRecordRequest) GetChain() Chain

func (*QueryClaimRecordRequest) Marshal

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

func (*QueryClaimRecordRequest) MarshalTo

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

func (*QueryClaimRecordRequest) MarshalToSizedBuffer

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

func (*QueryClaimRecordRequest) ProtoMessage

func (*QueryClaimRecordRequest) ProtoMessage()

func (*QueryClaimRecordRequest) Reset

func (m *QueryClaimRecordRequest) Reset()

func (*QueryClaimRecordRequest) Size

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

func (*QueryClaimRecordRequest) String

func (m *QueryClaimRecordRequest) String() string

func (*QueryClaimRecordRequest) Unmarshal

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

func (*QueryClaimRecordRequest) XXX_DiscardUnknown

func (m *QueryClaimRecordRequest) XXX_DiscardUnknown()

func (*QueryClaimRecordRequest) XXX_Marshal

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

func (*QueryClaimRecordRequest) XXX_Merge

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

func (*QueryClaimRecordRequest) XXX_Size

func (m *QueryClaimRecordRequest) XXX_Size() int

func (*QueryClaimRecordRequest) XXX_Unmarshal

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

type QueryClaimRecordResponse

type QueryClaimRecordResponse struct {
	ClaimRecord *ClaimRecord `protobuf:"bytes,1,opt,name=claim_record,json=claimRecord,proto3" json:"claim_record,omitempty"`
}

func (*QueryClaimRecordResponse) Descriptor

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

func (*QueryClaimRecordResponse) GetClaimRecord

func (m *QueryClaimRecordResponse) GetClaimRecord() *ClaimRecord

func (*QueryClaimRecordResponse) Marshal

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

func (*QueryClaimRecordResponse) MarshalTo

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

func (*QueryClaimRecordResponse) MarshalToSizedBuffer

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

func (*QueryClaimRecordResponse) ProtoMessage

func (*QueryClaimRecordResponse) ProtoMessage()

func (*QueryClaimRecordResponse) Reset

func (m *QueryClaimRecordResponse) Reset()

func (*QueryClaimRecordResponse) Size

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

func (*QueryClaimRecordResponse) String

func (m *QueryClaimRecordResponse) String() string

func (*QueryClaimRecordResponse) Unmarshal

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

func (*QueryClaimRecordResponse) XXX_DiscardUnknown

func (m *QueryClaimRecordResponse) XXX_DiscardUnknown()

func (*QueryClaimRecordResponse) XXX_Marshal

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

func (*QueryClaimRecordResponse) XXX_Merge

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

func (*QueryClaimRecordResponse) XXX_Size

func (m *QueryClaimRecordResponse) XXX_Size() int

func (*QueryClaimRecordResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of ClaimRecord items.
	ClaimRecord(ctx context.Context, in *QueryClaimRecordRequest, opts ...grpc.CallOption) (*QueryClaimRecordResponse, 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 QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params 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 QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params 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 {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of ClaimRecord items.
	ClaimRecord(context.Context, *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddClaim

func (*UnimplementedMsgServer) ClaimArkeo

func (*UnimplementedMsgServer) ClaimEth

func (*UnimplementedMsgServer) ClaimThorchain

func (*UnimplementedMsgServer) TransferClaim

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ClaimRecord

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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