types

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeMint           = "mint"
	EventTypeBurn           = "burn"
	EventTypeCurrencyUpdate = "currencyUpdate"

	AttributeKeyDenom      = "denom"
	AttributeKeyDesc       = "desc"
	AttributeKeyMintable   = "mintable"
	AttributeKeyOwner      = "owner"
	AttributeKeyReceiver   = "receiver"
	AttributeValueCategory = ModuleName
)

treasury event types and attribute keys

View Source
const (
	// ModuleName defines the module name
	ModuleName = "treasury"

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

	// RouterKey defines message route key
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName
)
View Source
const (
	// treasury module is enabled or not
	DefaultMintable = true
	DefaultOwner    = "rizon136fzkc73rm5def5fngs386qdlxcuvxvrte8lk7"
	DefaultSequence = 1
)
View Source
const (
	QueryCurrencies = "currencies"
	QueryCurrency   = "currency"
	QueryParams     = "parameters"
)

query endpoints supported by the Querier

Variables

View Source
var (
	ErrModuleUnmintable   = sdkerrors.Register(ModuleName, 2, "treasury module is unable to mint / burn")
	ErrCurrencyUnmintable = sdkerrors.Register(ModuleName, 3, "this currency is unable to mint / burn")
	ErrUnauthorizedSigner = sdkerrors.Register(ModuleName, 4, "unauthorized signer")
)
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 (
	// global key of currency's denom list
	CurrenciesKey = []byte{0x11}
	// global key of currency state sequence
	SequenceKey = []byte{0x12}
)
View Source
var (
	KeyMintable      = []byte("Mintable")
	KeyCurrencyList  = []byte("CurrencyList")
	KeyParamSequence = []byte("ParamSequence")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTreasury        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTreasury          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTreasury = 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 (
	// prefix for single currency key
	CurrencyPrefix = []byte{0x21}
)
View Source
var (
	DefaultCurrencyList = []Currency{
		{
			Denom:    "skrw",
			Desc:     "stable coin of KRW",
			Owner:    DefaultOwner,
			Mintable: true,
		},
		{
			Denom:    "susd",
			Desc:     "stable coin of USD",
			Owner:    DefaultOwner,
			Mintable: true,
		},
	}
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func GetCurrencyKey added in v0.3.0

func GetCurrencyKey(denom string) []byte

get the key for the currency from denom string

func ParamsKeyTable

func ParamsKeyTable() paramtypes.KeyTable

making keyTable for treasury module

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers the module interfaces types with the interface registry

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary module interfaces and concrete types on the provided LegacyAmino codec These types are used for Amino JSON serialization

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type BankKeeper

type BankKeeper interface {
	// MintCoins is used for minting new stable coins
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	// SendCoinsFromModuleToAccount used for sending minted coins to proper receiver
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error

	// BurnCoins is used for burning coins
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	// SendCoinsFromAccountToModule is used for moving coins from owner address to module account to burn
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
}

BankKeeper defines the expected bank keeper

type Currencies

type Currencies struct {
	// denoms is the denom list of all currencies
	Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty" yaml:"denoms"`
}

Currencies

func NewCurrencies

func NewCurrencies(denoms []string) Currencies

NewCurrencies creates new currency list

func (*Currencies) Descriptor

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

func (*Currencies) GetDenoms

func (m *Currencies) GetDenoms() []string

func (*Currencies) Marshal

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

func (*Currencies) MarshalTo

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

func (*Currencies) MarshalToSizedBuffer

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

func (*Currencies) ProtoMessage

func (*Currencies) ProtoMessage()

func (*Currencies) Reset

func (m *Currencies) Reset()

func (*Currencies) Size

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

func (*Currencies) String

func (m *Currencies) String() string

func (*Currencies) Unmarshal

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

func (*Currencies) XXX_DiscardUnknown

func (m *Currencies) XXX_DiscardUnknown()

func (*Currencies) XXX_Marshal

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

func (*Currencies) XXX_Merge

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

func (*Currencies) XXX_Size

func (m *Currencies) XXX_Size() int

func (*Currencies) XXX_Unmarshal

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

type Currency

type Currency struct {
	// denom is the name of the currency
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
	// desc is a description of the currency
	Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty" yaml:"desc"`
	// owner is who can mint this currency
	Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	// mintable indicates whether this currency can be minted or not
	Mintable bool `protobuf:"varint,4,opt,name=mintable,proto3" json:"mintable,omitempty" yaml:"mintable"`
}

Currency defines a single currency info

func NewCurrency

func NewCurrency(denom string, desc string, owner string, mintable bool) Currency

NewCurrency creates new currency

func (*Currency) Descriptor

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

func (*Currency) GetDenom

func (m *Currency) GetDenom() string

func (*Currency) GetDesc

func (m *Currency) GetDesc() string

func (*Currency) GetMintable

func (m *Currency) GetMintable() bool

func (*Currency) GetOwner

func (m *Currency) GetOwner() string

func (*Currency) Marshal

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

func (*Currency) MarshalTo

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

func (*Currency) MarshalToSizedBuffer

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

func (*Currency) ProtoMessage

func (*Currency) ProtoMessage()

func (*Currency) Reset

func (m *Currency) Reset()

func (*Currency) Size

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

func (*Currency) String

func (m *Currency) String() string

func (*Currency) Unmarshal

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

func (*Currency) XXX_DiscardUnknown

func (m *Currency) XXX_DiscardUnknown()

func (*Currency) XXX_Marshal

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

func (*Currency) XXX_Merge

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

func (*Currency) XXX_Size

func (m *Currency) XXX_Size() int

func (*Currency) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// params defines all the paramaters of treasury module
	Params Params   `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	Seq    Sequence `protobuf:"bytes,2,opt,name=seq,proto3" json:"seq"`
}

GenesisState defines the module's genesis state

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns default genesis state of treasury module

func NewGenesisState

func NewGenesisState(params Params, seq Sequence) *GenesisState

NewGenesisState creates a new GenesisState instance

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetSeq

func (m *GenesisState) GetSeq() Sequence

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) Validate

func (s *GenesisState) Validate() error

Validate checks all genesis states are valid

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 MaxAtoloSupply added in v0.2.7

type MaxAtoloSupply struct {
	// amount is maximum mintable amount of atolo
	Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty" yaml:"amount"`
}

Maximum mintable amount of atolo

func NewMaxAtoloSupply added in v0.2.7

func NewMaxAtoloSupply(amount int64) MaxAtoloSupply

NewMaxAtoloSupply creates a new max atolo supply

func (*MaxAtoloSupply) Descriptor added in v0.2.7

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

func (*MaxAtoloSupply) GetAmount added in v0.2.7

func (m *MaxAtoloSupply) GetAmount() int64

func (*MaxAtoloSupply) Marshal added in v0.2.7

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

func (*MaxAtoloSupply) MarshalTo added in v0.2.7

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

func (*MaxAtoloSupply) MarshalToSizedBuffer added in v0.2.7

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

func (*MaxAtoloSupply) ProtoMessage added in v0.2.7

func (*MaxAtoloSupply) ProtoMessage()

func (*MaxAtoloSupply) Reset added in v0.2.7

func (m *MaxAtoloSupply) Reset()

func (*MaxAtoloSupply) Size added in v0.2.7

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

func (*MaxAtoloSupply) String added in v0.2.7

func (m *MaxAtoloSupply) String() string

func (*MaxAtoloSupply) Unmarshal added in v0.2.7

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

func (*MaxAtoloSupply) XXX_DiscardUnknown added in v0.2.7

func (m *MaxAtoloSupply) XXX_DiscardUnknown()

func (*MaxAtoloSupply) XXX_Marshal added in v0.2.7

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

func (*MaxAtoloSupply) XXX_Merge added in v0.2.7

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

func (*MaxAtoloSupply) XXX_Size added in v0.2.7

func (m *MaxAtoloSupply) XXX_Size() int

func (*MaxAtoloSupply) XXX_Unmarshal added in v0.2.7

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

type MsgBurnRequest

type MsgBurnRequest struct {
	// signer is who requests burning
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
	// amount is the amount to burn
	Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

MsgBurnRequest defines the Msg/Burn request type

func NewMsgBurnRequest

func NewMsgBurnRequest(signer string, amount sdk.Coin) *MsgBurnRequest

NewMsgBurnRequest creates a new MsgBurnRequest object

func (*MsgBurnRequest) Descriptor

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

func (*MsgBurnRequest) GetAmount

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

func (MsgBurnRequest) GetSignBytes

func (msg MsgBurnRequest) GetSignBytes() []byte

GetSignBytes returns the message bytes to sign over

func (*MsgBurnRequest) GetSigner

func (m *MsgBurnRequest) GetSigner() string

func (MsgBurnRequest) GetSigners

func (msg MsgBurnRequest) GetSigners() []sdk.AccAddress

GetSigners returns the AccAddress of signer

func (*MsgBurnRequest) Marshal

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

func (*MsgBurnRequest) MarshalTo

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

func (*MsgBurnRequest) MarshalToSizedBuffer

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

func (*MsgBurnRequest) ProtoMessage

func (*MsgBurnRequest) ProtoMessage()

func (*MsgBurnRequest) Reset

func (m *MsgBurnRequest) Reset()

func (MsgBurnRequest) Route

func (msg MsgBurnRequest) Route() string

implements of the sdk.Msg interface // Route returns the RouterKey

func (*MsgBurnRequest) Size

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

func (*MsgBurnRequest) String

func (m *MsgBurnRequest) String() string

func (MsgBurnRequest) Type

func (msg MsgBurnRequest) Type() string

Type returns the name of message type

func (*MsgBurnRequest) Unmarshal

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

func (MsgBurnRequest) ValidateBasic

func (msg MsgBurnRequest) ValidateBasic() error

ValidateBasic validates the MsgBurnRequest

func (*MsgBurnRequest) XXX_DiscardUnknown

func (m *MsgBurnRequest) XXX_DiscardUnknown()

func (*MsgBurnRequest) XXX_Marshal

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

func (*MsgBurnRequest) XXX_Merge

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

func (*MsgBurnRequest) XXX_Size

func (m *MsgBurnRequest) XXX_Size() int

func (*MsgBurnRequest) XXX_Unmarshal

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

type MsgBurnResponse

type MsgBurnResponse struct {
}

MsgBurnResponse defines the Msg/Burn response type

func (*MsgBurnResponse) Descriptor

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

func (*MsgBurnResponse) Marshal

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

func (*MsgBurnResponse) MarshalTo

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

func (*MsgBurnResponse) MarshalToSizedBuffer

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

func (*MsgBurnResponse) ProtoMessage

func (*MsgBurnResponse) ProtoMessage()

func (*MsgBurnResponse) Reset

func (m *MsgBurnResponse) Reset()

func (*MsgBurnResponse) Size

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

func (*MsgBurnResponse) String

func (m *MsgBurnResponse) String() string

func (*MsgBurnResponse) Unmarshal

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

func (*MsgBurnResponse) XXX_DiscardUnknown

func (m *MsgBurnResponse) XXX_DiscardUnknown()

func (*MsgBurnResponse) XXX_Marshal

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

func (*MsgBurnResponse) XXX_Merge

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

func (*MsgBurnResponse) XXX_Size

func (m *MsgBurnResponse) XXX_Size() int

func (*MsgBurnResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// Mint defines a method for minting coins
	Mint(ctx context.Context, in *MsgMintRequest, opts ...grpc.CallOption) (*MsgMintResponse, error)
	// Burn defines a method for burning coins
	Burn(ctx context.Context, in *MsgBurnRequest, opts ...grpc.CallOption) (*MsgBurnResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgMintRequest

type MsgMintRequest struct {
	// receiver is the target address of minted coins
	Receiver string `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"`
	// signer is who requests minting
	Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
	// amount is the amount to mint
	Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

MsgMintRequest defines the Msg/Mint request type

func NewMsgMintRequest

func NewMsgMintRequest(receiver string, signer string, amount sdk.Coin) *MsgMintRequest

NewMsgMintRequest creates a new MsgMintRequest object

func (*MsgMintRequest) Descriptor

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

func (*MsgMintRequest) GetAmount

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

func (*MsgMintRequest) GetReceiver

func (m *MsgMintRequest) GetReceiver() string

func (MsgMintRequest) GetSignBytes

func (msg MsgMintRequest) GetSignBytes() []byte

GetSignBytes returns the message bytes to sign over

func (*MsgMintRequest) GetSigner

func (m *MsgMintRequest) GetSigner() string

func (MsgMintRequest) GetSigners

func (msg MsgMintRequest) GetSigners() []sdk.AccAddress

GetSigners returns the AccAddress of signer

func (*MsgMintRequest) Marshal

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

func (*MsgMintRequest) MarshalTo

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

func (*MsgMintRequest) MarshalToSizedBuffer

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

func (*MsgMintRequest) ProtoMessage

func (*MsgMintRequest) ProtoMessage()

func (*MsgMintRequest) Reset

func (m *MsgMintRequest) Reset()

func (MsgMintRequest) Route

func (msg MsgMintRequest) Route() string

implements of the sdk.Msg interface // Route returns the RouterKey

func (*MsgMintRequest) Size

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

func (*MsgMintRequest) String

func (m *MsgMintRequest) String() string

func (MsgMintRequest) Type

func (msg MsgMintRequest) Type() string

Type returns the name of message type

func (*MsgMintRequest) Unmarshal

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

func (MsgMintRequest) ValidateBasic

func (msg MsgMintRequest) ValidateBasic() error

ValidateBasic validates the MsgMintRequest

func (*MsgMintRequest) XXX_DiscardUnknown

func (m *MsgMintRequest) XXX_DiscardUnknown()

func (*MsgMintRequest) XXX_Marshal

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

func (*MsgMintRequest) XXX_Merge

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

func (*MsgMintRequest) XXX_Size

func (m *MsgMintRequest) XXX_Size() int

func (*MsgMintRequest) XXX_Unmarshal

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

type MsgMintResponse

type MsgMintResponse struct {
}

MsgMintResponse defines the Msg/Mint response type

func (*MsgMintResponse) Descriptor

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

func (*MsgMintResponse) Marshal

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

func (*MsgMintResponse) MarshalTo

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

func (*MsgMintResponse) MarshalToSizedBuffer

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

func (*MsgMintResponse) ProtoMessage

func (*MsgMintResponse) ProtoMessage()

func (*MsgMintResponse) Reset

func (m *MsgMintResponse) Reset()

func (*MsgMintResponse) Size

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

func (*MsgMintResponse) String

func (m *MsgMintResponse) String() string

func (*MsgMintResponse) Unmarshal

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

func (*MsgMintResponse) XXX_DiscardUnknown

func (m *MsgMintResponse) XXX_DiscardUnknown()

func (*MsgMintResponse) XXX_Marshal

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

func (*MsgMintResponse) XXX_Merge

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

func (*MsgMintResponse) XXX_Size

func (m *MsgMintResponse) XXX_Size() int

func (*MsgMintResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// Mint defines a method for minting coins
	Mint(context.Context, *MsgMintRequest) (*MsgMintResponse, error)
	// Burn defines a method for burning coins
	Burn(context.Context, *MsgBurnRequest) (*MsgBurnResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
	// mintable indicates whether every currencie of treasury module are able to mint or not
	Mintable bool `protobuf:"varint,1,opt,name=mintable,proto3" json:"mintable,omitempty" yaml:"mintable"`
	// sequence of currency state
	Sequence int64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty" yaml:"sequence"`
	// currency_list is the list of supported currencies
	CurrencyList []Currency `protobuf:"bytes,3,rep,name=currency_list,json=currencyList,proto3" json:"currency_list" yaml:"currency_list"`
}

Params defines the parameters for the treasury module

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func (*Params) Descriptor

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

func (*Params) GetCurrencyList

func (m *Params) GetCurrencyList() []Currency

func (*Params) GetMintable

func (m *Params) GetMintable() bool

func (*Params) GetSequence

func (m *Params) GetSequence() int64

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

implements params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String returns a human readable string representation of the parameters

func (*Params) Unmarshal

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

func (*Params) Validate

func (p *Params) Validate() error

validate a set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Currencies queries all supported currency denom list
	Currencies(ctx context.Context, in *QueryCurrenciesRequest, opts ...grpc.CallOption) (*QueryCurrenciesResponse, error)
	// Currency queries a currency info
	Currency(ctx context.Context, in *QueryCurrencyRequest, opts ...grpc.CallOption) (*QueryCurrencyResponse, error)
	// Max queries maximum mintable amount of uatolo
	MaxAtoloSupply(ctx context.Context, in *QueryMaxRequest, opts ...grpc.CallOption) (*QueryMaxResponse, error)
	// Params queries parameters of treasury
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryCurrenciesRequest

type QueryCurrenciesRequest struct {
	// pagination defines an optional pagination for the request
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryCurrenciesRequest is request type for the Query/Currencies RPC method

func (*QueryCurrenciesRequest) Descriptor

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

func (*QueryCurrenciesRequest) GetPagination

func (m *QueryCurrenciesRequest) GetPagination() *query.PageRequest

func (*QueryCurrenciesRequest) Marshal

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

func (*QueryCurrenciesRequest) MarshalTo

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

func (*QueryCurrenciesRequest) MarshalToSizedBuffer

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

func (*QueryCurrenciesRequest) ProtoMessage

func (*QueryCurrenciesRequest) ProtoMessage()

func (*QueryCurrenciesRequest) Reset

func (m *QueryCurrenciesRequest) Reset()

func (*QueryCurrenciesRequest) Size

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

func (*QueryCurrenciesRequest) String

func (m *QueryCurrenciesRequest) String() string

func (*QueryCurrenciesRequest) Unmarshal

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

func (*QueryCurrenciesRequest) XXX_DiscardUnknown

func (m *QueryCurrenciesRequest) XXX_DiscardUnknown()

func (*QueryCurrenciesRequest) XXX_Marshal

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

func (*QueryCurrenciesRequest) XXX_Merge

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

func (*QueryCurrenciesRequest) XXX_Size

func (m *QueryCurrenciesRequest) XXX_Size() int

func (*QueryCurrenciesRequest) XXX_Unmarshal

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

type QueryCurrenciesResponse

type QueryCurrenciesResponse struct {
	// Currencies defines all supported currency denom list
	Currencies *Currencies `protobuf:"bytes,1,opt,name=currencies,proto3" json:"currencies,omitempty"`
	// pagination defines the pagination in the response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryCurrenciesResponse is response type for the Query/Currencies RPC method

func (*QueryCurrenciesResponse) Descriptor

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

func (*QueryCurrenciesResponse) GetCurrencies

func (m *QueryCurrenciesResponse) GetCurrencies() *Currencies

func (*QueryCurrenciesResponse) GetPagination

func (m *QueryCurrenciesResponse) GetPagination() *query.PageResponse

func (*QueryCurrenciesResponse) Marshal

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

func (*QueryCurrenciesResponse) MarshalTo

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

func (*QueryCurrenciesResponse) MarshalToSizedBuffer

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

func (*QueryCurrenciesResponse) ProtoMessage

func (*QueryCurrenciesResponse) ProtoMessage()

func (*QueryCurrenciesResponse) Reset

func (m *QueryCurrenciesResponse) Reset()

func (*QueryCurrenciesResponse) Size

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

func (*QueryCurrenciesResponse) String

func (m *QueryCurrenciesResponse) String() string

func (*QueryCurrenciesResponse) Unmarshal

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

func (*QueryCurrenciesResponse) XXX_DiscardUnknown

func (m *QueryCurrenciesResponse) XXX_DiscardUnknown()

func (*QueryCurrenciesResponse) XXX_Marshal

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

func (*QueryCurrenciesResponse) XXX_Merge

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

func (*QueryCurrenciesResponse) XXX_Size

func (m *QueryCurrenciesResponse) XXX_Size() int

func (*QueryCurrenciesResponse) XXX_Unmarshal

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

type QueryCurrencyParam

type QueryCurrencyParam struct {
	Denom string
}

QueryCurrencyParam defines the param for the following query: - 'custom/treasury/currencies/{denom}'

func NewQueryCurrencyParam

func NewQueryCurrencyParam(denom string) QueryCurrencyParam

NewQueryCurrencyParam creates a new QueryCurrencyParam

type QueryCurrencyRequest

type QueryCurrencyRequest struct {
	// denom defines the denom to query for
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

QueryCurrencyRequest is request type for the Query/Currency RPC method

func (*QueryCurrencyRequest) Descriptor

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

func (*QueryCurrencyRequest) GetDenom

func (m *QueryCurrencyRequest) GetDenom() string

func (*QueryCurrencyRequest) Marshal

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

func (*QueryCurrencyRequest) MarshalTo

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

func (*QueryCurrencyRequest) MarshalToSizedBuffer

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

func (*QueryCurrencyRequest) ProtoMessage

func (*QueryCurrencyRequest) ProtoMessage()

func (*QueryCurrencyRequest) Reset

func (m *QueryCurrencyRequest) Reset()

func (*QueryCurrencyRequest) Size

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

func (*QueryCurrencyRequest) String

func (m *QueryCurrencyRequest) String() string

func (*QueryCurrencyRequest) Unmarshal

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

func (*QueryCurrencyRequest) XXX_DiscardUnknown

func (m *QueryCurrencyRequest) XXX_DiscardUnknown()

func (*QueryCurrencyRequest) XXX_Marshal

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

func (*QueryCurrencyRequest) XXX_Merge

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

func (*QueryCurrencyRequest) XXX_Size

func (m *QueryCurrencyRequest) XXX_Size() int

func (*QueryCurrencyRequest) XXX_Unmarshal

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

type QueryCurrencyResponse

type QueryCurrencyResponse struct {
	// Currency defines a currency info
	Currency *Currency `protobuf:"bytes,1,opt,name=currency,proto3" json:"currency,omitempty"`
}

QueryCurrencyResponse is response type for the Query/Currency RPC method

func (*QueryCurrencyResponse) Descriptor

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

func (*QueryCurrencyResponse) GetCurrency

func (m *QueryCurrencyResponse) GetCurrency() *Currency

func (*QueryCurrencyResponse) Marshal

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

func (*QueryCurrencyResponse) MarshalTo

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

func (*QueryCurrencyResponse) MarshalToSizedBuffer

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

func (*QueryCurrencyResponse) ProtoMessage

func (*QueryCurrencyResponse) ProtoMessage()

func (*QueryCurrencyResponse) Reset

func (m *QueryCurrencyResponse) Reset()

func (*QueryCurrencyResponse) Size

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

func (*QueryCurrencyResponse) String

func (m *QueryCurrencyResponse) String() string

func (*QueryCurrencyResponse) Unmarshal

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

func (*QueryCurrencyResponse) XXX_DiscardUnknown

func (m *QueryCurrencyResponse) XXX_DiscardUnknown()

func (*QueryCurrencyResponse) XXX_Marshal

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

func (*QueryCurrencyResponse) XXX_Merge

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

func (*QueryCurrencyResponse) XXX_Size

func (m *QueryCurrencyResponse) XXX_Size() int

func (*QueryCurrencyResponse) XXX_Unmarshal

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

type QueryMaxRequest added in v0.2.7

type QueryMaxRequest struct {
}

QueryMaxRequest is request type for the Query/MaxAtoloSupply RPC method

func (*QueryMaxRequest) Descriptor added in v0.2.7

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

func (*QueryMaxRequest) Marshal added in v0.2.7

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

func (*QueryMaxRequest) MarshalTo added in v0.2.7

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

func (*QueryMaxRequest) MarshalToSizedBuffer added in v0.2.7

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

func (*QueryMaxRequest) ProtoMessage added in v0.2.7

func (*QueryMaxRequest) ProtoMessage()

func (*QueryMaxRequest) Reset added in v0.2.7

func (m *QueryMaxRequest) Reset()

func (*QueryMaxRequest) Size added in v0.2.7

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

func (*QueryMaxRequest) String added in v0.2.7

func (m *QueryMaxRequest) String() string

func (*QueryMaxRequest) Unmarshal added in v0.2.7

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

func (*QueryMaxRequest) XXX_DiscardUnknown added in v0.2.7

func (m *QueryMaxRequest) XXX_DiscardUnknown()

func (*QueryMaxRequest) XXX_Marshal added in v0.2.7

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

func (*QueryMaxRequest) XXX_Merge added in v0.2.7

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

func (*QueryMaxRequest) XXX_Size added in v0.2.7

func (m *QueryMaxRequest) XXX_Size() int

func (*QueryMaxRequest) XXX_Unmarshal added in v0.2.7

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

type QueryMaxResponse added in v0.2.7

type QueryMaxResponse struct {
	// params defines maximum mintable amount of uatolo
	MaxAtoloSupply MaxAtoloSupply `protobuf:"bytes,1,opt,name=max_atolo_supply,json=maxAtoloSupply,proto3" json:"max_atolo_supply"`
}

QueryMaxResponse is response type for the Query/MaxAtoloSupply RPC method

func (*QueryMaxResponse) Descriptor added in v0.2.7

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

func (*QueryMaxResponse) GetMaxAtoloSupply added in v0.2.7

func (m *QueryMaxResponse) GetMaxAtoloSupply() MaxAtoloSupply

func (*QueryMaxResponse) Marshal added in v0.2.7

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

func (*QueryMaxResponse) MarshalTo added in v0.2.7

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

func (*QueryMaxResponse) MarshalToSizedBuffer added in v0.2.7

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

func (*QueryMaxResponse) ProtoMessage added in v0.2.7

func (*QueryMaxResponse) ProtoMessage()

func (*QueryMaxResponse) Reset added in v0.2.7

func (m *QueryMaxResponse) Reset()

func (*QueryMaxResponse) Size added in v0.2.7

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

func (*QueryMaxResponse) String added in v0.2.7

func (m *QueryMaxResponse) String() string

func (*QueryMaxResponse) Unmarshal added in v0.2.7

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

func (*QueryMaxResponse) XXX_DiscardUnknown added in v0.2.7

func (m *QueryMaxResponse) XXX_DiscardUnknown()

func (*QueryMaxResponse) XXX_Marshal added in v0.2.7

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

func (*QueryMaxResponse) XXX_Merge added in v0.2.7

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

func (*QueryMaxResponse) XXX_Size added in v0.2.7

func (m *QueryMaxResponse) XXX_Size() int

func (*QueryMaxResponse) XXX_Unmarshal added in v0.2.7

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

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

QueryParamsResponse is response type for the Query/Params RPC method

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Currencies queries all supported currency denom list
	Currencies(context.Context, *QueryCurrenciesRequest) (*QueryCurrenciesResponse, error)
	// Currency queries a currency info
	Currency(context.Context, *QueryCurrencyRequest) (*QueryCurrencyResponse, error)
	// Max queries maximum mintable amount of uatolo
	MaxAtoloSupply(context.Context, *QueryMaxRequest) (*QueryMaxResponse, error)
	// Params queries parameters of treasury
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type Sequence

type Sequence struct {
	// number is the currency sequence number of current state
	Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty" yaml:"number"`
}

Sequence

func NewSequence

func NewSequence(number int64) Sequence

NewSequence creates new sequence

func (*Sequence) Descriptor

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

func (*Sequence) GetNumber

func (m *Sequence) GetNumber() int64

func (*Sequence) Marshal

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

func (*Sequence) MarshalTo

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

func (*Sequence) MarshalToSizedBuffer

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

func (*Sequence) ProtoMessage

func (*Sequence) ProtoMessage()

func (*Sequence) Reset

func (m *Sequence) Reset()

func (*Sequence) Size

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

func (*Sequence) String

func (m *Sequence) String() string

func (*Sequence) Unmarshal

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

func (*Sequence) XXX_DiscardUnknown

func (m *Sequence) XXX_DiscardUnknown()

func (*Sequence) XXX_Marshal

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

func (*Sequence) XXX_Merge

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

func (*Sequence) XXX_Size

func (m *Sequence) XXX_Size() int

func (*Sequence) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Burn

func (*UnimplementedMsgServer) Mint

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Currencies

func (*UnimplementedQueryServer) Currency

func (*UnimplementedQueryServer) MaxAtoloSupply added in v0.2.7

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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