types

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the module name constant used in many places
	ModuleName = "ucdao"

	// ModuleOldName is the module old name constant used for store migration
	ModuleOldName = "dao"

	// StoreKey is the store key string for distribution
	StoreKey = ModuleName

	// RouterKey is the message route for distribution
	RouterKey = ModuleName
)
View Source
const (
	TypeMsgFund              = "fund_dao"
	TypeMsgTransferOwnership = "transfer_ownership"
)

Variables

View Source
var (
	ErrInvalidKey     = sdkerrors.Register(ModuleName, 1, "invalid key")
	ErrModuleDisabled = sdkerrors.Register(ModuleName, 2, "module is disabled")
	ErrInvalidDenom   = sdkerrors.Register(ModuleName, 3, "invalid denom")
	ErrNotEligible    = sdkerrors.Register(ModuleName, 4, "not eligible")
)
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 (
	TotalBalanceKey = []byte{0x00} // key for global dao state

	// BalancesPrefix is the prefix for the account balances store. We use a byte
	// (instead of `[]byte("balances")` to save some disk space).
	BalancesPrefix     = []byte{0x01}
	DenomAddressPrefix = []byte{0x02}

	ParamsKey = []byte{0x03} // key for dao module params
)
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 (
	ErrInvalidLengthUcdao        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUcdao          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupUcdao = fmt.Errorf("proto: unexpected end of group")
)
View Source
var CollateralValueType_name = map[int32]string{
	0: "COLLATERAL_VALUE_TYPE_UNSPECIFIED",
	1: "COLLATERAL_VALUE_TYPE_STRICT",
	2: "COLLATERAL_VALUE_TYPE_MASK",
}
View Source
var CollateralValueType_value = map[string]int32{
	"COLLATERAL_VALUE_TYPE_UNSPECIFIED": 0,
	"COLLATERAL_VALUE_TYPE_STRICT":      1,
	"COLLATERAL_VALUE_TYPE_MASK":        2,
}
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func AddressAndDenomFromBalancesStore

func AddressAndDenomFromBalancesStore(key []byte) (sdk.AccAddress, string, error)

AddressAndDenomFromBalancesStore returns an account address and denom from a balances prefix store. The key must not contain the prefix BalancesPrefix as the prefix store iterator discards the actual prefix.

If invalid key is passed, AddressAndDenomFromBalancesStore returns ErrInvalidKey.

func CreateAccountBalancesPrefix

func CreateAccountBalancesPrefix(addr []byte) []byte

CreateAccountBalancesPrefix creates the prefix for an account's balances.

func CreateDenomAddressPrefix

func CreateDenomAddressPrefix(denom string) []byte

CreateDenomAddressPrefix creates a prefix for a reverse index of denomination to account balance for that denomination.

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the interfaces types with the Interface Registry.

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers all the necessary types and interfaces for the dao module.

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 {
	NewAccount(sdk.Context, types.AccountI) types.AccountI
	NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) types.AccountI

	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
	GetAllAccounts(ctx sdk.Context) []types.AccountI
	HasAccount(ctx sdk.Context, addr sdk.AccAddress) bool
	SetAccount(ctx sdk.Context, acc types.AccountI)

	IterateAccounts(ctx sdk.Context, process func(types.AccountI) bool)

	ValidatePermissions(macc types.ModuleAccountI) error

	GetModuleAddress(moduleName string) sdk.AccAddress
	GetModuleAddressAndPermissions(moduleName string) (addr sdk.AccAddress, permissions []string)
	GetModuleAccountAndPermissions(ctx sdk.Context, moduleName string) (types.ModuleAccountI, []string)
	GetModuleAccount(ctx sdk.Context, moduleName string) types.ModuleAccountI
	SetModuleAccount(ctx sdk.Context, macc types.ModuleAccountI)
	GetModulePermissions() map[string]types.PermissionsForAddress
}

AccountKeeper defines the account contract that must be fulfilled when creating a x/bank keeper.

type AllowedCollateral

