types

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	SCRDenom = "nscr" // 1 scr = 1e9 nscr
	SPDenom  = "nsp"  // 1 sp = 1e9 nsp
	GasDenom = "gas"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "scorum"

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

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName
)
View Source
const (
	ProposalTypeMint = "Mint"
)
View Source
const TypeMsgBurn = "burn"
View Source
const TypeMsgConvertSCR2SP = "convert_scr2sp"
View Source
const TypeMsgMintGas = "mint_gas"
View Source
const TypeMsgStopSPWithdrawal = "stop_sp_withdrawal"
View Source
const TypeMsgWithdrawSP = "withdraw_sp"

Variables

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 (
	KeySupervisors                       = []byte("Supervisors")
	KeyGasLimit                          = []byte("GasLimit")
	KeyGasAdjustCoefficient              = []byte("GasAdjustCoefficient")
	KeyGasUnconditionedAmount            = []byte("GasUnconditionedAmount")
	KeySPWithdrawalTotalPeriods          = []byte("SPWithdrawalTotalPeriods")
	KeySPWithdrawalPeriodDurationSeconds = []byte("SPWithdrawalPeriodDurationSeconds")
	KeyValidatorsRewardPoolAddress       = []byte("ValidatorsRewardPoolAddress")
	KeyValidatorsRewardPoolBlockReward   = []byte("ValidatorsRewardPoolBlockReward")
)
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 (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
	GetAccount(sdk.Context, sdk.AccAddress) types.AccountI
	HasAccount(ctx sdk.Context, addr sdk.AccAddress) bool

	GetModuleAccount(ctx sdk.Context, moduleName string) types.ModuleAccountI
}

type BankKeeper

type BankKeeper interface {
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error

	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	IterateAllBalances(ctx sdk.Context, f func(addr sdk.AccAddress, coin sdk.Coin) (stop bool))
}

type GenesisState

type GenesisState struct {
	Params              Params         `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	SpWithdrawals       []SPWithdrawal `protobuf:"bytes,2,rep,name=sp_withdrawals,json=spWithdrawals,proto3" json:"sp_withdrawals"`
	RestoreGasAddresses []string       `protobuf:"bytes,3,rep,name=restore_gas_addresses,json=restoreGasAddresses,proto3" json:"restore_gas_addresses,omitempty"`
}

GenesisState defines the scorum module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func GetGenesisStateFromAppState

func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) GenesisState

GetGenesisStateFromAppState returns x/scorum GenesisState given raw application genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetRestoreGasAddresses

func (m *GenesisState) GetRestoreGasAddresses() []string

func (*GenesisState) GetSpWithdrawals

func (m *GenesisState) GetSpWithdrawals() []SPWithdrawal

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MintProposal

type MintProposal 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"`
	Recipient   string     `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Amount      types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"`
}

MintProposal is a gov proposal for minting assets.

func NewMintProposal

func NewMintProposal(title, description string, recipient sdk.AccAddress, amount sdk.Coin) *MintProposal

NewMintProposal creates a new mint proposal.

func (*MintProposal) Descriptor

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

func (*MintProposal) GetAmount

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

func (*MintProposal) GetDescription

func (m *MintProposal) GetDescription() string

func (*MintProposal) GetRecipient

func (m *MintProposal) GetRecipient() string

func (*MintProposal) GetTitle

func (m *MintProposal) GetTitle() string

func (*MintProposal) Marshal

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

func (*MintProposal) MarshalTo

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

func (*MintProposal) MarshalToSizedBuffer

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

func (*MintProposal) ProposalRoute

func (cdp *MintProposal) ProposalRoute() string

func (*MintProposal) ProposalType

func (cdp *MintProposal) ProposalType() string

func (*MintProposal) ProtoMessage

func (*MintProposal) ProtoMessage()

func (*MintProposal) Reset

func (m *MintProposal) Reset()

func (*MintProposal) Size

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

func (*MintProposal) String

func (m *MintProposal) String() string

func (*MintProposal) Unmarshal

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

func (*MintProposal) ValidateBasic

func (cdp *MintProposal) ValidateBasic() error

