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 NewUpdateParamsProposal(title string, description string, withdrawalAddr string, ...) govtypes.Content
- 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 MsgWithdrawAndMint
- func (*MsgWithdrawAndMint) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawAndMint) GetAddress() string
- func (m *MsgWithdrawAndMint) GetMicroMintRate() int64
- func (msg *MsgWithdrawAndMint) GetSignBytes() []byte
- func (msg *MsgWithdrawAndMint) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawAndMint) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawAndMint) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawAndMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawAndMint) ProtoMessage()
- func (m *MsgWithdrawAndMint) Reset()
- func (msg MsgWithdrawAndMint) Route() string
- func (m *MsgWithdrawAndMint) Size() (n int)
- func (m *MsgWithdrawAndMint) String() string
- func (msg MsgWithdrawAndMint) Type() string
- func (m *MsgWithdrawAndMint) Unmarshal(dAtA []byte) error
- func (msg *MsgWithdrawAndMint) ValidateBasic() error
- func (m *MsgWithdrawAndMint) XXX_DiscardUnknown()
- func (m *MsgWithdrawAndMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawAndMint) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawAndMint) XXX_Size() int
- func (m *MsgWithdrawAndMint) XXX_Unmarshal(b []byte) error
- type MsgWithdrawAndMintResponse
- func (*MsgWithdrawAndMintResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawAndMintResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawAndMintResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawAndMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawAndMintResponse) ProtoMessage()
- func (m *MsgWithdrawAndMintResponse) Reset()
- func (m *MsgWithdrawAndMintResponse) Size() (n int)
- func (m *MsgWithdrawAndMintResponse) String() string
- func (m *MsgWithdrawAndMintResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawAndMintResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawAndMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawAndMintResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawAndMintResponse) XXX_Size() int
- func (m *MsgWithdrawAndMintResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetDepositDenoms() []string
- func (m *Params) GetIsDepositEnabled() bool
- func (m *Params) GetWithdrawalAddress() string
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p *Params) ValidateBasics() 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 ProposalUpdateParams
- func (*ProposalUpdateParams) Descriptor() ([]byte, []int)
- func (m *ProposalUpdateParams) GetDepositDenoms() []string
- func (m *ProposalUpdateParams) GetDescription() string
- func (m *ProposalUpdateParams) GetIsDepositEnabled() *types.BoolValue
- func (m *ProposalUpdateParams) GetTitle() string
- func (m *ProposalUpdateParams) GetWithdrawalAddress() string
- func (m *ProposalUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *ProposalUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *ProposalUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *ProposalUpdateParams) ProposalRoute() string
- func (p *ProposalUpdateParams) ProposalType() string
- func (*ProposalUpdateParams) ProtoMessage()
- func (m *ProposalUpdateParams) Reset()
- func (m *ProposalUpdateParams) Size() (n int)
- func (p ProposalUpdateParams) String() string
- func (m *ProposalUpdateParams) Unmarshal(dAtA []byte) error
- func (p *ProposalUpdateParams) ValidateBasic() error
- func (m *ProposalUpdateParams) XXX_DiscardUnknown()
- func (m *ProposalUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProposalUpdateParams) XXX_Merge(src proto.Message)
- func (m *ProposalUpdateParams) XXX_Size() int
- func (m *ProposalUpdateParams) 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 = 2 // 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 // MintDenom defines the denom of the minted token MintDenom = "udfr" )
const ( DefaultDenom = "ibc/05554A9BFDD28894D7F18F4C707AA0930D778751A437A9FE1F4684A3E1199728" // USDC ibc denom from Osmosis to Lum Network mainnet DefaultMinDepositAmount = 1000000 )
Default parameter constants
const (
ProposalTypeUpdateParams = "UpdateParamsProposal"
)
const (
ProposalTypeWithdrawAndMint = "WithdrawAndMint"
)
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 ( ErrEmptyDepositAmount = errorsmod.Register(ModuleName, 1201, "Empty deposit amount") ErrInsufficientDepositAmount = errorsmod.Register(ModuleName, 1202, "Insufficient deposit amount") ErrEmptyMicroMintRate = errorsmod.Register(ModuleName, 1203, "Empty micro mint rate") ErrInvalidMinDepositAmount = errorsmod.Register(ModuleName, 1204, "Min deposit amount should be greater than 0") ErrInvalidDepositDenom = errorsmod.Register(ModuleName, 1205, "Invalid deposit denom") ErrInvalidWithdrawalAddress = errorsmod.Register(ModuleName, 1206, "Invalid management address") ErrInvalidSignerAddress = errorsmod.Register(ModuleName, 1207, "Invalid signer address") ErrDepositNotEnabled = errorsmod.Register(ModuleName, 1208, "Deposit not enabled") ErrEmptyWithdrawalAddress = errorsmod.Register(ModuleName, 1209, "No withdrawal address set in params") ErrInvalidParams = errorsmod.Register(ModuleName, 1210, "Invalid params") )
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 ( ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") )
var ( DepositsPendingWithdrawalPrefix = []byte{0x01} DepositsPendingMintPrefix = []byte{0x02} DepositsMintedPrefix = []byte{0x03} ParamsPrefix = []byte{0x10} )
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 NewUpdateParamsProposal ¶ added in v1.5.0
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) WithdrawAndMint(ctx context.Context, in *MsgWithdrawAndMint, opts ...grpc.CallOption) (*MsgWithdrawAndMintResponse, 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) WithdrawAndMint(context.Context, *MsgWithdrawAndMint) (*MsgWithdrawAndMintResponse, error) }
MsgServer is the server API for Msg service.
type MsgWithdrawAndMint ¶ added in v1.5.0
type MsgWithdrawAndMint struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` MicroMintRate int64 `protobuf:"varint,2,opt,name=micro_mint_rate,json=microMintRate,proto3" json:"micro_mint_rate,omitempty"` }
func NewMsgWithdrawAndMint ¶ added in v1.5.0
func NewMsgWithdrawAndMint(address string, microMintRate int64) *MsgWithdrawAndMint
func (*MsgWithdrawAndMint) Descriptor ¶ added in v1.5.0
func (*MsgWithdrawAndMint) Descriptor() ([]byte, []int)
func (*MsgWithdrawAndMint) GetAddress ¶ added in v1.5.0
func (m *MsgWithdrawAndMint) GetAddress() string
func (*MsgWithdrawAndMint) GetMicroMintRate ¶ added in v1.5.0
func (m *MsgWithdrawAndMint) GetMicroMintRate() int64
func (*MsgWithdrawAndMint) GetSignBytes ¶ added in v1.5.0
func (msg *MsgWithdrawAndMint) GetSignBytes() []byte
func (*MsgWithdrawAndMint) GetSigners ¶ added in v1.5.0
func (msg *MsgWithdrawAndMint) GetSigners() []sdk.AccAddress
func (*MsgWithdrawAndMint) Marshal ¶ added in v1.5.0
func (m *MsgWithdrawAndMint) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawAndMint) MarshalTo ¶ added in v1.5.0
func (m *MsgWithdrawAndMint) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawAndMint) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *MsgWithdrawAndMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawAndMint) ProtoMessage ¶ added in v1.5.0
func (*MsgWithdrawAndMint) ProtoMessage()
func (*MsgWithdrawAndMint) Reset ¶ added in v1.5.0
func (m *MsgWithdrawAndMint) Reset()
func (MsgWithdrawAndMint) Route ¶ added in v1.5.0
func (msg MsgWithdrawAndMint) Route() string
func (*MsgWithdrawAndMint) Size ¶ added in v1.5.0
func (m *MsgWithdrawAndMint) Size() (n int)
func (*MsgWithdrawAndMint) String ¶ added in v1.5.0
func (m *MsgWithdrawAndMint) String() string
func (MsgWithdrawAndMint) Type ¶ added in v1.5.0
func (msg MsgWithdrawAndMint) Type() string
func (*MsgWithdrawAndMint) Unmarshal ¶ added in v1.5.0
func (m *MsgWithdrawAndMint) Unmarshal(dAtA []byte) error
func (*MsgWithdrawAndMint) ValidateBasic ¶ added in v1.5.0
func (msg *MsgWithdrawAndMint) ValidateBasic() error
func (*MsgWithdrawAndMint) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *MsgWithdrawAndMint) XXX_DiscardUnknown()
func (*MsgWithdrawAndMint) XXX_Marshal ¶ added in v1.5.0
func (m *MsgWithdrawAndMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawAndMint) XXX_Merge ¶ added in v1.5.0
func (m *MsgWithdrawAndMint) XXX_Merge(src proto.Message)
func (*MsgWithdrawAndMint) XXX_Size ¶ added in v1.5.0
func (m *MsgWithdrawAndMint) XXX_Size() int
func (*MsgWithdrawAndMint) XXX_Unmarshal ¶ added in v1.5.0
func (m *MsgWithdrawAndMint) XXX_Unmarshal(b []byte) error
type MsgWithdrawAndMintResponse ¶ added in v1.5.0
type MsgWithdrawAndMintResponse struct { }
func (*MsgWithdrawAndMintResponse) Descriptor ¶ added in v1.5.0
func (*MsgWithdrawAndMintResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawAndMintResponse) Marshal ¶ added in v1.5.0
func (m *MsgWithdrawAndMintResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawAndMintResponse) MarshalTo ¶ added in v1.5.0
func (m *MsgWithdrawAndMintResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawAndMintResponse) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *MsgWithdrawAndMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawAndMintResponse) ProtoMessage ¶ added in v1.5.0
func (*MsgWithdrawAndMintResponse) ProtoMessage()
func (*MsgWithdrawAndMintResponse) Reset ¶ added in v1.5.0
func (m *MsgWithdrawAndMintResponse) Reset()
func (*MsgWithdrawAndMintResponse) Size ¶ added in v1.5.0
func (m *MsgWithdrawAndMintResponse) Size() (n int)
func (*MsgWithdrawAndMintResponse) String ¶ added in v1.5.0
func (m *MsgWithdrawAndMintResponse) String() string
func (*MsgWithdrawAndMintResponse) Unmarshal ¶ added in v1.5.0
func (m *MsgWithdrawAndMintResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawAndMintResponse) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *MsgWithdrawAndMintResponse) XXX_DiscardUnknown()
func (*MsgWithdrawAndMintResponse) XXX_Marshal ¶ added in v1.5.0
func (m *MsgWithdrawAndMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawAndMintResponse) XXX_Merge ¶ added in v1.5.0
func (m *MsgWithdrawAndMintResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawAndMintResponse) XXX_Size ¶ added in v1.5.0
func (m *MsgWithdrawAndMintResponse) XXX_Size() int
func (*MsgWithdrawAndMintResponse) XXX_Unmarshal ¶ added in v1.5.0
func (m *MsgWithdrawAndMintResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { DepositDenoms []string `protobuf:"bytes,1,rep,name=deposit_denoms,json=depositDenoms,proto3" json:"deposit_denoms,omitempty"` MinDepositAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 151-byte string literal not displayed */ WithdrawalAddress string `protobuf:"bytes,3,opt,name=withdrawal_address,json=withdrawalAddress,proto3" json:"withdrawal_address,omitempty"` IsDepositEnabled bool `protobuf:"varint,4,opt,name=is_deposit_enabled,json=isDepositEnabled,proto3" json:"is_deposit_enabled,omitempty"` }
func DefaultParams ¶
func DefaultParams() Params
DefaultParams return the default dfract module params
func (*Params) Descriptor ¶
func (*Params) GetDepositDenoms ¶ added in v1.3.1
func (*Params) GetIsDepositEnabled ¶ added in v1.5.0
func (*Params) GetWithdrawalAddress ¶ added in v1.5.0
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ValidateBasics ¶ added in v1.5.0
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type ProposalUpdateParams ¶ added in v1.5.0
type ProposalUpdateParams 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"` IsDepositEnabled *types.BoolValue `protobuf:"bytes,4,opt,name=is_deposit_enabled,json=isDepositEnabled,proto3" json:"is_deposit_enabled,omitempty"` DepositDenoms []string `protobuf:"bytes,5,rep,name=deposit_denoms,json=depositDenoms,proto3" json:"deposit_denoms,omitempty"` MinDepositAmount *github_com_cosmos_cosmos_sdk_types.Int `` /* 161-byte string literal not displayed */ }
func (*ProposalUpdateParams) Descriptor ¶ added in v1.5.0
func (*ProposalUpdateParams) Descriptor() ([]byte, []int)
func (*ProposalUpdateParams) GetDepositDenoms ¶ added in v1.5.0
func (m *ProposalUpdateParams) GetDepositDenoms() []string
func (*ProposalUpdateParams) GetDescription ¶ added in v1.5.0
func (m *ProposalUpdateParams) GetDescription() string
func (*ProposalUpdateParams) GetIsDepositEnabled ¶ added in v1.5.0
func (m *ProposalUpdateParams) GetIsDepositEnabled() *types.BoolValue
func (*ProposalUpdateParams) GetTitle ¶ added in v1.5.0
func (m *ProposalUpdateParams) GetTitle() string
func (*ProposalUpdateParams) GetWithdrawalAddress ¶ added in v1.5.0
func (m *ProposalUpdateParams) GetWithdrawalAddress() string
func (*ProposalUpdateParams) Marshal ¶ added in v1.5.0
func (m *ProposalUpdateParams) Marshal() (dAtA []byte, err error)
func (*ProposalUpdateParams) MarshalTo ¶ added in v1.5.0
func (m *ProposalUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*ProposalUpdateParams) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *ProposalUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProposalUpdateParams) ProposalRoute ¶ added in v1.5.0
func (p *ProposalUpdateParams) ProposalRoute() string
func (*ProposalUpdateParams) ProposalType ¶ added in v1.5.0
func (p *ProposalUpdateParams) ProposalType() string
func (*ProposalUpdateParams) ProtoMessage ¶ added in v1.5.0
func (*ProposalUpdateParams) ProtoMessage()
func (*ProposalUpdateParams) Reset ¶ added in v1.5.0
func (m *ProposalUpdateParams) Reset()
func (*ProposalUpdateParams) Size ¶ added in v1.5.0
func (m *ProposalUpdateParams) Size() (n int)
func (ProposalUpdateParams) String ¶ added in v1.5.0
func (p ProposalUpdateParams) String() string
func (*ProposalUpdateParams) Unmarshal ¶ added in v1.5.0
func (m *ProposalUpdateParams) Unmarshal(dAtA []byte) error
func (*ProposalUpdateParams) ValidateBasic ¶ added in v1.5.0
func (p *ProposalUpdateParams) ValidateBasic() error
func (*ProposalUpdateParams) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *ProposalUpdateParams) XXX_DiscardUnknown()
func (*ProposalUpdateParams) XXX_Marshal ¶ added in v1.5.0
func (m *ProposalUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProposalUpdateParams) XXX_Merge ¶ added in v1.5.0
func (m *ProposalUpdateParams) XXX_Merge(src proto.Message)
func (*ProposalUpdateParams) XXX_Size ¶ added in v1.5.0
func (m *ProposalUpdateParams) XXX_Size() int
func (*ProposalUpdateParams) XXX_Unmarshal ¶ added in v1.5.0
func (m *ProposalUpdateParams) XXX_Unmarshal(b []byte) error
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 `` /* 180-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)
func (*UnimplementedMsgServer) WithdrawAndMint ¶ added in v1.5.0
func (*UnimplementedMsgServer) WithdrawAndMint(ctx context.Context, req *MsgWithdrawAndMint) (*MsgWithdrawAndMintResponse, 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"` }
DEPRECATED: For easier management, we moved the WithdrawAndMintProposal to tx based minting. The withdrawal address specified in the dFract module parameters is the one authorized to withdraw and mint udfr tokens based on the micro mint rate
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