type AllowedCollateral struct {
	// value is the allowed collateral value.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// type is the allowed collateral value type.
	Type CollateralValueType `protobuf:"varint,2,opt,name=type,proto3,enum=haqq.ucdao.v1.CollateralValueType" json:"type,omitempty"`
}

func (*AllowedCollateral) Descriptor

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

func (*AllowedCollateral) GetType

func (*AllowedCollateral) GetValue

func (m *AllowedCollateral) GetValue() string

func (*AllowedCollateral) Marshal

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

func (*AllowedCollateral) MarshalTo

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

func (*AllowedCollateral) MarshalToSizedBuffer

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

func (*AllowedCollateral) ProtoMessage

func (*AllowedCollateral) ProtoMessage()

func (*AllowedCollateral) Reset

func (m *AllowedCollateral) Reset()

func (*AllowedCollateral) Size

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

func (*AllowedCollateral) String

func (m *AllowedCollateral) String() string

func (*AllowedCollateral) Unmarshal

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

func (*AllowedCollateral) XXX_DiscardUnknown

func (m *AllowedCollateral) XXX_DiscardUnknown()

func (*AllowedCollateral) XXX_Marshal

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

func (*AllowedCollateral) XXX_Merge

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

func (*AllowedCollateral) XXX_Size

func (m *AllowedCollateral) XXX_Size() int

func (*AllowedCollateral) XXX_Unmarshal

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

type Balance

type Balance struct {
	// address is the address of the balance holder.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// coins defines the different coins this balance holds.
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}

Balance defines an account address and balance pair used in the bank module's genesis state.

func SanitizeGenesisBalances

func SanitizeGenesisBalances(balances []Balance) []Balance

SanitizeGenesisBalances sorts addresses and coin sets.

func (*Balance) Descriptor

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

func (Balance) GetAddress

func (b Balance) GetAddress() sdk.AccAddress

GetAddress returns the account address of the Balance object.

func (Balance) GetCoins

func (b Balance) GetCoins() sdk.Coins

GetCoins returns the account coins of the Balance object.

func (*Balance) Marshal

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

func (*Balance) MarshalTo

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

func (*Balance) MarshalToSizedBuffer

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

func (*Balance) ProtoMessage

func (*Balance) ProtoMessage()

func (*Balance) Reset

func (m *Balance) Reset()

func (*Balance) Size

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

func (*Balance) String

func (m *Balance) String() string

func (*Balance) Unmarshal

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

func (Balance) Validate

func (b Balance) Validate() error

Validate checks for address and coins correctness.

func (*Balance) XXX_DiscardUnknown

func (m *Balance) XXX_DiscardUnknown()

func (*Balance) XXX_Marshal

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

func (*Balance) XXX_Merge

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

func (*Balance) XXX_Size

func (m *Balance) XXX_Size() int

func (*Balance) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, 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

	BlockedAddr(addr sdk.AccAddress) bool
}

BankKeeper defines the expected interface needed to retrieve account balances.

type CollateralValueType

type CollateralValueType int32

CollateralValueType defines the type of collateral value.

const (
	// COLLATERAL_VALUE_TYPE_UNSPECIFIED is the unspecified collateral value type.
	CollateralValueType_COLLATERAL_VALUE_TYPE_UNSPECIFIED CollateralValueType = 0
	// COLLATERAL_VALUE_TYPE_STRICT is the strict collateral value type.
	CollateralValueType_COLLATERAL_VALUE_TYPE_STRICT CollateralValueType = 1
	// COLLATERAL_VALUE_TYPE_MASK is the mask collateral value type.
	CollateralValueType_COLLATERAL_VALUE_TYPE_MASK CollateralValueType = 2
)

func (CollateralValueType) EnumDescriptor

func (CollateralValueType) EnumDescriptor() ([]byte, []int)

func (CollateralValueType) String

func (x CollateralValueType) String() string

type GenesisBalancesIterator

type GenesisBalancesIterator struct{}

GenesisBalancesIterator implements genesis account iteration.

