types

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeDeposit  = "deposit"
	EventTypeWithdraw = "withdraw"
	EventTypeMint     = "mint"

	AttributeKeyDepositor     = "depositor"
	AttributeKeyAmount        = "amount"
	AttributeKeyMinted        = "minted"
	AttributeKeyMicroMintRate = "micro_mint_rate"
	AttributeKeyMintBlock     = "mint_block"
)
View Source
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"
)
View Source
const (
	ProposalTypeWithdrawAndMint = "WithdrawAndMint"
)
View Source
const (
	TypeMsgDeposit = "Deposit"
)

Variables

View Source
var (
	ErrInvalidLengthDeposit        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDeposit          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDeposit = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrUnauthorizedDepositDenom  = sdkerrors.Register(ModuleName, 1200, "Unauthorized denom for deposit")
	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")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DepositsPendingWithdrawalPrefix = []byte{0x01}
	DepositsPendingMintPrefix       = []byte{0x02}
	DepositsMintedPrefix            = []byte{0x03}
)
View Source
var (
	KeyDepositDenom     = []byte("DepositDenom")
	KeyMinDepositAmount = []byte("MinDepositAmount")
)

Parameter store keys.

View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var DepositsQueryType_name = map[int32]string{
	0: "PENDING_WITHDRAWAL",
	1: "PENDING_MINT",
	2: "MINTED",
}
View Source
var DepositsQueryType_value = map[string]int32{
	"PENDING_WITHDRAWAL": 0,
	"PENDING_MINT":       1,
	"MINTED":             2,
}
View Source
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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

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) Descriptor() ([]byte, []int)

func (*Deposit) GetAmount

func (m *Deposit) GetAmount() types.Coin

func (*Deposit) GetCreatedAt

func (m *Deposit) GetCreatedAt() time.Time

func (*Deposit) GetDepositorAddress

func (m *Deposit) GetDepositorAddress() string

func (*Deposit) Marshal

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

func (*Deposit) MarshalTo

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

func (*Deposit) MarshalToSizedBuffer

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

func (*Deposit) ProtoMessage

func (*Deposit) ProtoMessage()

func (*Deposit) Reset

func (m *Deposit) Reset()

func (*Deposit) Size

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

func (*Deposit) String

func (m *Deposit) String() string

func (*Deposit) Unmarshal

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

func (*Deposit) XXX_DiscardUnknown

func (m *Deposit) XXX_DiscardUnknown()

func (*Deposit) XXX_Marshal

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

func (*Deposit) XXX_Merge

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

func (*Deposit) XXX_Size

func (m *Deposit) XXX_Size() int

func (*Deposit) XXX_Unmarshal

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

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

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type 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) MarshalTo

func (m *MsgDeposit) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Params) GetDepositDenom

func (m *Params) GetDepositDenom() string

func (*Params) GetMinDepositAmount

func (m *Params) GetMinDepositAmount() uint32

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs added in v1.2.2

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) Validate added in v1.2.2

func (p *Params) Validate() error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

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 (*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 (*QueryGetDepositsForAddressRequest) Size

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

func (*QueryGetDepositsForAddressRequest) 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 (*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 (*QueryGetDepositsForAddressResponse) Size

func (*QueryGetDepositsForAddressResponse) 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 (*QueryGetDepositsForAddressResponse) XXX_Size

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 (*QueryModuleAccountBalanceRequest) Size added in v1.2.2

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

func (*QueryModuleAccountBalanceRequest) String added in v1.2.2

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 (*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 (*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 (*QueryModuleAccountBalanceResponse) Size added in v1.2.2

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

func (*QueryModuleAccountBalanceResponse) String added in v1.2.2

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 (*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 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

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) FetchDeposits

func (*UnimplementedQueryServer) ModuleAccountBalance added in v1.2.2

func (*UnimplementedQueryServer) Params added in v1.2.2

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

Jump to

Keyboard shortcuts

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