Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetDepositsMintedKey(depositorAddress sdk.AccAddress) []byte
- func GetDepositsPendingMintKey(depositorAddress sdk.AccAddress) []byte
- func GetDepositsPendingWithdrawalKey(depositorAddress sdk.AccAddress) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateGenesis(data GenesisState) error
- type Deposit
- func (*Deposit) Descriptor() ([]byte, []int)
- func (m *Deposit) GetAmount() types.Coin
- func (m *Deposit) GetCreatedAt() time.Time
- func (m *Deposit) GetDepositorAddress() string
- func (m *Deposit) Marshal() (dAtA []byte, err error)
- func (m *Deposit) MarshalTo(dAtA []byte) (int, error)
- func (m *Deposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Deposit) ProtoMessage()
- func (m *Deposit) Reset()
- func (m *Deposit) Size() (n int)
- func (m *Deposit) String() string
- func (m *Deposit) Unmarshal(dAtA []byte) error
- func (m *Deposit) XXX_DiscardUnknown()
- func (m *Deposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Deposit) XXX_Merge(src proto.Message)
- func (m *Deposit) XXX_Size() int
- func (m *Deposit) XXX_Unmarshal(b []byte) error
- type DepositsQueryType
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDepositsMinted() []*Deposit
- func (m *GenesisState) GetDepositsPendingMint() []*Deposit
- func (m *GenesisState) GetDepositsPendingWithdrawal() []*Deposit
- func (m *GenesisState) GetModuleAccountBalance() []types.Coin
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDeposit
- func (*MsgDeposit) Descriptor() ([]byte, []int)
- func (m *MsgDeposit) GetAmount() types.Coin
- func (m *MsgDeposit) GetDepositorAddress() string
- func (msg *MsgDeposit) GetSignBytes() []byte
- func (msg *MsgDeposit) GetSigners() []sdk.AccAddress
- func (m *MsgDeposit) Marshal() (dAtA []byte, err error)
- func (m *MsgDeposit) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeposit) ProtoMessage()
- func (m *MsgDeposit) Reset()
- func (msg MsgDeposit) Route() string
- func (m *MsgDeposit) Size() (n int)
- func (m *MsgDeposit) String() string
- func (msg MsgDeposit) Type() string
- func (m *MsgDeposit) Unmarshal(dAtA []byte) error
- func (msg *MsgDeposit) ValidateBasic() error
- func (m *MsgDeposit) XXX_DiscardUnknown()
- func (m *MsgDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeposit) XXX_Merge(src proto.Message)
- func (m *MsgDeposit) XXX_Size() int
- func (m *MsgDeposit) XXX_Unmarshal(b []byte) error
- type MsgDepositResponse
- func (*MsgDepositResponse) Descriptor() ([]byte, []int)
- func (m *MsgDepositResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDepositResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDepositResponse) ProtoMessage()
- func (m *MsgDepositResponse) Reset()
- func (m *MsgDepositResponse) Size() (n int)
- func (m *MsgDepositResponse) String() string
- func (m *MsgDepositResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDepositResponse) XXX_DiscardUnknown()
- func (m *MsgDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDepositResponse) XXX_Merge(src proto.Message)
- func (m *MsgDepositResponse) XXX_Size() int
- func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetDepositDenom() string
- func (m *Params) GetMinDepositAmount() uint32
- 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 (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- 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 (p *Params) Validate() 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 QueryClient
- type QueryFetchDepositsRequest
- func (*QueryFetchDepositsRequest) Descriptor() ([]byte, []int)
- func (m *QueryFetchDepositsRequest) GetPagination() *query.PageRequest
- func (m *QueryFetchDepositsRequest) GetType() DepositsQueryType
- func (m *QueryFetchDepositsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFetchDepositsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFetchDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFetchDepositsRequest) ProtoMessage()
- func (m *QueryFetchDepositsRequest) Reset()
- func (m *QueryFetchDepositsRequest) Size() (n int)
- func (m *QueryFetchDepositsRequest) String() string
- func (m *QueryFetchDepositsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFetchDepositsRequest) XXX_DiscardUnknown()
- func (m *QueryFetchDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFetchDepositsRequest) XXX_Merge(src proto.Message)
- func (m *QueryFetchDepositsRequest) XXX_Size() int
- func (m *QueryFetchDepositsRequest) XXX_Unmarshal(b []byte) error
- type QueryFetchDepositsResponse
- func (*QueryFetchDepositsResponse) Descriptor() ([]byte, []int)
- func (m *QueryFetchDepositsResponse) GetDeposits() []Deposit
- func (m *QueryFetchDepositsResponse) GetPagination() *query.PageResponse
- func (m *QueryFetchDepositsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFetchDepositsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFetchDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFetchDepositsResponse) ProtoMessage()
- func (m *QueryFetchDepositsResponse) Reset()
- func (m *QueryFetchDepositsResponse) Size() (n int)
- func (m *QueryFetchDepositsResponse) String() string
- func (m *QueryFetchDepositsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFetchDepositsResponse) XXX_DiscardUnknown()
- func (m *QueryFetchDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFetchDepositsResponse) XXX_Merge(src proto.Message)
- func (m *QueryFetchDepositsResponse) XXX_Size() int
- func (m *QueryFetchDepositsResponse) XXX_Unmarshal(b []byte) error
- type QueryGetDepositsForAddressRequest
- func (*QueryGetDepositsForAddressRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetDepositsForAddressRequest) GetAddress() string
- func (m *QueryGetDepositsForAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetDepositsForAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetDepositsForAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetDepositsForAddressRequest) ProtoMessage()
- func (m *QueryGetDepositsForAddressRequest) Reset()
- func (m *QueryGetDepositsForAddressRequest) Size() (n int)
- func (m *QueryGetDepositsForAddressRequest) String() string
- func (m *QueryGetDepositsForAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetDepositsForAddressRequest) XXX_DiscardUnknown()
- func (m *QueryGetDepositsForAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetDepositsForAddressRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetDepositsForAddressRequest) XXX_Size() int
- func (m *QueryGetDepositsForAddressRequest) XXX_Unmarshal(b []byte) error
- type QueryGetDepositsForAddressResponse
- func (*QueryGetDepositsForAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetDepositsForAddressResponse) GetDepositsMinted() *Deposit
- func (m *QueryGetDepositsForAddressResponse) GetDepositsPendingMint() *Deposit
- func (m *QueryGetDepositsForAddressResponse) GetDepositsPendingWithdrawal() *Deposit
- func (m *QueryGetDepositsForAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetDepositsForAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetDepositsForAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetDepositsForAddressResponse) ProtoMessage()
- func (m *QueryGetDepositsForAddressResponse) Reset()
- func (m *QueryGetDepositsForAddressResponse) Size() (n int)
- func (m *QueryGetDepositsForAddressResponse) String() string
- func (m *QueryGetDepositsForAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetDepositsForAddressResponse) XXX_DiscardUnknown()
- func (m *QueryGetDepositsForAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetDepositsForAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetDepositsForAddressResponse) XXX_Size() int
- func (m *QueryGetDepositsForAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryModuleAccountBalanceRequest
- func (*QueryModuleAccountBalanceRequest) Descriptor() ([]byte, []int)
- func (m *QueryModuleAccountBalanceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryModuleAccountBalanceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryModuleAccountBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryModuleAccountBalanceRequest) ProtoMessage()
- func (m *QueryModuleAccountBalanceRequest) Reset()
- func (m *QueryModuleAccountBalanceRequest) Size() (n int)
- func (m *QueryModuleAccountBalanceRequest) String() string
- func (m *QueryModuleAccountBalanceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryModuleAccountBalanceRequest) XXX_DiscardUnknown()
- func (m *QueryModuleAccountBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryModuleAccountBalanceRequest) XXX_Merge(src proto.Message)
- func (m *QueryModuleAccountBalanceRequest) XXX_Size() int
- func (m *QueryModuleAccountBalanceRequest) XXX_Unmarshal(b []byte) error
- type QueryModuleAccountBalanceResponse
- func (*QueryModuleAccountBalanceResponse) Descriptor() ([]byte, []int)
- func (m *QueryModuleAccountBalanceResponse) GetModuleAccountBalance() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryModuleAccountBalanceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryModuleAccountBalanceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryModuleAccountBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryModuleAccountBalanceResponse) ProtoMessage()
- func (m *QueryModuleAccountBalanceResponse) Reset()
- func (m *QueryModuleAccountBalanceResponse) Size() (n int)
- func (m *QueryModuleAccountBalanceResponse) String() string
- func (m *QueryModuleAccountBalanceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryModuleAccountBalanceResponse) XXX_DiscardUnknown()
- func (m *QueryModuleAccountBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryModuleAccountBalanceResponse) XXX_Merge(src proto.Message)
- func (m *QueryModuleAccountBalanceResponse) XXX_Size() int
- func (m *QueryModuleAccountBalanceResponse) 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 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 UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) FetchDeposits(ctx context.Context, req *QueryFetchDepositsRequest) (*QueryFetchDepositsResponse, error)
- func (*UnimplementedQueryServer) GetDepositsForAddress(ctx context.Context, req *QueryGetDepositsForAddressRequest) (*QueryGetDepositsForAddressResponse, error)
- func (*UnimplementedQueryServer) ModuleAccountBalance(ctx context.Context, req *QueryModuleAccountBalanceRequest) (*QueryModuleAccountBalanceResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- type WithdrawAndMintProposal
- func (*WithdrawAndMintProposal) Descriptor() ([]byte, []int)
- func (this *WithdrawAndMintProposal) Equal(that interface{}) bool
- func (prop *WithdrawAndMintProposal) GetDescription() string
- func (prop *WithdrawAndMintProposal) GetMicroMintRate() int64
- func (prop *WithdrawAndMintProposal) GetTitle() string
- func (prop *WithdrawAndMintProposal) GetWithdrawalAddress() string
- func (m *WithdrawAndMintProposal) Marshal() (dAtA []byte, err error)
- func (m *WithdrawAndMintProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *WithdrawAndMintProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (prop *WithdrawAndMintProposal) ProposalRoute() string
- func (prop *WithdrawAndMintProposal) ProposalType() string
- func (*WithdrawAndMintProposal) ProtoMessage()
- func (m *WithdrawAndMintProposal) Reset()
- func (m *WithdrawAndMintProposal) Size() (n int)
- func (prop *WithdrawAndMintProposal) String() string
- func (m *WithdrawAndMintProposal) Unmarshal(dAtA []byte) error
- func (prop *WithdrawAndMintProposal) ValidateBasic() error
- func (m *WithdrawAndMintProposal) XXX_DiscardUnknown()
- func (m *WithdrawAndMintProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WithdrawAndMintProposal) XXX_Merge(src proto.Message)
- func (m *WithdrawAndMintProposal) XXX_Size() int
- func (m *WithdrawAndMintProposal) XXX_Unmarshal(b []byte) error
Constants ¶
const ( EventTypeDeposit = "deposit" EventTypeWithdraw = "withdraw" EventTypeMint = "mint" AttributeKeyDepositor = "depositor" AttributeKeyAmount = "amount" AttributeKeyMinted = "minted" AttributeKeyMicroMintRate = "micro_mint_rate" AttributeKeyMintBlock = "mint_block" )
const ( // ModuleName defines the module name ModuleName = "dfract" // ModuleVersion defines the current module version ModuleVersion = 1 // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_capability" // MintDenom defines the denom of the minted token MintDenom = "udfr" )
const (
ProposalTypeWithdrawAndMint = "WithdrawAndMint"
)
const (
TypeMsgDeposit = "Deposit"
)
Variables ¶
var ( ErrInvalidLengthDeposit = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDeposit = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDeposit = fmt.Errorf("proto: unexpected end of group") )
var ( ErrEmptyWithdrawalAddress = sdkerrors.Register(ModuleName, 1201, "Empty withdrawal address") ErrEmptyDepositAmount = sdkerrors.Register(ModuleName, 1202, "Empty deposit amount") ErrInsufficientDepositAmount = sdkerrors.Register(ModuleName, 1203, "Insufficient deposit amount") ErrEmptyMicroMintRate = sdkerrors.Register(ModuleName, 1204, "Empty micro mint rate") ErrInvalidMinDepositAmount = sdkerrors.Register(ModuleName, 1205, "Min deposit amount should be greater than 0") ErrInvalidMintDenom = sdkerrors.Register(ModuleName, 1206, "Invalid mint denom") ErrInvalidDepositDenom = sdkerrors.Register(ModuleName, 1207, "Invalid deposit denom") ErrIllegalMintDenom = sdkerrors.Register(ModuleName, 1208, "Mint denom cannot be the bond denom") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( DepositsPendingWithdrawalPrefix = []byte{0x01} DepositsPendingMintPrefix = []byte{0x02} DepositsMintedPrefix = []byte{0x03} )
var ( KeyDepositDenom = []byte("DepositDenom") KeyMinDepositAmount = []byte("MinDepositAmount") )
Parameter store keys.
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthProposal = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProposal = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProposal = 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 DepositsQueryType_name = map[int32]string{
0: "PENDING_WITHDRAWAL",
1: "PENDING_MINT",
2: "MINTED",
}
var DepositsQueryType_value = map[string]int32{
"PENDING_WITHDRAWAL": 0,
"PENDING_MINT": 1,
"MINTED": 2,
}
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func GetDepositsMintedKey ¶
func GetDepositsMintedKey(depositorAddress sdk.AccAddress) []byte
func GetDepositsPendingMintKey ¶
func GetDepositsPendingMintKey(depositorAddress sdk.AccAddress) []byte
func GetDepositsPendingWithdrawalKey ¶
func GetDepositsPendingWithdrawalKey(depositorAddress sdk.AccAddress) []byte
func ParamKeyTable ¶ added in v1.2.2
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable for dfract module.
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces Register the implementations for the given codecs
func RegisterLegacyAminoCodec ¶ added in v1.2.2
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec Register the codec for the message passing
func RegisterMsgServer ¶ added in v1.2.2
func RegisterQueryHandler ¶
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)
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
Types ¶
type Deposit ¶
type Deposit struct { DepositorAddress string `protobuf:"bytes,1,opt,name=depositor_address,json=depositorAddress,proto3" json:"depositor_address,omitempty"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` CreatedAt time.Time `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"` }
func (*Deposit) Descriptor ¶
func (*Deposit) GetCreatedAt ¶
func (*Deposit) GetDepositorAddress ¶
func (*Deposit) MarshalToSizedBuffer ¶
func (*Deposit) ProtoMessage ¶
func (*Deposit) ProtoMessage()
func (*Deposit) XXX_DiscardUnknown ¶
func (m *Deposit) XXX_DiscardUnknown()
func (*Deposit) XXX_Marshal ¶
func (*Deposit) XXX_Unmarshal ¶
type DepositsQueryType ¶
type DepositsQueryType int32
const ( DepositsQueryType_TypePendingWithdrawal DepositsQueryType = 0 DepositsQueryType_TypePendingMint DepositsQueryType = 1 DepositsQueryType_TypeMinted DepositsQueryType = 2 )
func (DepositsQueryType) EnumDescriptor ¶
func (DepositsQueryType) EnumDescriptor() ([]byte, []int)
func (DepositsQueryType) String ¶
func (x DepositsQueryType) String() string
type GenesisState ¶
type GenesisState struct { ModuleAccountBalance []types.Coin `` /* 143-byte string literal not displayed */ Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params" yaml:"params"` DepositsPendingWithdrawal []*Deposit `` /* 138-byte string literal not displayed */ DepositsPendingMint []*Deposit `protobuf:"bytes,4,rep,name=deposits_pending_mint,json=depositsPendingMint,proto3" json:"deposits_pending_mint,omitempty"` DepositsMinted []*Deposit `protobuf:"bytes,5,rep,name=deposits_minted,json=depositsMinted,proto3" json:"deposits_minted,omitempty"` }
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState(params Params) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDepositsMinted ¶
func (m *GenesisState) GetDepositsMinted() []*Deposit
func (*GenesisState) GetDepositsPendingMint ¶
func (m *GenesisState) GetDepositsPendingMint() []*Deposit
func (*GenesisState) GetDepositsPendingWithdrawal ¶
func (m *GenesisState) GetDepositsPendingWithdrawal() []*Deposit
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) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶ added in v1.2.2
type MsgClient interface {
Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, 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 ¶ added in v1.2.2
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgDeposit ¶
type MsgDeposit struct { DepositorAddress string `protobuf:"bytes,1,opt,name=depositor_address,json=depositorAddress,proto3" json:"depositor_address,omitempty"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` }
func NewMsgDeposit ¶
func NewMsgDeposit(depositor string, amount sdk.Coin) *MsgDeposit
func (*MsgDeposit) Descriptor ¶
func (*MsgDeposit) Descriptor() ([]byte, []int)
func (*MsgDeposit) GetAmount ¶
func (m *MsgDeposit) GetAmount() types.Coin
func (*MsgDeposit) GetDepositorAddress ¶
func (m *MsgDeposit) GetDepositorAddress() string
func (*MsgDeposit) GetSignBytes ¶
func (msg *MsgDeposit) GetSignBytes() []byte
func (*MsgDeposit) GetSigners ¶
func (msg *MsgDeposit) GetSigners() []sdk.AccAddress
func (*MsgDeposit) Marshal ¶
func (m *MsgDeposit) Marshal() (dAtA []byte, err error)
func (*MsgDeposit) MarshalToSizedBuffer ¶
func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeposit) ProtoMessage ¶
func (*MsgDeposit) ProtoMessage()
func (*MsgDeposit) Reset ¶
func (m *MsgDeposit) Reset()
func (MsgDeposit) Route ¶
func (msg MsgDeposit) Route() string
func (*MsgDeposit) Size ¶
func (m *MsgDeposit) Size() (n int)
func (*MsgDeposit) String ¶
func (m *MsgDeposit) String() string
func (MsgDeposit) Type ¶
func (msg MsgDeposit) Type() string
func (*MsgDeposit) Unmarshal ¶
func (m *MsgDeposit) Unmarshal(dAtA []byte) error
func (*MsgDeposit) ValidateBasic ¶
func (msg *MsgDeposit) ValidateBasic() error
func (*MsgDeposit) XXX_DiscardUnknown ¶
func (m *MsgDeposit) XXX_DiscardUnknown()
func (*MsgDeposit) XXX_Marshal ¶
func (m *MsgDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeposit) XXX_Merge ¶
func (m *MsgDeposit) XXX_Merge(src proto.Message)
func (*MsgDeposit) XXX_Size ¶
func (m *MsgDeposit) XXX_Size() int
func (*MsgDeposit) XXX_Unmarshal ¶
func (m *MsgDeposit) XXX_Unmarshal(b []byte) error
type MsgDepositResponse ¶ added in v1.2.2
type MsgDepositResponse struct { }
func (*MsgDepositResponse) Descriptor ¶ added in v1.2.2
func (*MsgDepositResponse) Descriptor() ([]byte, []int)
func (*MsgDepositResponse) Marshal ¶ added in v1.2.2
func (m *MsgDepositResponse) Marshal() (dAtA []byte, err error)
func (*MsgDepositResponse) MarshalTo ¶ added in v1.2.2
func (m *MsgDepositResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDepositResponse) MarshalToSizedBuffer ¶ added in v1.2.2
func (m *MsgDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDepositResponse) ProtoMessage ¶ added in v1.2.2
func (*MsgDepositResponse) ProtoMessage()
func (*MsgDepositResponse) Reset ¶ added in v1.2.2
func (m *MsgDepositResponse) Reset()
func (*MsgDepositResponse) Size ¶ added in v1.2.2
func (m *MsgDepositResponse) Size() (n int)
func (*MsgDepositResponse) String ¶ added in v1.2.2
func (m *MsgDepositResponse) String() string
func (*MsgDepositResponse) Unmarshal ¶ added in v1.2.2
func (m *MsgDepositResponse) Unmarshal(dAtA []byte) error
func (*MsgDepositResponse) XXX_DiscardUnknown ¶ added in v1.2.2
func (m *MsgDepositResponse) XXX_DiscardUnknown()
func (*MsgDepositResponse) XXX_Marshal ¶ added in v1.2.2
func (m *MsgDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDepositResponse) XXX_Merge ¶ added in v1.2.2
func (m *MsgDepositResponse) XXX_Merge(src proto.Message)
func (*MsgDepositResponse) XXX_Size ¶ added in v1.2.2
func (m *MsgDepositResponse) XXX_Size() int
func (*MsgDepositResponse) XXX_Unmarshal ¶ added in v1.2.2
func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶ added in v1.2.2
type MsgServer interface {
Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error)
}
MsgServer is the server API for Msg service.
type Params ¶
type Params struct { DepositDenom string `protobuf:"bytes,1,opt,name=deposit_denom,json=depositDenom,proto3" json:"deposit_denom,omitempty"` MinDepositAmount uint32 `protobuf:"varint,2,opt,name=min_deposit_amount,json=minDepositAmount,proto3" json:"min_deposit_amount,omitempty"` }
func DefaultParams ¶
func DefaultParams() Params
DefaultParams return the default dfract module params
func (*Params) Descriptor ¶
func (*Params) GetDepositDenom ¶
func (*Params) GetMinDepositAmount ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶ added in v1.2.2
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { ModuleAccountBalance(ctx context.Context, in *QueryModuleAccountBalanceRequest, opts ...grpc.CallOption) (*QueryModuleAccountBalanceResponse, error) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) GetDepositsForAddress(ctx context.Context, in *QueryGetDepositsForAddressRequest, opts ...grpc.CallOption) (*QueryGetDepositsForAddressResponse, error) FetchDeposits(ctx context.Context, in *QueryFetchDepositsRequest, opts ...grpc.CallOption) (*QueryFetchDepositsResponse, 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 QueryFetchDepositsRequest ¶
type QueryFetchDepositsRequest struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Type DepositsQueryType `protobuf:"varint,2,opt,name=type,proto3,enum=lum.network.dfract.DepositsQueryType" json:"type,omitempty"` }
func (*QueryFetchDepositsRequest) Descriptor ¶
func (*QueryFetchDepositsRequest) Descriptor() ([]byte, []int)
func (*QueryFetchDepositsRequest) GetPagination ¶
func (m *QueryFetchDepositsRequest) GetPagination() *query.PageRequest
func (*QueryFetchDepositsRequest) GetType ¶
func (m *QueryFetchDepositsRequest) GetType() DepositsQueryType
func (*QueryFetchDepositsRequest) Marshal ¶
func (m *QueryFetchDepositsRequest) Marshal() (dAtA []byte, err error)
func (*QueryFetchDepositsRequest) MarshalTo ¶
func (m *QueryFetchDepositsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryFetchDepositsRequest) MarshalToSizedBuffer ¶
func (m *QueryFetchDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFetchDepositsRequest) ProtoMessage ¶
func (*QueryFetchDepositsRequest) ProtoMessage()
func (*QueryFetchDepositsRequest) Reset ¶
func (m *QueryFetchDepositsRequest) Reset()
func (*QueryFetchDepositsRequest) Size ¶
func (m *QueryFetchDepositsRequest) Size() (n int)
func (*QueryFetchDepositsRequest) String ¶
func (m *QueryFetchDepositsRequest) String() string
func (*QueryFetchDepositsRequest) Unmarshal ¶
func (m *QueryFetchDepositsRequest) Unmarshal(dAtA []byte) error
func (*QueryFetchDepositsRequest) XXX_DiscardUnknown ¶
func (m *QueryFetchDepositsRequest) XXX_DiscardUnknown()
func (*QueryFetchDepositsRequest) XXX_Marshal ¶
func (m *QueryFetchDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFetchDepositsRequest) XXX_Merge ¶
func (m *QueryFetchDepositsRequest) XXX_Merge(src proto.Message)
func (*QueryFetchDepositsRequest) XXX_Size ¶
func (m *QueryFetchDepositsRequest) XXX_Size() int
func (*QueryFetchDepositsRequest) XXX_Unmarshal ¶
func (m *QueryFetchDepositsRequest) XXX_Unmarshal(b []byte) error
type QueryFetchDepositsResponse ¶
type QueryFetchDepositsResponse struct { Deposits []Deposit `protobuf:"bytes,1,rep,name=deposits,proto3" json:"deposits"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryFetchDepositsResponse) Descriptor ¶
func (*QueryFetchDepositsResponse) Descriptor() ([]byte, []int)
func (*QueryFetchDepositsResponse) GetDeposits ¶
func (m *QueryFetchDepositsResponse) GetDeposits() []Deposit
func (*QueryFetchDepositsResponse) GetPagination ¶
func (m *QueryFetchDepositsResponse) GetPagination() *query.PageResponse
func (*QueryFetchDepositsResponse) Marshal ¶
func (m *QueryFetchDepositsResponse) Marshal() (dAtA []byte, err error)
func (*QueryFetchDepositsResponse) MarshalTo ¶
func (m *QueryFetchDepositsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryFetchDepositsResponse) MarshalToSizedBuffer ¶
func (m *QueryFetchDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFetchDepositsResponse) ProtoMessage ¶
func (*QueryFetchDepositsResponse) ProtoMessage()
func (*QueryFetchDepositsResponse) Reset ¶
func (m *QueryFetchDepositsResponse) Reset()
func (*QueryFetchDepositsResponse) Size ¶
func (m *QueryFetchDepositsResponse) Size() (n int)
func (*QueryFetchDepositsResponse) String ¶
func (m *QueryFetchDepositsResponse) String() string
func (*QueryFetchDepositsResponse) Unmarshal ¶
func (m *QueryFetchDepositsResponse) Unmarshal(dAtA []byte) error
func (*QueryFetchDepositsResponse) XXX_DiscardUnknown ¶
func (m *QueryFetchDepositsResponse) XXX_DiscardUnknown()
func (*QueryFetchDepositsResponse) XXX_Marshal ¶
func (m *QueryFetchDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFetchDepositsResponse) XXX_Merge ¶
func (m *QueryFetchDepositsResponse) XXX_Merge(src proto.Message)
func (*QueryFetchDepositsResponse) XXX_Size ¶
func (m *QueryFetchDepositsResponse) XXX_Size() int
func (*QueryFetchDepositsResponse) XXX_Unmarshal ¶
func (m *QueryFetchDepositsResponse) XXX_Unmarshal(b []byte) error
type QueryGetDepositsForAddressRequest ¶
type QueryGetDepositsForAddressRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func (*QueryGetDepositsForAddressRequest) Descriptor ¶
func (*QueryGetDepositsForAddressRequest) Descriptor() ([]byte, []int)
func (*QueryGetDepositsForAddressRequest) GetAddress ¶
func (m *QueryGetDepositsForAddressRequest) GetAddress() string
func (*QueryGetDepositsForAddressRequest) Marshal ¶
func (m *QueryGetDepositsForAddressRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetDepositsForAddressRequest) MarshalTo ¶
func (m *QueryGetDepositsForAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetDepositsForAddressRequest) MarshalToSizedBuffer ¶
func (m *QueryGetDepositsForAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetDepositsForAddressRequest) ProtoMessage ¶
func (*QueryGetDepositsForAddressRequest) ProtoMessage()
func (*QueryGetDepositsForAddressRequest) Reset ¶
func (m *QueryGetDepositsForAddressRequest) Reset()
func (*QueryGetDepositsForAddressRequest) Size ¶
func (m *QueryGetDepositsForAddressRequest) Size() (n int)
func (*QueryGetDepositsForAddressRequest) String ¶
func (m *QueryGetDepositsForAddressRequest) String() string
func (*QueryGetDepositsForAddressRequest) Unmarshal ¶
func (m *QueryGetDepositsForAddressRequest) Unmarshal(dAtA []byte) error
func (*QueryGetDepositsForAddressRequest) XXX_DiscardUnknown ¶
func (m *QueryGetDepositsForAddressRequest) XXX_DiscardUnknown()
func (*QueryGetDepositsForAddressRequest) XXX_Marshal ¶
func (m *QueryGetDepositsForAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetDepositsForAddressRequest) XXX_Merge ¶
func (m *QueryGetDepositsForAddressRequest) XXX_Merge(src proto.Message)
func (*QueryGetDepositsForAddressRequest) XXX_Size ¶
func (m *QueryGetDepositsForAddressRequest) XXX_Size() int
func (*QueryGetDepositsForAddressRequest) XXX_Unmarshal ¶
func (m *QueryGetDepositsForAddressRequest) XXX_Unmarshal(b []byte) error
type QueryGetDepositsForAddressResponse ¶
type QueryGetDepositsForAddressResponse struct { DepositsPendingWithdrawal *Deposit `` /* 138-byte string literal not displayed */ DepositsPendingMint *Deposit `protobuf:"bytes,2,opt,name=deposits_pending_mint,json=depositsPendingMint,proto3" json:"deposits_pending_mint,omitempty"` DepositsMinted *Deposit `protobuf:"bytes,3,opt,name=deposits_minted,json=depositsMinted,proto3" json:"deposits_minted,omitempty"` }
func (*QueryGetDepositsForAddressResponse) Descriptor ¶
func (*QueryGetDepositsForAddressResponse) Descriptor() ([]byte, []int)
func (*QueryGetDepositsForAddressResponse) GetDepositsMinted ¶ added in v1.2.2
func (m *QueryGetDepositsForAddressResponse) GetDepositsMinted() *Deposit
func (*QueryGetDepositsForAddressResponse) GetDepositsPendingMint ¶ added in v1.2.2
func (m *QueryGetDepositsForAddressResponse) GetDepositsPendingMint() *Deposit
func (*QueryGetDepositsForAddressResponse) GetDepositsPendingWithdrawal ¶ added in v1.2.2
func (m *QueryGetDepositsForAddressResponse) GetDepositsPendingWithdrawal() *Deposit
func (*QueryGetDepositsForAddressResponse) Marshal ¶
func (m *QueryGetDepositsForAddressResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetDepositsForAddressResponse) MarshalTo ¶
func (m *QueryGetDepositsForAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetDepositsForAddressResponse) MarshalToSizedBuffer ¶
func (m *QueryGetDepositsForAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetDepositsForAddressResponse) ProtoMessage ¶
func (*QueryGetDepositsForAddressResponse) ProtoMessage()
func (*QueryGetDepositsForAddressResponse) Reset ¶
func (m *QueryGetDepositsForAddressResponse) Reset()
func (*QueryGetDepositsForAddressResponse) Size ¶
func (m *QueryGetDepositsForAddressResponse) Size() (n int)
func (*QueryGetDepositsForAddressResponse) String ¶
func (m *QueryGetDepositsForAddressResponse) String() string
func (*QueryGetDepositsForAddressResponse) Unmarshal ¶
func (m *QueryGetDepositsForAddressResponse) Unmarshal(dAtA []byte) error
func (*QueryGetDepositsForAddressResponse) XXX_DiscardUnknown ¶
func (m *QueryGetDepositsForAddressResponse) XXX_DiscardUnknown()
func (*QueryGetDepositsForAddressResponse) XXX_Marshal ¶
func (m *QueryGetDepositsForAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetDepositsForAddressResponse) XXX_Merge ¶
func (m *QueryGetDepositsForAddressResponse) XXX_Merge(src proto.Message)
func (*QueryGetDepositsForAddressResponse) XXX_Size ¶
func (m *QueryGetDepositsForAddressResponse) XXX_Size() int
func (*QueryGetDepositsForAddressResponse) XXX_Unmarshal ¶
func (m *QueryGetDepositsForAddressResponse) XXX_Unmarshal(b []byte) error
type QueryModuleAccountBalanceRequest ¶ added in v1.2.2
type QueryModuleAccountBalanceRequest struct { }
func (*QueryModuleAccountBalanceRequest) Descriptor ¶ added in v1.2.2
func (*QueryModuleAccountBalanceRequest) Descriptor() ([]byte, []int)
func (*QueryModuleAccountBalanceRequest) Marshal ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceRequest) Marshal() (dAtA []byte, err error)
func (*QueryModuleAccountBalanceRequest) MarshalTo ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryModuleAccountBalanceRequest) MarshalToSizedBuffer ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryModuleAccountBalanceRequest) ProtoMessage ¶ added in v1.2.2
func (*QueryModuleAccountBalanceRequest) ProtoMessage()
func (*QueryModuleAccountBalanceRequest) Reset ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceRequest) Reset()
func (*QueryModuleAccountBalanceRequest) Size ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceRequest) Size() (n int)
func (*QueryModuleAccountBalanceRequest) String ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceRequest) String() string
func (*QueryModuleAccountBalanceRequest) Unmarshal ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceRequest) Unmarshal(dAtA []byte) error
func (*QueryModuleAccountBalanceRequest) XXX_DiscardUnknown ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceRequest) XXX_DiscardUnknown()
func (*QueryModuleAccountBalanceRequest) XXX_Marshal ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryModuleAccountBalanceRequest) XXX_Merge ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceRequest) XXX_Merge(src proto.Message)
func (*QueryModuleAccountBalanceRequest) XXX_Size ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceRequest) XXX_Size() int
func (*QueryModuleAccountBalanceRequest) XXX_Unmarshal ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceRequest) XXX_Unmarshal(b []byte) error
type QueryModuleAccountBalanceResponse ¶ added in v1.2.2
type QueryModuleAccountBalanceResponse struct {
ModuleAccountBalance github_com_cosmos_cosmos_sdk_types.Coins `` /* 150-byte string literal not displayed */
}
func (*QueryModuleAccountBalanceResponse) Descriptor ¶ added in v1.2.2
func (*QueryModuleAccountBalanceResponse) Descriptor() ([]byte, []int)
func (*QueryModuleAccountBalanceResponse) GetModuleAccountBalance ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceResponse) GetModuleAccountBalance() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryModuleAccountBalanceResponse) Marshal ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceResponse) Marshal() (dAtA []byte, err error)
func (*QueryModuleAccountBalanceResponse) MarshalTo ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryModuleAccountBalanceResponse) MarshalToSizedBuffer ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryModuleAccountBalanceResponse) ProtoMessage ¶ added in v1.2.2
func (*QueryModuleAccountBalanceResponse) ProtoMessage()
func (*QueryModuleAccountBalanceResponse) Reset ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceResponse) Reset()
func (*QueryModuleAccountBalanceResponse) Size ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceResponse) Size() (n int)
func (*QueryModuleAccountBalanceResponse) String ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceResponse) String() string
func (*QueryModuleAccountBalanceResponse) Unmarshal ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceResponse) Unmarshal(dAtA []byte) error
func (*QueryModuleAccountBalanceResponse) XXX_DiscardUnknown ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceResponse) XXX_DiscardUnknown()
func (*QueryModuleAccountBalanceResponse) XXX_Marshal ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryModuleAccountBalanceResponse) XXX_Merge ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceResponse) XXX_Merge(src proto.Message)
func (*QueryModuleAccountBalanceResponse) XXX_Size ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceResponse) XXX_Size() int
func (*QueryModuleAccountBalanceResponse) XXX_Unmarshal ¶ added in v1.2.2
func (m *QueryModuleAccountBalanceResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶ added in v1.2.2
type QueryParamsRequest struct { }
func (*QueryParamsRequest) Descriptor ¶ added in v1.2.2
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v1.2.2
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v1.2.2
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v1.2.2
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v1.2.2
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v1.2.2
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v1.2.2
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v1.2.2
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v1.2.2
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v1.2.2
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v1.2.2
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v1.2.2
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v1.2.2
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v1.2.2
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v1.2.2
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (*QueryParamsResponse) Descriptor ¶ added in v1.2.2
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶ added in v1.2.2
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶ added in v1.2.2
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v1.2.2
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v1.2.2
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v1.2.2
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v1.2.2
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v1.2.2
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v1.2.2
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v1.2.2
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v1.2.2
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v1.2.2
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v1.2.2
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v1.2.2
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v1.2.2
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { ModuleAccountBalance(context.Context, *QueryModuleAccountBalanceRequest) (*QueryModuleAccountBalanceResponse, error) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) GetDepositsForAddress(context.Context, *QueryGetDepositsForAddressRequest) (*QueryGetDepositsForAddressResponse, error) FetchDeposits(context.Context, *QueryFetchDepositsRequest) (*QueryFetchDepositsResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶ added in v1.2.2
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Deposit ¶ added in v1.2.2
func (*UnimplementedMsgServer) Deposit(ctx context.Context, req *MsgDeposit) (*MsgDepositResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) FetchDeposits ¶
func (*UnimplementedQueryServer) FetchDeposits(ctx context.Context, req *QueryFetchDepositsRequest) (*QueryFetchDepositsResponse, error)
func (*UnimplementedQueryServer) GetDepositsForAddress ¶
func (*UnimplementedQueryServer) GetDepositsForAddress(ctx context.Context, req *QueryGetDepositsForAddressRequest) (*QueryGetDepositsForAddressResponse, error)
func (*UnimplementedQueryServer) ModuleAccountBalance ¶ added in v1.2.2
func (*UnimplementedQueryServer) ModuleAccountBalance(ctx context.Context, req *QueryModuleAccountBalanceRequest) (*QueryModuleAccountBalanceResponse, error)
func (*UnimplementedQueryServer) Params ¶ added in v1.2.2
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
type WithdrawAndMintProposal ¶
type WithdrawAndMintProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` WithdrawalAddress string `protobuf:"bytes,3,opt,name=withdrawal_address,json=withdrawalAddress,proto3" json:"withdrawal_address,omitempty"` MicroMintRate int64 `protobuf:"varint,4,opt,name=micro_mint_rate,json=microMintRate,proto3" json:"micro_mint_rate,omitempty"` }
func NewWithdrawAndMintProposal ¶
func NewWithdrawAndMintProposal(title string, description string, withdrawalAddress string, microMintRate int64) *WithdrawAndMintProposal
func (*WithdrawAndMintProposal) Descriptor ¶
func (*WithdrawAndMintProposal) Descriptor() ([]byte, []int)
func (*WithdrawAndMintProposal) Equal ¶
func (this *WithdrawAndMintProposal) Equal(that interface{}) bool
func (*WithdrawAndMintProposal) GetDescription ¶
func (prop *WithdrawAndMintProposal) GetDescription() string
func (*WithdrawAndMintProposal) GetMicroMintRate ¶
func (prop *WithdrawAndMintProposal) GetMicroMintRate() int64
func (*WithdrawAndMintProposal) GetTitle ¶
func (prop *WithdrawAndMintProposal) GetTitle() string
func (*WithdrawAndMintProposal) GetWithdrawalAddress ¶
func (prop *WithdrawAndMintProposal) GetWithdrawalAddress() string
func (*WithdrawAndMintProposal) Marshal ¶
func (m *WithdrawAndMintProposal) Marshal() (dAtA []byte, err error)
func (*WithdrawAndMintProposal) MarshalTo ¶
func (m *WithdrawAndMintProposal) MarshalTo(dAtA []byte) (int, error)
func (*WithdrawAndMintProposal) MarshalToSizedBuffer ¶
func (m *WithdrawAndMintProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WithdrawAndMintProposal) ProposalRoute ¶
func (prop *WithdrawAndMintProposal) ProposalRoute() string
func (*WithdrawAndMintProposal) ProposalType ¶
func (prop *WithdrawAndMintProposal) ProposalType() string
func (*WithdrawAndMintProposal) ProtoMessage ¶
func (*WithdrawAndMintProposal) ProtoMessage()
func (*WithdrawAndMintProposal) Reset ¶
func (m *WithdrawAndMintProposal) Reset()
func (*WithdrawAndMintProposal) Size ¶
func (m *WithdrawAndMintProposal) Size() (n int)
func (*WithdrawAndMintProposal) String ¶
func (prop *WithdrawAndMintProposal) String() string
func (*WithdrawAndMintProposal) Unmarshal ¶
func (m *WithdrawAndMintProposal) Unmarshal(dAtA []byte) error
func (*WithdrawAndMintProposal) ValidateBasic ¶
func (prop *WithdrawAndMintProposal) ValidateBasic() error
func (*WithdrawAndMintProposal) XXX_DiscardUnknown ¶
func (m *WithdrawAndMintProposal) XXX_DiscardUnknown()
func (*WithdrawAndMintProposal) XXX_Marshal ¶
func (m *WithdrawAndMintProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WithdrawAndMintProposal) XXX_Merge ¶
func (m *WithdrawAndMintProposal) XXX_Merge(src proto.Message)
func (*WithdrawAndMintProposal) XXX_Size ¶
func (m *WithdrawAndMintProposal) XXX_Size() int
func (*WithdrawAndMintProposal) XXX_Unmarshal ¶
func (m *WithdrawAndMintProposal) XXX_Unmarshal(b []byte) error