func (GenesisBalancesIterator) IterateGenesisBalances

func (GenesisBalancesIterator) IterateGenesisBalances(
	cdc codec.JSONCodec, appState map[string]json.RawMessage, cb func(exported.GenesisBalance) (stop bool),
)

IterateGenesisBalances iterates over all the genesis balances found in appGenesis and invokes a callback on each genesis account. If any call returns true, iteration stops.

type GenesisState

type GenesisState struct {
	// params defines all the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// balances is an array containing the balances of all the ucdao members' accounts.
	Balances []Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances"`
	// total_balance represents the total balance of the ucdao module. If it is left empty, then supply will be calculated based on the provided
	// balances. Otherwise, it will be used to validate that the sum of the balances equals this amount.
	TotalBalance github_com_cosmos_cosmos_sdk_types.Coins `` /* 141-byte string literal not displayed */
}

GenesisState defines the gov module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns a default dao module genesis state.

func GetGenesisStateFromAppState

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

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

func NewGenesisState

func NewGenesisState(params Params, balances []Balance, total sdk.Coins) *GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetBalances

func (m *GenesisState) GetBalances() []Balance

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetTotalBalance

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 validation of supply genesis data returning an error for any failed validation criteria.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// Fund defines a method to allow an account to directly fund the dao.
	Fund(ctx context.Context, in *MsgFund, opts ...grpc.CallOption) (*MsgFundResponse, error)
	// TransferOwnership defines a method to allow an account to transfer the ownership of shares to another account.
	TransferOwnership(ctx context.Context, in *MsgTransferOwnership, opts ...grpc.CallOption) (*MsgTransferOwnershipResponse, 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 MsgFund

type MsgFund struct {
	Amount    github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
	Depositor string                                   `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"`
}

MsgFund allows an account to directly fund the ucdao.

func NewMsgFund

func NewMsgFund(amount sdk.Coins, depositor sdk.AccAddress) *MsgFund

NewMsgFund returns a new MsgFund with a sender and a funding amount.

func (*MsgFund) Descriptor

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

func (MsgFund) GetSignBytes

func (msg MsgFund) GetSignBytes() []byte

GetSignBytes returns the raw bytes for a MsgFundCommunityPool message that the expected signer needs to sign.

func (MsgFund) GetSigners

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

GetSigners returns the signer addresses that are expected to sign the result of GetSignBytes.

func (*MsgFund) Marshal

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

func (*MsgFund) MarshalTo

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

func (*MsgFund) MarshalToSizedBuffer

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

func (*MsgFund) ProtoMessage

func (*MsgFund) ProtoMessage()

func (*MsgFund) Reset

func (m *MsgFund) Reset()

func (MsgFund) Route

func (msg MsgFund) Route() string

Route returns the MsgFundCommunityPool message route.

func (*MsgFund) Size

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

func (*MsgFund) String

func (m *MsgFund) String() string

func (MsgFund) Type

func (msg MsgFund) Type() string

Type returns the MsgFundCommunityPool message type.

func (*MsgFund) Unmarshal

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

func (MsgFund) ValidateBasic

func (msg MsgFund) ValidateBasic() error

ValidateBasic performs basic MsgFundCommunityPool message validation.

func (*MsgFund) XXX_DiscardUnknown

func (m *MsgFund) XXX_DiscardUnknown()

func (*MsgFund) XXX_Marshal

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

func (*MsgFund) XXX_Merge

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

func (*MsgFund) XXX_Size

func (m *MsgFund) XXX_Size() int

func (*MsgFund) XXX_Unmarshal

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

type MsgFundResponse

type MsgFundResponse struct {
}

MsgFundResponse defines the Msg/Fund response type.

func (*MsgFundResponse) Descriptor

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

func (*MsgFundResponse) Marshal

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

func (*MsgFundResponse) MarshalTo

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

func (*MsgFundResponse) MarshalToSizedBuffer

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

func (*MsgFundResponse) ProtoMessage

func (*MsgFundResponse) ProtoMessage()

func (*MsgFundResponse) Reset

func (m *MsgFundResponse) Reset()

func (*MsgFundResponse) Size

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

func (*MsgFundResponse) String

func (m *MsgFundResponse) String() string

func (*MsgFundResponse) Unmarshal

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

func (*MsgFundResponse) XXX_DiscardUnknown

func (m *MsgFundResponse) XXX_DiscardUnknown()

func (*MsgFundResponse) XXX_Marshal

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

func (*MsgFundResponse) XXX_Merge

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

func (*MsgFundResponse) XXX_Size

func (m *MsgFundResponse) XXX_Size() int

func (*MsgFundResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// Fund defines a method to allow an account to directly fund the dao.
	Fund(context.Context, *MsgFund) (*MsgFundResponse, error)
	// TransferOwnership defines a method to allow an account to transfer the ownership of shares to another account.
	TransferOwnership(context.Context, *MsgTransferOwnership) (*MsgTransferOwnershipResponse, error)
}

MsgServer is the server API for Msg service.

type MsgTransferOwnership

type MsgTransferOwnership struct {
	// owner is a current owner of the shares in ucdao.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// new_owner is a new owner of the shares in ucdao.
	NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"`
}

MsgTransferOwnership allows an account transfer the ownership of shares to another account.

func NewMsgTransferOwnership

func NewMsgTransferOwnership(owner, newOwner sdk.AccAddress) *MsgTransferOwnership

NewMsgTransferOwnership returns a new MsgTransferOwnership with an old and new owner addresses.

func (*MsgTransferOwnership) Descriptor

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

func (MsgTransferOwnership) GetSignBytes

func (msg MsgTransferOwnership) GetSignBytes() []byte

GetSignBytes returns the raw bytes for a MsgTransferOwnership message that the expected signer needs to sign.

func (MsgTransferOwnership) GetSigners

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

GetSigners returns the signer addresses that are expected to sign the result of GetSignBytes.

func (*MsgTransferOwnership) Marshal

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

func (*MsgTransferOwnership) MarshalTo

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

func (*MsgTransferOwnership) MarshalToSizedBuffer

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

func (*MsgTransferOwnership) ProtoMessage

func (*MsgTransferOwnership) ProtoMessage()

func (*MsgTransferOwnership) Reset

func (m *MsgTransferOwnership) Reset()

func (MsgTransferOwnership) Route

func (msg MsgTransferOwnership) Route() string

Route returns the MsgTransferOwnership message route.

func (*MsgTransferOwnership) Size

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

func (*MsgTransferOwnership) String

func (m *MsgTransferOwnership) String() string

func (MsgTransferOwnership) Type

func (msg MsgTransferOwnership) Type() string

Type returns the MsgTransferOwnership message type.

func (*MsgTransferOwnership) Unmarshal

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

func (MsgTransferOwnership) ValidateBasic

func (msg MsgTransferOwnership) ValidateBasic() error

ValidateBasic performs basic MsgTransferOwnership message validation.

func (*MsgTransferOwnership) XXX_DiscardUnknown

func (m *MsgTransferOwnership) XXX_DiscardUnknown()

func (*MsgTransferOwnership) XXX_Marshal

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

func (*MsgTransferOwnership) XXX_Merge

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

func (*MsgTransferOwnership) XXX_Size

func (m *MsgTransferOwnership) XXX_Size() int

func (*MsgTransferOwnership) XXX_Unmarshal

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

type MsgTransferOwnershipResponse

type MsgTransferOwnershipResponse struct {
}

MsgTransferOwnershipResponse defines the Msg/TransferOwnership response type.

func (*MsgTransferOwnershipResponse) Descriptor

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

func (*MsgTransferOwnershipResponse) Marshal

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

func (*MsgTransferOwnershipResponse) MarshalTo

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

func (*MsgTransferOwnershipResponse) MarshalToSizedBuffer

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

func (*MsgTransferOwnershipResponse) ProtoMessage

func (*MsgTransferOwnershipResponse) ProtoMessage()

func (*MsgTransferOwnershipResponse) Reset

func (m *MsgTransferOwnershipResponse) Reset()

func (*MsgTransferOwnershipResponse) Size

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

func (*MsgTransferOwnershipResponse) String

func (*MsgTransferOwnershipResponse) Unmarshal

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

func (*MsgTransferOwnershipResponse) XXX_DiscardUnknown

func (m *MsgTransferOwnershipResponse) XXX_DiscardUnknown()

func (*MsgTransferOwnershipResponse) XXX_Marshal

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

func (*MsgTransferOwnershipResponse) XXX_Merge

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

func (*MsgTransferOwnershipResponse) XXX_Size

func (m *MsgTransferOwnershipResponse) XXX_Size() int

func (*MsgTransferOwnershipResponse) XXX_Unmarshal

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

type Params

type Params struct {
	// enable_dao is the parameter to enable the module functionality.
	EnableDao bool `protobuf:"varint,1,opt,name=enable_dao,json=enableDao,proto3" json:"enable_dao,omitempty"`
	// allowed_collaterals is the allowed collateral values.
	AllowedCollaterals []*AllowedCollateral `protobuf:"bytes,2,rep,name=allowed_collaterals,json=allowedCollaterals,proto3" json:"allowed_collaterals,omitempty"`
}

Params defines the parameters for the dao module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns default distribution parameters

func (*Params) Descriptor

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

func (*Params) GetAllowedCollaterals

func (m *Params) GetAllowedCollaterals() []*AllowedCollateral

func (*Params) GetEnableDao

func (m *Params) GetEnableDao() bool

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

func (*Params) Unmarshal

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

func (Params) ValidateBasic

func (p Params) ValidateBasic() error

ValidateBasic performs basic validation on distribution parameters.

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 QueryAllBalancesRequest

type QueryAllBalancesRequest struct {
	// address is the address to query balances for.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryBalanceRequest is the request type for the Query/AllBalances RPC method.

func NewQueryAllBalancesRequest

func NewQueryAllBalancesRequest(addr sdk.AccAddress, req *query.PageRequest) *QueryAllBalancesRequest

NewQueryAllBalancesRequest creates a new instance of QueryAllBalancesRequest.

func (*QueryAllBalancesRequest) Descriptor

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

func (*QueryAllBalancesRequest) Marshal

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

func (*QueryAllBalancesRequest) MarshalTo

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

func (*QueryAllBalancesRequest) MarshalToSizedBuffer

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

func (*QueryAllBalancesRequest) ProtoMessage

func (*QueryAllBalancesRequest) ProtoMessage()

func (*QueryAllBalancesRequest) Reset

func (m *QueryAllBalancesRequest) Reset()

func (*QueryAllBalancesRequest) Size

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

func (*QueryAllBalancesRequest) String

func (m *QueryAllBalancesRequest) String() string

func (*QueryAllBalancesRequest) Unmarshal

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

func (*QueryAllBalancesRequest) XXX_DiscardUnknown

func (m *QueryAllBalancesRequest) XXX_DiscardUnknown()

func (*QueryAllBalancesRequest) XXX_Marshal

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

func (*QueryAllBalancesRequest) XXX_Merge

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

func (*QueryAllBalancesRequest) XXX_Size

func (m *QueryAllBalancesRequest) XXX_Size() int

func (*QueryAllBalancesRequest) XXX_Unmarshal

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

type QueryAllBalancesResponse

type QueryAllBalancesResponse struct {
	// balances is the balances of all the coins.
	Balances github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=balances,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balances"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method.

func (*QueryAllBalancesResponse) Descriptor

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

func (*QueryAllBalancesResponse) GetBalances

func (*QueryAllBalancesResponse) GetPagination

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

func (*QueryAllBalancesResponse) Marshal

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

func (*QueryAllBalancesResponse) MarshalTo

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

func (*QueryAllBalancesResponse) MarshalToSizedBuffer

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

func (*QueryAllBalancesResponse) ProtoMessage

func (*QueryAllBalancesResponse) ProtoMessage()

func (*QueryAllBalancesResponse) Reset

func (m *QueryAllBalancesResponse) Reset()

func (*QueryAllBalancesResponse) Size

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

func (*QueryAllBalancesResponse) String

func (m *QueryAllBalancesResponse) String() string

func (*QueryAllBalancesResponse) Unmarshal

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

func (*QueryAllBalancesResponse) XXX_DiscardUnknown

func (m *QueryAllBalancesResponse) XXX_DiscardUnknown()

func (*QueryAllBalancesResponse) XXX_Marshal

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

func (*QueryAllBalancesResponse) XXX_Merge

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

func (*QueryAllBalancesResponse) XXX_Size

func (m *QueryAllBalancesResponse) XXX_Size() int

func (*QueryAllBalancesResponse) XXX_Unmarshal

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

type QueryBalanceRequest

type QueryBalanceRequest struct {
	// address is the address to query balances for.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// denom is the coin denom to query balances for.
	Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
}

QueryBalanceRequest is the request type for the Query/Balance RPC method.

func NewQueryBalanceRequest

func NewQueryBalanceRequest(addr sdk.AccAddress, denom string) *QueryBalanceRequest

NewQueryBalanceRequest creates a new instance of QueryBalanceRequest.

func (*QueryBalanceRequest) Descriptor

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

func (*QueryBalanceRequest) Marshal

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

func (*QueryBalanceRequest) MarshalTo

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

func (*QueryBalanceRequest) MarshalToSizedBuffer

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

func (*QueryBalanceRequest) ProtoMessage

func (*QueryBalanceRequest) ProtoMessage()

func (*QueryBalanceRequest) Reset

func (m *QueryBalanceRequest) Reset()

func (*QueryBalanceRequest) Size

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

func (*QueryBalanceRequest) String

func (m *QueryBalanceRequest) String() string

func (*QueryBalanceRequest) Unmarshal

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

func (*QueryBalanceRequest) XXX_DiscardUnknown

func (m *QueryBalanceRequest) XXX_DiscardUnknown()

func (*QueryBalanceRequest) XXX_Marshal

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

func (*QueryBalanceRequest) XXX_Merge

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

func (*QueryBalanceRequest) XXX_Size

func (m *QueryBalanceRequest) XXX_Size() int

func (*QueryBalanceRequest) XXX_Unmarshal

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

type QueryBalanceResponse

type QueryBalanceResponse struct {
	// balance is the balance of the coin.
	Balance *types.Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
}

QueryBalanceResponse is the response type for the Query/Balance RPC method.

func (*QueryBalanceResponse) Descriptor

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

func (*QueryBalanceResponse) GetBalance

func (m *QueryBalanceResponse) GetBalance() *types.Coin

func (*QueryBalanceResponse) Marshal

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

func (*QueryBalanceResponse) MarshalTo

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

func (*QueryBalanceResponse) MarshalToSizedBuffer

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

func (*QueryBalanceResponse) ProtoMessage

func (*QueryBalanceResponse) ProtoMessage()

func (*QueryBalanceResponse) Reset

func (m *QueryBalanceResponse) Reset()

func (*QueryBalanceResponse) Size

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

func (*QueryBalanceResponse) String

func (m *QueryBalanceResponse) String() string

func (*QueryBalanceResponse) Unmarshal

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

func (*QueryBalanceResponse) XXX_DiscardUnknown

func (m *QueryBalanceResponse) XXX_DiscardUnknown()

func (*QueryBalanceResponse) XXX_Marshal

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

func (*QueryBalanceResponse) XXX_Merge

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

func (*QueryBalanceResponse) XXX_Size

func (m *QueryBalanceResponse) XXX_Size() int

func (*QueryBalanceResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Balance queries the balance of a single coin for a single account.
	Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error)
	// AllBalances queries the balance of all coins for a single account.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error)
	// TotalBalance queries the total balance of all coins locked in the module.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	TotalBalance(ctx context.Context, in *QueryTotalBalanceRequest, opts ...grpc.CallOption) (*QueryTotalBalanceResponse, error)
	// Params queries the parameters of x/ucdao module.
	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 QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest defines the request type for querying x/ucdao parameters.

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 Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse defines the response type for querying x/ucdao parameters.

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 {
	// Balance queries the balance of a single coin for a single account.
	Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error)
	// AllBalances queries the balance of all coins for a single account.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	AllBalances(context.Context, *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error)
	// TotalBalance queries the total balance of all coins locked in the module.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	TotalBalance(context.Context, *QueryTotalBalanceRequest) (*QueryTotalBalanceResponse, error)
	// Params queries the parameters of x/ucdao module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QueryTotalBalanceRequest

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

QueryTotalBalanceRequest is the request type for the Query/TotalBalance RPC method.

func (*QueryTotalBalanceRequest) Descriptor

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

func (*QueryTotalBalanceRequest) Marshal

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

func (*QueryTotalBalanceRequest) MarshalTo

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

func (*QueryTotalBalanceRequest) MarshalToSizedBuffer

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

func (*QueryTotalBalanceRequest) ProtoMessage

func (*QueryTotalBalanceRequest) ProtoMessage()

func (*QueryTotalBalanceRequest) Reset

func (m *QueryTotalBalanceRequest) Reset()

func (*QueryTotalBalanceRequest) Size

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

func (*QueryTotalBalanceRequest) String

func (m *QueryTotalBalanceRequest) String() string

func (*QueryTotalBalanceRequest) Unmarshal

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

func (*QueryTotalBalanceRequest) XXX_DiscardUnknown

func (m *QueryTotalBalanceRequest) XXX_DiscardUnknown()

func (*QueryTotalBalanceRequest) XXX_Marshal

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

func (*QueryTotalBalanceRequest) XXX_Merge

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

func (*QueryTotalBalanceRequest) XXX_Size

func (m *QueryTotalBalanceRequest) XXX_Size() int

func (*QueryTotalBalanceRequest) XXX_Unmarshal

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

type QueryTotalBalanceResponse

type QueryTotalBalanceResponse struct {
	// supply is the supply of the coins
	TotalBalance github_com_cosmos_cosmos_sdk_types.Coins `` /* 141-byte string literal not displayed */
	// pagination defines the pagination in the response.
	//
	// Since: cosmos-sdk 0.43
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryTotalBalanceResponse is the response type for the Query/TotalBalance RPC method

func (*QueryTotalBalanceResponse) Descriptor

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

func (*QueryTotalBalanceResponse) GetPagination

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

func (*QueryTotalBalanceResponse) GetTotalBalance

func (*QueryTotalBalanceResponse) Marshal

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

func (*QueryTotalBalanceResponse) MarshalTo

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

func (*QueryTotalBalanceResponse) MarshalToSizedBuffer

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

func (*QueryTotalBalanceResponse) ProtoMessage

func (*QueryTotalBalanceResponse) ProtoMessage()

func (*QueryTotalBalanceResponse) Reset

func (m *QueryTotalBalanceResponse) Reset()

func (*QueryTotalBalanceResponse) Size

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

func (*QueryTotalBalanceResponse) String

func (m *QueryTotalBalanceResponse) String() string

func (*QueryTotalBalanceResponse) Unmarshal

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

func (*QueryTotalBalanceResponse) XXX_DiscardUnknown

func (m *QueryTotalBalanceResponse) XXX_DiscardUnknown()

func (*QueryTotalBalanceResponse) XXX_Marshal

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

func (*QueryTotalBalanceResponse) XXX_Merge

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

func (*QueryTotalBalanceResponse) XXX_Size

func (m *QueryTotalBalanceResponse) XXX_Size() int

func (*QueryTotalBalanceResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Fund

func (*UnimplementedMsgServer) TransferOwnership

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllBalances

func (*UnimplementedQueryServer) Balance

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) TotalBalance

Jump to

Keyboard shortcuts

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