func (*MintProposal) XXX_DiscardUnknown

func (m *MintProposal) XXX_DiscardUnknown()

func (*MintProposal) XXX_Marshal

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

func (*MintProposal) XXX_Merge

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

func (*MintProposal) XXX_Size

func (m *MintProposal) XXX_Size() int

func (*MintProposal) XXX_Unmarshal

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

type MsgBurn

type MsgBurn struct {
	Supervisor string     `protobuf:"bytes,1,opt,name=supervisor,proto3" json:"supervisor,omitempty"`
	Amount     types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

func NewMsgBurn

func NewMsgBurn(supervisor string, amount sdk.Coin) *MsgBurn

func (*MsgBurn) Descriptor

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

func (*MsgBurn) GetAmount

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

func (*MsgBurn) GetSignBytes

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

func (*MsgBurn) GetSigners

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

func (*MsgBurn) GetSupervisor

func (m *MsgBurn) GetSupervisor() string

func (*MsgBurn) Marshal

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

func (*MsgBurn) MarshalTo

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

func (*MsgBurn) MarshalToSizedBuffer

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

func (*MsgBurn) ProtoMessage

func (*MsgBurn) ProtoMessage()

func (*MsgBurn) Reset

func (m *MsgBurn) Reset()

func (*MsgBurn) Route

func (msg *MsgBurn) Route() string

func (*MsgBurn) Size

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

func (*MsgBurn) String

func (m *MsgBurn) String() string

func (*MsgBurn) Type

func (msg *MsgBurn) Type() string

func (*MsgBurn) Unmarshal

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

func (*MsgBurn) ValidateBasic

func (msg *MsgBurn) ValidateBasic() error

func (*MsgBurn) XXX_DiscardUnknown

func (m *MsgBurn) XXX_DiscardUnknown()

func (*MsgBurn) XXX_Marshal

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

func (*MsgBurn) XXX_Merge

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

func (*MsgBurn) XXX_Size

func (m *MsgBurn) XXX_Size() int

func (*MsgBurn) XXX_Unmarshal

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

type MsgBurnResponse

type MsgBurnResponse struct {
}

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 {
	ConvertSCR2SP(ctx context.Context, in *MsgConvertSCR2SP, opts ...grpc.CallOption) (*MsgConvertSCR2SPResponse, error)
	WithdrawSP(ctx context.Context, in *MsgWithdrawSP, opts ...grpc.CallOption) (*MsgWithdrawSPResponse, error)
	StopSPWithdrawal(ctx context.Context, in *MsgStopSPWithdrawal, opts ...grpc.CallOption) (*MsgStopSPWithdrawalResponse, error)
	Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error)
	MintGas(ctx context.Context, in *MsgMintGas, opts ...grpc.CallOption) (*MsgMintGasResponse, 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 MsgConvertSCR2SP

type MsgConvertSCR2SP struct {
	Owner  string         `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Amount types.IntProto `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

func NewMsgConvertSCR2SP

func NewMsgConvertSCR2SP(owner string, amount sdkmath.Int) *MsgConvertSCR2SP

func (*MsgConvertSCR2SP) Descriptor

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

func (*MsgConvertSCR2SP) GetAmount

func (m *MsgConvertSCR2SP) GetAmount() types.IntProto

func (*MsgConvertSCR2SP) GetOwner

func (m *MsgConvertSCR2SP) GetOwner() string

func (*MsgConvertSCR2SP) GetSignBytes

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

func (*MsgConvertSCR2SP) GetSigners

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

func (*MsgConvertSCR2SP) Marshal

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

func (*MsgConvertSCR2SP) MarshalTo

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

func (*MsgConvertSCR2SP) MarshalToSizedBuffer

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

func (*MsgConvertSCR2SP) ProtoMessage

func (*MsgConvertSCR2SP) ProtoMessage()

func (*MsgConvertSCR2SP) Reset

func (m *MsgConvertSCR2SP) Reset()

func (*MsgConvertSCR2SP) Route

func (msg *MsgConvertSCR2SP) Route() string

func (*MsgConvertSCR2SP) Size

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

func (*MsgConvertSCR2SP) String

func (m *MsgConvertSCR2SP) String() string

func (*MsgConvertSCR2SP) Type

func (msg *MsgConvertSCR2SP) Type() string

func (*MsgConvertSCR2SP) Unmarshal

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

func (*MsgConvertSCR2SP) ValidateBasic

func (msg *MsgConvertSCR2SP) ValidateBasic() error

func (*MsgConvertSCR2SP) XXX_DiscardUnknown

func (m *MsgConvertSCR2SP) XXX_DiscardUnknown()

func (*MsgConvertSCR2SP) XXX_Marshal

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

func (*MsgConvertSCR2SP) XXX_Merge

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

func (*MsgConvertSCR2SP) XXX_Size

func (m *MsgConvertSCR2SP) XXX_Size() int

func (*MsgConvertSCR2SP) XXX_Unmarshal

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

type MsgConvertSCR2SPResponse

type MsgConvertSCR2SPResponse struct {
}

func (*MsgConvertSCR2SPResponse) Descriptor

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

func (*MsgConvertSCR2SPResponse) Marshal

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

func (*MsgConvertSCR2SPResponse) MarshalTo

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

func (*MsgConvertSCR2SPResponse) MarshalToSizedBuffer

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

func (*MsgConvertSCR2SPResponse) ProtoMessage

func (*MsgConvertSCR2SPResponse) ProtoMessage()

func (*MsgConvertSCR2SPResponse) Reset

func (m *MsgConvertSCR2SPResponse) Reset()

func (*MsgConvertSCR2SPResponse) Size

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

func (*MsgConvertSCR2SPResponse) String

func (m *MsgConvertSCR2SPResponse) String() string

func (*MsgConvertSCR2SPResponse) Unmarshal

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

func (*MsgConvertSCR2SPResponse) XXX_DiscardUnknown

func (m *MsgConvertSCR2SPResponse) XXX_DiscardUnknown()

func (*MsgConvertSCR2SPResponse) XXX_Marshal

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

func (*MsgConvertSCR2SPResponse) XXX_Merge

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

func (*MsgConvertSCR2SPResponse) XXX_Size

func (m *MsgConvertSCR2SPResponse) XXX_Size() int

func (*MsgConvertSCR2SPResponse) XXX_Unmarshal

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

type MsgMintGas added in v0.0.8

type MsgMintGas struct {
	Supervisor string         `protobuf:"bytes,1,opt,name=supervisor,proto3" json:"supervisor,omitempty"`
	Address    string         `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Amount     types.IntProto `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

func NewMsgMintGas added in v0.0.8

func NewMsgMintGas(supervisor string, address string, amount math.Int) *MsgMintGas

func (*MsgMintGas) Descriptor added in v0.0.8

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

func (*MsgMintGas) GetAddress added in v0.0.8

func (m *MsgMintGas) GetAddress() string

func (*MsgMintGas) GetAmount added in v0.0.8

func (m *MsgMintGas) GetAmount() types.IntProto

func (*MsgMintGas) GetSignBytes added in v0.0.8

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

func (*MsgMintGas) GetSigners added in v0.0.8

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

func (*MsgMintGas) GetSupervisor added in v0.0.8

func (m *MsgMintGas) GetSupervisor() string

func (*MsgMintGas) Marshal added in v0.0.8

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

func (*MsgMintGas) MarshalTo added in v0.0.8

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

func (*MsgMintGas) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgMintGas) ProtoMessage added in v0.0.8

func (*MsgMintGas) ProtoMessage()

func (*MsgMintGas) Reset added in v0.0.8

func (m *MsgMintGas) Reset()

func (*MsgMintGas) Route added in v0.0.8

func (msg *MsgMintGas) Route() string

func (*MsgMintGas) Size added in v0.0.8

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

func (*MsgMintGas) String added in v0.0.8

func (m *MsgMintGas) String() string

func (*MsgMintGas) Type added in v0.0.8

func (msg *MsgMintGas) Type() string

func (*MsgMintGas) Unmarshal added in v0.0.8

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

func (*MsgMintGas) ValidateBasic added in v0.0.8

func (msg *MsgMintGas) ValidateBasic() error

func (*MsgMintGas) XXX_DiscardUnknown added in v0.0.8

func (m *MsgMintGas) XXX_DiscardUnknown()

func (*MsgMintGas) XXX_Marshal added in v0.0.8

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

func (*MsgMintGas) XXX_Merge added in v0.0.8

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

func (*MsgMintGas) XXX_Size added in v0.0.8

func (m *MsgMintGas) XXX_Size() int

func (*MsgMintGas) XXX_Unmarshal added in v0.0.8

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

type MsgMintGasResponse added in v0.0.8

type MsgMintGasResponse struct {
}

func (*MsgMintGasResponse) Descriptor added in v0.0.8

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

func (*MsgMintGasResponse) Marshal added in v0.0.8

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

func (*MsgMintGasResponse) MarshalTo added in v0.0.8

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

func (*MsgMintGasResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*MsgMintGasResponse) ProtoMessage added in v0.0.8

func (*MsgMintGasResponse) ProtoMessage()

func (*MsgMintGasResponse) Reset added in v0.0.8

func (m *MsgMintGasResponse) Reset()

func (*MsgMintGasResponse) Size added in v0.0.8

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

func (*MsgMintGasResponse) String added in v0.0.8

func (m *MsgMintGasResponse) String() string

func (*MsgMintGasResponse) Unmarshal added in v0.0.8

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

func (*MsgMintGasResponse) XXX_DiscardUnknown added in v0.0.8

func (m *MsgMintGasResponse) XXX_DiscardUnknown()

func (*MsgMintGasResponse) XXX_Marshal added in v0.0.8

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

func (*MsgMintGasResponse) XXX_Merge added in v0.0.8

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

func (*MsgMintGasResponse) XXX_Size added in v0.0.8

func (m *MsgMintGasResponse) XXX_Size() int

func (*MsgMintGasResponse) XXX_Unmarshal added in v0.0.8

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

type MsgServer

MsgServer is the server API for Msg service.

type MsgStopSPWithdrawal

type MsgStopSPWithdrawal struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Id    string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
}

func NewMsgStopSPWithdrawal

func NewMsgStopSPWithdrawal(owner, id string) *MsgStopSPWithdrawal

func (*MsgStopSPWithdrawal) Descriptor

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

func (*MsgStopSPWithdrawal) GetId

func (m *MsgStopSPWithdrawal) GetId() string

func (*MsgStopSPWithdrawal) GetOwner

func (m *MsgStopSPWithdrawal) GetOwner() string

func (*MsgStopSPWithdrawal) GetSignBytes

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

func (*MsgStopSPWithdrawal) GetSigners

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

func (*MsgStopSPWithdrawal) Marshal

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

func (*MsgStopSPWithdrawal) MarshalTo

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

func (*MsgStopSPWithdrawal) MarshalToSizedBuffer

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

func (*MsgStopSPWithdrawal) ProtoMessage

func (*MsgStopSPWithdrawal) ProtoMessage()

func (*MsgStopSPWithdrawal) Reset

func (m *MsgStopSPWithdrawal) Reset()

func (*MsgStopSPWithdrawal) Route

func (msg *MsgStopSPWithdrawal) Route() string

func (*MsgStopSPWithdrawal) Size

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

func (*MsgStopSPWithdrawal) String

func (m *MsgStopSPWithdrawal) String() string

func (*MsgStopSPWithdrawal) Type

func (msg *MsgStopSPWithdrawal) Type() string

func (*MsgStopSPWithdrawal) Unmarshal

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

func (*MsgStopSPWithdrawal) ValidateBasic

func (msg *MsgStopSPWithdrawal) ValidateBasic() error

func (*MsgStopSPWithdrawal) XXX_DiscardUnknown

func (m *MsgStopSPWithdrawal) XXX_DiscardUnknown()

func (*MsgStopSPWithdrawal) XXX_Marshal

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

func (*MsgStopSPWithdrawal) XXX_Merge

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

func (*MsgStopSPWithdrawal) XXX_Size

func (m *MsgStopSPWithdrawal) XXX_Size() int

func (*MsgStopSPWithdrawal) XXX_Unmarshal

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

type MsgStopSPWithdrawalResponse

type MsgStopSPWithdrawalResponse struct {
}

func (*MsgStopSPWithdrawalResponse) Descriptor

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

func (*MsgStopSPWithdrawalResponse) Marshal

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

func (*MsgStopSPWithdrawalResponse) MarshalTo

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

func (*MsgStopSPWithdrawalResponse) MarshalToSizedBuffer

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

func (*MsgStopSPWithdrawalResponse) ProtoMessage

func (*MsgStopSPWithdrawalResponse) ProtoMessage()

func (*MsgStopSPWithdrawalResponse) Reset

func (m *MsgStopSPWithdrawalResponse) Reset()

func (*MsgStopSPWithdrawalResponse) Size

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

func (*MsgStopSPWithdrawalResponse) String

func (m *MsgStopSPWithdrawalResponse) String() string

func (*MsgStopSPWithdrawalResponse) Unmarshal

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

func (*MsgStopSPWithdrawalResponse) XXX_DiscardUnknown

func (m *MsgStopSPWithdrawalResponse) XXX_DiscardUnknown()

func (*MsgStopSPWithdrawalResponse) XXX_Marshal

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

func (*MsgStopSPWithdrawalResponse) XXX_Merge

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

func (*MsgStopSPWithdrawalResponse) XXX_Size

func (m *MsgStopSPWithdrawalResponse) XXX_Size() int

func (*MsgStopSPWithdrawalResponse) XXX_Unmarshal

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

type MsgWithdrawSP

type MsgWithdrawSP struct {
	Owner     string         `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Recipient string         `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Amount    types.IntProto `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

func NewMsgWithdrawSP

func NewMsgWithdrawSP(owner, recipient string, amount sdkmath.Int) *MsgWithdrawSP

func (*MsgWithdrawSP) Descriptor

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

func (*MsgWithdrawSP) GetAmount

func (m *MsgWithdrawSP) GetAmount() types.IntProto

func (*MsgWithdrawSP) GetOwner

func (m *MsgWithdrawSP) GetOwner() string

func (*MsgWithdrawSP) GetRecipient

func (m *MsgWithdrawSP) GetRecipient() string

func (*MsgWithdrawSP) GetSignBytes

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

func (*MsgWithdrawSP) GetSigners

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

func (*MsgWithdrawSP) Marshal

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

func (*MsgWithdrawSP) MarshalTo

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

func (*MsgWithdrawSP) MarshalToSizedBuffer

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

func (*MsgWithdrawSP) ProtoMessage

func (*MsgWithdrawSP) ProtoMessage()

func (*MsgWithdrawSP) Reset

func (m *MsgWithdrawSP) Reset()

func (*MsgWithdrawSP) Route

func (msg *MsgWithdrawSP) Route() string

func (*MsgWithdrawSP) Size

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

func (*MsgWithdrawSP) String

func (m *MsgWithdrawSP) String() string

func (*MsgWithdrawSP) Type

func (msg *MsgWithdrawSP) Type() string

func (*MsgWithdrawSP) Unmarshal

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

func (*MsgWithdrawSP) ValidateBasic

func (msg *MsgWithdrawSP) ValidateBasic() error

func (*MsgWithdrawSP) XXX_DiscardUnknown

func (m *MsgWithdrawSP) XXX_DiscardUnknown()

func (*MsgWithdrawSP) XXX_Marshal

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

func (*MsgWithdrawSP) XXX_Merge

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

func (*MsgWithdrawSP) XXX_Size

func (m *MsgWithdrawSP) XXX_Size() int

func (*MsgWithdrawSP) XXX_Unmarshal

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

type MsgWithdrawSPResponse

type MsgWithdrawSPResponse struct {
	WithdrawalId string `protobuf:"bytes,1,opt,name=withdrawal_id,json=withdrawalId,proto3" json:"withdrawal_id,omitempty"`
}

func (*MsgWithdrawSPResponse) Descriptor

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

func (*MsgWithdrawSPResponse) GetWithdrawalId

func (m *MsgWithdrawSPResponse) GetWithdrawalId() string

func (*MsgWithdrawSPResponse) Marshal

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

func (*MsgWithdrawSPResponse) MarshalTo

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

func (*MsgWithdrawSPResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawSPResponse) ProtoMessage

func (*MsgWithdrawSPResponse) ProtoMessage()

func (*MsgWithdrawSPResponse) Reset

func (m *MsgWithdrawSPResponse) Reset()

func (*MsgWithdrawSPResponse) Size

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

func (*MsgWithdrawSPResponse) String

func (m *MsgWithdrawSPResponse) String() string

func (*MsgWithdrawSPResponse) Unmarshal

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

func (*MsgWithdrawSPResponse) XXX_DiscardUnknown

func (m *MsgWithdrawSPResponse) XXX_DiscardUnknown()

func (*MsgWithdrawSPResponse) XXX_Marshal

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

func (*MsgWithdrawSPResponse) XXX_Merge

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

func (*MsgWithdrawSPResponse) XXX_Size

func (m *MsgWithdrawSPResponse) XXX_Size() int

func (*MsgWithdrawSPResponse) XXX_Unmarshal

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

type Params

type Params struct {
	Supervisors                       []string               `protobuf:"bytes,1,rep,name=supervisors,proto3" json:"supervisors,omitempty"`
	GasLimit                          types.IntProto         `protobuf:"bytes,2,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit"`
	GasUnconditionedAmount            types.IntProto         `protobuf:"bytes,3,opt,name=gas_unconditioned_amount,json=gasUnconditionedAmount,proto3" json:"gas_unconditioned_amount"`
	GasAdjustCoefficient              types.DecProto         `protobuf:"bytes,4,opt,name=gas_adjust_coefficient,json=gasAdjustCoefficient,proto3" json:"gas_adjust_coefficient"`
	SpWithdrawalTotalPeriods          uint32                 `` /* 138-byte string literal not displayed */
	SpWithdrawalPeriodDurationSeconds uint32                 `` /* 167-byte string literal not displayed */
	ValidatorsReward                  ValidatorsRewardParams `protobuf:"bytes,7,opt,name=validators_reward,json=validatorsReward,proto3" json:"validators_reward"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(
	supervisors []string,
	gasLimit sdkmath.Int,
	gasUnconditionedAmount sdkmath.Int,
	gasAdjustCoefficient sdk.Dec,
	spWithdrawalTotalPeriods uint,
	spWithdrawalPeriodDuration uint,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetGasAdjustCoefficient

func (m *Params) GetGasAdjustCoefficient() types.DecProto

func (*Params) GetGasLimit

func (m *Params) GetGasLimit() types.IntProto

func (*Params) GetGasUnconditionedAmount

func (m *Params) GetGasUnconditionedAmount() types.IntProto

func (*Params) GetSpWithdrawalPeriodDurationSeconds

func (m *Params) GetSpWithdrawalPeriodDurationSeconds() uint32

func (*Params) GetSpWithdrawalTotalPeriods

func (m *Params) GetSpWithdrawalTotalPeriods() uint32

func (*Params) GetSupervisors

func (m *Params) GetSupervisors() []string

func (*Params) GetValidatorsReward added in v0.0.3

func (m *Params) GetValidatorsReward() ValidatorsRewardParams

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	ListWithdrawals(ctx context.Context, in *QueryWithdrawalsRequest, opts ...grpc.CallOption) (*QueryWithdrawalsResponse, error)
}

QueryClient is the client API for Query service.

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

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

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

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	ListWithdrawals(context.Context, *QueryWithdrawalsRequest) (*QueryWithdrawalsResponse, error)
}

QueryServer is the server API for Query service.

type QueryWithdrawalsRequest

type QueryWithdrawalsRequest struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
}

func (*QueryWithdrawalsRequest) Descriptor

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

func (*QueryWithdrawalsRequest) GetOwner

func (m *QueryWithdrawalsRequest) GetOwner() string

func (*QueryWithdrawalsRequest) Marshal

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

func (*QueryWithdrawalsRequest) MarshalTo

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

func (*QueryWithdrawalsRequest) MarshalToSizedBuffer

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

func (*QueryWithdrawalsRequest) ProtoMessage

func (*QueryWithdrawalsRequest) ProtoMessage()

func (*QueryWithdrawalsRequest) Reset

func (m *QueryWithdrawalsRequest) Reset()

func (*QueryWithdrawalsRequest) Size

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

func (*QueryWithdrawalsRequest) String

func (m *QueryWithdrawalsRequest) String() string

func (*QueryWithdrawalsRequest) Unmarshal

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

func (*QueryWithdrawalsRequest) XXX_DiscardUnknown

func (m *QueryWithdrawalsRequest) XXX_DiscardUnknown()

func (*QueryWithdrawalsRequest) XXX_Marshal

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

func (*QueryWithdrawalsRequest) XXX_Merge

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

func (*QueryWithdrawalsRequest) XXX_Size

func (m *QueryWithdrawalsRequest) XXX_Size() int

func (*QueryWithdrawalsRequest) XXX_Unmarshal

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

type QueryWithdrawalsResponse

type QueryWithdrawalsResponse struct {
	Withdrawals []SPWithdrawal `protobuf:"bytes,1,rep,name=withdrawals,proto3" json:"withdrawals"`
}

func (*QueryWithdrawalsResponse) Descriptor

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

func (*QueryWithdrawalsResponse) GetWithdrawals

func (m *QueryWithdrawalsResponse) GetWithdrawals() []SPWithdrawal

func (*QueryWithdrawalsResponse) Marshal

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

func (*QueryWithdrawalsResponse) MarshalTo

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

func (*QueryWithdrawalsResponse) MarshalToSizedBuffer

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

func (*QueryWithdrawalsResponse) ProtoMessage

func (*QueryWithdrawalsResponse) ProtoMessage()

func (*QueryWithdrawalsResponse) Reset

func (m *QueryWithdrawalsResponse) Reset()

func (*QueryWithdrawalsResponse) Size

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

func (*QueryWithdrawalsResponse) String

func (m *QueryWithdrawalsResponse) String() string

func (*QueryWithdrawalsResponse) Unmarshal

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

func (*QueryWithdrawalsResponse) XXX_DiscardUnknown

func (m *QueryWithdrawalsResponse) XXX_DiscardUnknown()

func (*QueryWithdrawalsResponse) XXX_Marshal

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

func (*QueryWithdrawalsResponse) XXX_Merge

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

func (*QueryWithdrawalsResponse) XXX_Size

func (m *QueryWithdrawalsResponse) XXX_Size() int

func (*QueryWithdrawalsResponse) XXX_Unmarshal

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

type SPWithdrawal

type SPWithdrawal struct {
	Id                      string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	From                    string         `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To                      string         `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	Total                   types.IntProto `protobuf:"bytes,4,opt,name=total,proto3" json:"total"`
	PeriodDurationInSeconds uint32         `` /* 135-byte string literal not displayed */
	TotalPeriods            uint32         `protobuf:"varint,6,opt,name=total_periods,json=totalPeriods,proto3" json:"total_periods,omitempty"`
	ProcessedPeriod         uint32         `protobuf:"varint,7,opt,name=processed_period,json=processedPeriod,proto3" json:"processed_period,omitempty"`
	IsActive                bool           `protobuf:"varint,8,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	CreatedAt               uint64         `protobuf:"varint,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
}

func (SPWithdrawal) CurrentPeriod

func (w SPWithdrawal) CurrentPeriod(t uint64) uint32

func (*SPWithdrawal) Descriptor

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

func (*SPWithdrawal) GetCreatedAt

func (m *SPWithdrawal) GetCreatedAt() uint64

func (*SPWithdrawal) GetFrom

func (m *SPWithdrawal) GetFrom() string

func (*SPWithdrawal) GetId

func (m *SPWithdrawal) GetId() string

func (*SPWithdrawal) GetIsActive

func (m *SPWithdrawal) GetIsActive() bool

func (*SPWithdrawal) GetPeriodDurationInSeconds

func (m *SPWithdrawal) GetPeriodDurationInSeconds() uint32

func (*SPWithdrawal) GetProcessedPeriod

func (m *SPWithdrawal) GetProcessedPeriod() uint32

func (*SPWithdrawal) GetTo

func (m *SPWithdrawal) GetTo() string

func (*SPWithdrawal) GetTotal

func (m *SPWithdrawal) GetTotal() types.IntProto

func (*SPWithdrawal) GetTotalPeriods

func (m *SPWithdrawal) GetTotalPeriods() uint32

func (*SPWithdrawal) Marshal

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

func (*SPWithdrawal) MarshalTo

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

func (*SPWithdrawal) MarshalToSizedBuffer

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

func (SPWithdrawal) PeriodTime

func (w SPWithdrawal) PeriodTime(period uint32) uint64

func (*SPWithdrawal) ProtoMessage

func (*SPWithdrawal) ProtoMessage()

func (*SPWithdrawal) Reset

func (m *SPWithdrawal) Reset()

func (*SPWithdrawal) Size

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

func (*SPWithdrawal) String

func (m *SPWithdrawal) String() string

func (SPWithdrawal) ToWithdraw

func (w SPWithdrawal) ToWithdraw(t uint64) sdkmath.Int

func (*SPWithdrawal) Unmarshal

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

func (SPWithdrawal) WithdrownByPeriod added in v0.0.2

func (w SPWithdrawal) WithdrownByPeriod(p uint32) sdkmath.Int

func (*SPWithdrawal) XXX_DiscardUnknown

func (m *SPWithdrawal) XXX_DiscardUnknown()

func (*SPWithdrawal) XXX_Marshal

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

func (*SPWithdrawal) XXX_Merge

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

func (*SPWithdrawal) XXX_Size

func (m *SPWithdrawal) XXX_Size() int

func (*SPWithdrawal) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Burn

func (*UnimplementedMsgServer) ConvertSCR2SP

func (*UnimplementedMsgServer) MintGas added in v0.0.8

func (*UnimplementedMsgServer) StopSPWithdrawal

func (*UnimplementedMsgServer) WithdrawSP

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ListWithdrawals

func (*UnimplementedQueryServer) Params

type ValidatorsRewardParams added in v0.0.3

type ValidatorsRewardParams struct {
	PoolAddress string     `protobuf:"bytes,1,opt,name=pool_address,json=poolAddress,proto3" json:"pool_address,omitempty"`
	BlockReward types.Coin `protobuf:"bytes,2,opt,name=block_reward,json=blockReward,proto3" json:"block_reward"`
}

func (*ValidatorsRewardParams) Descriptor added in v0.0.3

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

func (*ValidatorsRewardParams) GetBlockReward added in v0.0.3

func (m *ValidatorsRewardParams) GetBlockReward() types.Coin

func (*ValidatorsRewardParams) GetPoolAddress added in v0.0.3

func (m *ValidatorsRewardParams) GetPoolAddress() string

func (*ValidatorsRewardParams) Marshal added in v0.0.3

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

func (*ValidatorsRewardParams) MarshalTo added in v0.0.3

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

func (*ValidatorsRewardParams) MarshalToSizedBuffer added in v0.0.3

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

func (*ValidatorsRewardParams) ProtoMessage added in v0.0.3

func (*ValidatorsRewardParams) ProtoMessage()

func (*ValidatorsRewardParams) Reset added in v0.0.3

func (m *ValidatorsRewardParams) Reset()

func (*ValidatorsRewardParams) Size added in v0.0.3

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

func (*ValidatorsRewardParams) String added in v0.0.3

func (m *ValidatorsRewardParams) String() string

func (*ValidatorsRewardParams) Unmarshal added in v0.0.3

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

func (*ValidatorsRewardParams) XXX_DiscardUnknown added in v0.0.3

func (m *ValidatorsRewardParams) XXX_DiscardUnknown()

func (*ValidatorsRewardParams) XXX_Marshal added in v0.0.3

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

func (*ValidatorsRewardParams) XXX_Merge added in v0.0.3

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

func (*ValidatorsRewardParams) XXX_Size added in v0.0.3

func (m *ValidatorsRewardParams) XXX_Size() int

func (*ValidatorsRewardParams) XXX_Unmarshal added in v0.0.3

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

Jump to

Keyboard shortcuts

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