types

package
v0.6.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	DclMaxMemoCharacters      uint64  = authtypes.DefaultMaxMemoCharacters
	DclTxSigLimit             uint64  = authtypes.DefaultTxSigLimit
	DclTxSizeCostPerByte      uint64  = 0 // gas is not needed in DCL
	DclSigVerifyCostED25519   uint64  = 0 // gas is not needed in DCL
	DclSigVerifyCostSecp256k1 uint64  = 0 // gas is not needed in DCL
	AccountApprovalPercent    float64 = 0.66
)

Default parameter values.

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

	// ModuleName defines the module name to use in user interactions.
	ModuleNameUser = "auth"

	// command name for the module.
	CmdName = ModuleNameUser

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

	// RouterKey is the message route for slashing.
	RouterKey = ModuleNameUser

	// QuerierRoute defines the module's query routing key.
	QuerierRoute = ModuleNameUser

	// MemStoreKey defines the in-memory store key.
	MemStoreKey = "mem_" + ModuleName
)
View Source
const (
	// AccountKeyPrefix is the prefix to retrieve all Account.
	AccountKeyPrefix = "Account/value/"
)
View Source
const (
	AccountStatKey = "AccountStat-value-"
)
View Source
const DefaultIndex uint64 = 1

TODO issue 99: do we need that DefaultIndex is the default capability global index.

View Source
const (
	// PendingAccountKeyPrefix is the prefix to retrieve all PendingAccount.
	PendingAccountKeyPrefix = "PendingAccount/value/"
)
View Source
const (
	// PendingAccountRevocationKeyPrefix is the prefix to retrieve all PendingAccountRevocation.
	PendingAccountRevocationKeyPrefix = "PendingAccountRevocation/value/"
)
View Source
const TypeMsgApproveAddAccount = "approve_add_account"
View Source
const TypeMsgApproveRevokeAccount = "approve_revoke_account"
View Source
const TypeMsgProposeAddAccount = "propose_add_account"
View Source
const TypeMsgProposeRevokeAccount = "propose_revoke_account"

Variables

View Source
var (
	ErrInvalidLengthAccount        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccount          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAccount = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthAccountStat        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccountStat          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAccountStat = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	AccountAlreadyExists                  = sdkerrors.Register(ModuleName, 101, "account already exists")
	AccountDoesNotExist                   = sdkerrors.Register(ModuleName, 102, "account not found")
	PendingAccountAlreadyExists           = sdkerrors.Register(ModuleName, 103, "pending account already exists")
	PendingAccountDoesNotExist            = sdkerrors.Register(ModuleName, 104, "pending account not found")
	PendingAccountRevocationAlreadyExists = sdkerrors.Register(ModuleName, 105, "pending account revocation already exists")
	PendingAccountRevocationDoesNotExist  = sdkerrors.Register(ModuleName, 106, "pending account revocation not found")
	MissingVendorIDForVendorAccount       = sdkerrors.Register(ModuleName, 107, "no Vendor ID provided")
	MissingRoles                          = sdkerrors.Register(ModuleName, 108, "no roles provided")
)

x/dclauth module sentinel errors.

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 (
	ErrInvalidLengthPendingAccount        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPendingAccount          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPendingAccount = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPendingAccountRevocation        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPendingAccountRevocation          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPendingAccountRevocation = 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")
)

Functions

func AccountKey

func AccountKey(
	address sdk.AccAddress,
) []byte

AccountKey returns the store key to retrieve a Account from the index fields.

func ErrAccountAlreadyExists

func ErrAccountAlreadyExists(address interface{}) error

func ErrAccountDoesNotExist

func ErrAccountDoesNotExist(address interface{}) error

func ErrMissingRoles

func ErrMissingRoles() error

func ErrMissingVendorIDForVendorAccount

func ErrMissingVendorIDForVendorAccount() error

func ErrPendingAccountAlreadyExists

func ErrPendingAccountAlreadyExists(address interface{}) error

func ErrPendingAccountDoesNotExist

func ErrPendingAccountDoesNotExist(address interface{}) error

func ErrPendingAccountRevocationAlreadyExists

func ErrPendingAccountRevocationAlreadyExists(address interface{}) error

func ErrPendingAccountRevocationDoesNotExist

func ErrPendingAccountRevocationDoesNotExist(address interface{}) error

func KeyPrefix

func KeyPrefix(p string) []byte

func PendingAccountKey

func PendingAccountKey(
	address sdk.AccAddress,
) []byte

PendingAccountKey returns the store key to retrieve a PendingAccount from the index fields.

func PendingAccountRevocationKey

func PendingAccountRevocationKey(
	address sdk.AccAddress,
) []byte

PendingAccountRevocationKey returns the store key to retrieve a PendingAccountRevocation from the index fields.

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 Account

type Account struct {
	*types.BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3,embedded=base_account" json:"base_account,omitempty"`
	// NOTE. we do not user AccountRoles casting here to preserve repeated form
	//       so protobuf takes care about repeated items in generated code,
	//       (but that might be not the final solution)
	Roles    []AccountRole `protobuf:"bytes,2,rep,name=roles,proto3,casttype=AccountRole" json:"roles,omitempty"`
	VendorID int32         `protobuf:"varint,3,opt,name=vendorID,proto3" json:"vendorID,omitempty"`
}

func NewAccount

func NewAccount(ba *authtypes.BaseAccount, roles AccountRoles, vendorID int32) *Account

NewAccount creates a new Account object.

func (*Account) Descriptor

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

func (Account) GetRoles

func (acc Account) GetRoles() []AccountRole

func (Account) GetVendorID

func (acc Account) GetVendorID() int32

func (Account) HasRole

func (acc Account) HasRole(targetRole AccountRole) bool

func (*Account) Marshal

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

func (*Account) MarshalTo

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

func (*Account) MarshalToSizedBuffer

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

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) Reset

func (m *Account) Reset()

func (*Account) Size

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

func (Account) String

func (acc Account) String() string

func (*Account) Unmarshal

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

func (Account) Validate

func (acc Account) Validate() error

Validate checks for errors on the vesting and module account parameters.

func (*Account) XXX_DiscardUnknown

func (m *Account) XXX_DiscardUnknown()

func (*Account) XXX_Marshal

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

func (*Account) XXX_Merge

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

func (*Account) XXX_Size

func (m *Account) XXX_Size() int

func (*Account) XXX_Unmarshal

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

type AccountRetriever

type AccountRetriever struct{}

AccountRetriever defines the properties of a type that can be used to retrieve accounts.

func (AccountRetriever) EnsureExists

func (ar AccountRetriever) EnsureExists(clientCtx client.Context, addr sdk.AccAddress) error

EnsureExists returns an error if no account exists for the given address else nil.

func (AccountRetriever) GetAccount

func (ar AccountRetriever) GetAccount(clientCtx client.Context, addr sdk.AccAddress) (client.Account, error)

GetAccount queries for an account given an address and a block height. An error is returned if the query or decoding fails.

func (AccountRetriever) GetAccountNumberSequence

func (ar AccountRetriever) GetAccountNumberSequence(clientCtx client.Context, addr sdk.AccAddress) (uint64, uint64, error)

GetAccountNumberSequence returns sequence and account number for the given address. It returns an error if the account couldn't be retrieved from the state.

func (AccountRetriever) GetAccountWithHeight

func (ar AccountRetriever) GetAccountWithHeight(clientCtx client.Context, addr sdk.AccAddress) (client.Account, int64, error)

GetAccountWithHeight queries for an account given an address. Returns the height of the query with the account. An error is returned if the query or decoding fails.

type AccountRole

type AccountRole string
const (
	Vendor              AccountRole = "Vendor"
	TestHouse           AccountRole = "TestHouse"
	CertificationCenter AccountRole = "CertificationCenter"
	Trustee             AccountRole = "Trustee"
	NodeAdmin           AccountRole = "NodeAdmin"
)

func (AccountRole) Validate

func (role AccountRole) Validate() error

type AccountRoles

type AccountRoles []AccountRole

type AccountStat

type AccountStat struct {
	Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
}

func (*AccountStat) Descriptor

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

func (*AccountStat) GetNumber

func (m *AccountStat) GetNumber() uint64

func (*AccountStat) Marshal

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

func (*AccountStat) MarshalTo

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

func (*AccountStat) MarshalToSizedBuffer

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

func (*AccountStat) ProtoMessage

func (*AccountStat) ProtoMessage()

func (*AccountStat) Reset

func (m *AccountStat) Reset()

func (*AccountStat) Size

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

func (*AccountStat) String

func (m *AccountStat) String() string

func (*AccountStat) Unmarshal

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

func (*AccountStat) XXX_DiscardUnknown

func (m *AccountStat) XXX_DiscardUnknown()

func (*AccountStat) XXX_Marshal

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

func (*AccountStat) XXX_Merge

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

func (*AccountStat) XXX_Size

func (m *AccountStat) XXX_Size() int

func (*AccountStat) XXX_Unmarshal

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

type DCLAccountI

type DCLAccountI interface {
	authtypes.AccountI

	GetRoles() []AccountRole
	GetVendorID() int32
}

type GenesisAccount

type GenesisAccount interface {
	GetAddress() sdk.AccAddress
	Validate() error
}

GenesisAccount defines a genesis account interface that allows account address retrieval.

type GenesisAccountsIterator

type GenesisAccountsIterator struct{}

GenesisAccountsIterator implements genesis account iteration.

func (GenesisAccountsIterator) IterateGenesisAccounts

func (GenesisAccountsIterator) IterateGenesisAccounts(
	cdc codec.JSONCodec, appState map[string]json.RawMessage, cb func(GenesisAccount) (stop bool),
)

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

type GenesisState

type GenesisState struct {
	AccountList                  []Account                  `protobuf:"bytes,1,rep,name=accountList,proto3" json:"accountList"`
	PendingAccountList           []PendingAccount           `protobuf:"bytes,2,rep,name=pendingAccountList,proto3" json:"pendingAccountList"`
	PendingAccountRevocationList []PendingAccountRevocation `protobuf:"bytes,3,rep,name=pendingAccountRevocationList,proto3" json:"pendingAccountRevocationList"`
	AccountStat                  *AccountStat               `protobuf:"bytes,4,opt,name=accountStat,proto3" json:"accountStat,omitempty"`
}

GenesisState defines the dclauth module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state.

func GetGenesisStateFromAppState

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

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

func (*GenesisState) Descriptor

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

func (*GenesisState) GetAccountList

func (m *GenesisState) GetAccountList() []Account

func (*GenesisState) GetAccountStat

func (m *GenesisState) GetAccountStat() *AccountStat

func (*GenesisState) GetPendingAccountList

func (m *GenesisState) GetPendingAccountList() []PendingAccount

func (*GenesisState) GetPendingAccountRevocationList

func (m *GenesisState) GetPendingAccountRevocationList() []PendingAccountRevocation

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 MsgApproveAddAccount

type MsgApproveAddAccount struct {
	Signer  string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty" validate:"required"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" validate:"required"`
}

func NewMsgApproveAddAccount

func NewMsgApproveAddAccount(signer sdk.AccAddress, address sdk.AccAddress) *MsgApproveAddAccount

func (*MsgApproveAddAccount) Descriptor

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

func (*MsgApproveAddAccount) GetAddress

func (m *MsgApproveAddAccount) GetAddress() string

func (*MsgApproveAddAccount) GetSignBytes

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

func (*MsgApproveAddAccount) GetSigner

func (m *MsgApproveAddAccount) GetSigner() string

func (*MsgApproveAddAccount) GetSigners

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

func (*MsgApproveAddAccount) Marshal

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

func (*MsgApproveAddAccount) MarshalTo

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

func (*MsgApproveAddAccount) MarshalToSizedBuffer

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

func (*MsgApproveAddAccount) ProtoMessage

func (*MsgApproveAddAccount) ProtoMessage()

func (*MsgApproveAddAccount) Reset

func (m *MsgApproveAddAccount) Reset()

func (*MsgApproveAddAccount) Route

func (msg *MsgApproveAddAccount) Route() string

func (*MsgApproveAddAccount) Size

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

func (*MsgApproveAddAccount) String

func (m *MsgApproveAddAccount) String() string

func (*MsgApproveAddAccount) Type

func (msg *MsgApproveAddAccount) Type() string

func (*MsgApproveAddAccount) Unmarshal

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

func (*MsgApproveAddAccount) ValidateBasic

func (msg *MsgApproveAddAccount) ValidateBasic() error

func (*MsgApproveAddAccount) XXX_DiscardUnknown

func (m *MsgApproveAddAccount) XXX_DiscardUnknown()

func (*MsgApproveAddAccount) XXX_Marshal

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

func (*MsgApproveAddAccount) XXX_Merge

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

func (*MsgApproveAddAccount) XXX_Size

func (m *MsgApproveAddAccount) XXX_Size() int

func (*MsgApproveAddAccount) XXX_Unmarshal

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

type MsgApproveAddAccountResponse

type MsgApproveAddAccountResponse struct {
}

func (*MsgApproveAddAccountResponse) Descriptor

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

func (*MsgApproveAddAccountResponse) Marshal

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

func (*MsgApproveAddAccountResponse) MarshalTo

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

func (*MsgApproveAddAccountResponse) MarshalToSizedBuffer

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

func (*MsgApproveAddAccountResponse) ProtoMessage

func (*MsgApproveAddAccountResponse) ProtoMessage()

func (*MsgApproveAddAccountResponse) Reset

func (m *MsgApproveAddAccountResponse) Reset()

func (*MsgApproveAddAccountResponse) Size

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

func (*MsgApproveAddAccountResponse) String

func (*MsgApproveAddAccountResponse) Unmarshal

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

func (*MsgApproveAddAccountResponse) XXX_DiscardUnknown

func (m *MsgApproveAddAccountResponse) XXX_DiscardUnknown()

func (*MsgApproveAddAccountResponse) XXX_Marshal

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

func (*MsgApproveAddAccountResponse) XXX_Merge

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

func (*MsgApproveAddAccountResponse) XXX_Size

func (m *MsgApproveAddAccountResponse) XXX_Size() int

func (*MsgApproveAddAccountResponse) XXX_Unmarshal

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

type MsgApproveRevokeAccount

type MsgApproveRevokeAccount struct {
	Signer  string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty" validate:"required"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" validate:"required"`
}

func NewMsgApproveRevokeAccount

func NewMsgApproveRevokeAccount(signer sdk.AccAddress, address sdk.AccAddress) *MsgApproveRevokeAccount

func (*MsgApproveRevokeAccount) Descriptor

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

func (*MsgApproveRevokeAccount) GetAddress

func (m *MsgApproveRevokeAccount) GetAddress() string

func (*MsgApproveRevokeAccount) GetSignBytes

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

func (*MsgApproveRevokeAccount) GetSigner

func (m *MsgApproveRevokeAccount) GetSigner() string

func (*MsgApproveRevokeAccount) GetSigners

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

func (*MsgApproveRevokeAccount) Marshal

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

func (*MsgApproveRevokeAccount) MarshalTo

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

func (*MsgApproveRevokeAccount) MarshalToSizedBuffer

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

func (*MsgApproveRevokeAccount) ProtoMessage

func (*MsgApproveRevokeAccount) ProtoMessage()

func (*MsgApproveRevokeAccount) Reset

func (m *MsgApproveRevokeAccount) Reset()

func (*MsgApproveRevokeAccount) Route

func (msg *MsgApproveRevokeAccount) Route() string

func (*MsgApproveRevokeAccount) Size

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

func (*MsgApproveRevokeAccount) String

func (m *MsgApproveRevokeAccount) String() string

func (*MsgApproveRevokeAccount) Type

func (msg *MsgApproveRevokeAccount) Type() string

func (*MsgApproveRevokeAccount) Unmarshal

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

func (*MsgApproveRevokeAccount) ValidateBasic

func (msg *MsgApproveRevokeAccount) ValidateBasic() error

func (*MsgApproveRevokeAccount) XXX_DiscardUnknown

func (m *MsgApproveRevokeAccount) XXX_DiscardUnknown()

func (*MsgApproveRevokeAccount) XXX_Marshal

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

func (*MsgApproveRevokeAccount) XXX_Merge

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

func (*MsgApproveRevokeAccount) XXX_Size

func (m *MsgApproveRevokeAccount) XXX_Size() int

func (*MsgApproveRevokeAccount) XXX_Unmarshal

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

type MsgApproveRevokeAccountResponse

type MsgApproveRevokeAccountResponse struct {
}

func (*MsgApproveRevokeAccountResponse) Descriptor

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

func (*MsgApproveRevokeAccountResponse) Marshal

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

func (*MsgApproveRevokeAccountResponse) MarshalTo

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

func (*MsgApproveRevokeAccountResponse) MarshalToSizedBuffer

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

func (*MsgApproveRevokeAccountResponse) ProtoMessage

func (*MsgApproveRevokeAccountResponse) ProtoMessage()

func (*MsgApproveRevokeAccountResponse) Reset

func (*MsgApproveRevokeAccountResponse) Size

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

func (*MsgApproveRevokeAccountResponse) String

func (*MsgApproveRevokeAccountResponse) Unmarshal

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

func (*MsgApproveRevokeAccountResponse) XXX_DiscardUnknown

func (m *MsgApproveRevokeAccountResponse) XXX_DiscardUnknown()

func (*MsgApproveRevokeAccountResponse) XXX_Marshal

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

func (*MsgApproveRevokeAccountResponse) XXX_Merge

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

func (*MsgApproveRevokeAccountResponse) XXX_Size

func (m *MsgApproveRevokeAccountResponse) XXX_Size() int

func (*MsgApproveRevokeAccountResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	ProposeAddAccount(ctx context.Context, in *MsgProposeAddAccount, opts ...grpc.CallOption) (*MsgProposeAddAccountResponse, error)
	ApproveAddAccount(ctx context.Context, in *MsgApproveAddAccount, opts ...grpc.CallOption) (*MsgApproveAddAccountResponse, error)
	ProposeRevokeAccount(ctx context.Context, in *MsgProposeRevokeAccount, opts ...grpc.CallOption) (*MsgProposeRevokeAccountResponse, error)
	ApproveRevokeAccount(ctx context.Context, in *MsgApproveRevokeAccount, opts ...grpc.CallOption) (*MsgApproveRevokeAccountResponse, 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 MsgProposeAddAccount

type MsgProposeAddAccount struct {
	Signer   string        `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty" validate:"required"`
	Address  string        `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" validate:"required"`
	PubKey   *types.Any    `protobuf:"bytes,3,opt,name=pubKey,proto3" json:"pubKey,omitempty" validate:"required"`
	Roles    []AccountRole `protobuf:"bytes,4,rep,name=roles,proto3,casttype=AccountRole" json:"roles,omitempty" validate:"required"`
	VendorID int32         `protobuf:"varint,5,opt,name=vendorID,proto3" json:"vendorID,omitempty" validate:"gte=0,lte=65535"`
}

func NewMsgProposeAddAccount

func NewMsgProposeAddAccount(
	signer sdk.AccAddress,
	address sdk.AccAddress,
	pubKey cryptotypes.PubKey,
	roles AccountRoles,

	vendorID int32,
) (*MsgProposeAddAccount, error)

func (*MsgProposeAddAccount) Descriptor

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

func (*MsgProposeAddAccount) GetAddress

func (m *MsgProposeAddAccount) GetAddress() string

func (*MsgProposeAddAccount) GetPubKey

func (m *MsgProposeAddAccount) GetPubKey() *types.Any

func (*MsgProposeAddAccount) GetRoles

func (m *MsgProposeAddAccount) GetRoles() []AccountRole

func (*MsgProposeAddAccount) GetSignBytes

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

func (*MsgProposeAddAccount) GetSigner

func (m *MsgProposeAddAccount) GetSigner() string

func (*MsgProposeAddAccount) GetSigners

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

func (*MsgProposeAddAccount) GetVendorID

func (m *MsgProposeAddAccount) GetVendorID() int32

func (*MsgProposeAddAccount) HasRole

func (msg *MsgProposeAddAccount) HasRole(targetRole AccountRole) bool

func (*MsgProposeAddAccount) Marshal

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

func (*MsgProposeAddAccount) MarshalTo

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

func (*MsgProposeAddAccount) MarshalToSizedBuffer

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

func (*MsgProposeAddAccount) ProtoMessage

func (*MsgProposeAddAccount) ProtoMessage()

func (*MsgProposeAddAccount) Reset

func (m *MsgProposeAddAccount) Reset()

func (*MsgProposeAddAccount) Route

func (msg *MsgProposeAddAccount) Route() string

func (*MsgProposeAddAccount) Size

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

func (*MsgProposeAddAccount) String

func (m *MsgProposeAddAccount) String() string

func (*MsgProposeAddAccount) Type

func (msg *MsgProposeAddAccount) Type() string

func (*MsgProposeAddAccount) Unmarshal

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

func (MsgProposeAddAccount) UnpackInterfaces

func (msg MsgProposeAddAccount) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces.

func (*MsgProposeAddAccount) ValidateBasic

func (msg *MsgProposeAddAccount) ValidateBasic() error

func (*MsgProposeAddAccount) XXX_DiscardUnknown

func (m *MsgProposeAddAccount) XXX_DiscardUnknown()

func (*MsgProposeAddAccount) XXX_Marshal

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

func (*MsgProposeAddAccount) XXX_Merge

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

func (*MsgProposeAddAccount) XXX_Size

func (m *MsgProposeAddAccount) XXX_Size() int

func (*MsgProposeAddAccount) XXX_Unmarshal

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

type MsgProposeAddAccountResponse

type MsgProposeAddAccountResponse struct {
}

func (*MsgProposeAddAccountResponse) Descriptor

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

func (*MsgProposeAddAccountResponse) Marshal

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

func (*MsgProposeAddAccountResponse) MarshalTo

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

func (*MsgProposeAddAccountResponse) MarshalToSizedBuffer

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

func (*MsgProposeAddAccountResponse) ProtoMessage

func (*MsgProposeAddAccountResponse) ProtoMessage()

func (*MsgProposeAddAccountResponse) Reset

func (m *MsgProposeAddAccountResponse) Reset()

func (*MsgProposeAddAccountResponse) Size

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

func (*MsgProposeAddAccountResponse) String

func (*MsgProposeAddAccountResponse) Unmarshal

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

func (*MsgProposeAddAccountResponse) XXX_DiscardUnknown

func (m *MsgProposeAddAccountResponse) XXX_DiscardUnknown()

func (*MsgProposeAddAccountResponse) XXX_Marshal

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

func (*MsgProposeAddAccountResponse) XXX_Merge

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

func (*MsgProposeAddAccountResponse) XXX_Size

func (m *MsgProposeAddAccountResponse) XXX_Size() int

func (*MsgProposeAddAccountResponse) XXX_Unmarshal

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

type MsgProposeRevokeAccount

type MsgProposeRevokeAccount struct {
	Signer  string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty" validate:"required"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" validate:"required"`
}

func NewMsgProposeRevokeAccount

func NewMsgProposeRevokeAccount(signer sdk.AccAddress, address sdk.AccAddress) *MsgProposeRevokeAccount

func (*MsgProposeRevokeAccount) Descriptor

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

func (*MsgProposeRevokeAccount) GetAddress

func (m *MsgProposeRevokeAccount) GetAddress() string

func (*MsgProposeRevokeAccount) GetSignBytes

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

func (*MsgProposeRevokeAccount) GetSigner

func (m *MsgProposeRevokeAccount) GetSigner() string

func (*MsgProposeRevokeAccount) GetSigners

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

func (*MsgProposeRevokeAccount) Marshal

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

func (*MsgProposeRevokeAccount) MarshalTo

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

func (*MsgProposeRevokeAccount) MarshalToSizedBuffer

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

func (*MsgProposeRevokeAccount) ProtoMessage

func (*MsgProposeRevokeAccount) ProtoMessage()

func (*MsgProposeRevokeAccount) Reset

func (m *MsgProposeRevokeAccount) Reset()

func (*MsgProposeRevokeAccount) Route

func (msg *MsgProposeRevokeAccount) Route() string

func (*MsgProposeRevokeAccount) Size

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

func (*MsgProposeRevokeAccount) String

func (m *MsgProposeRevokeAccount) String() string

func (*MsgProposeRevokeAccount) Type

func (msg *MsgProposeRevokeAccount) Type() string

func (*MsgProposeRevokeAccount) Unmarshal

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

func (*MsgProposeRevokeAccount) ValidateBasic

func (msg *MsgProposeRevokeAccount) ValidateBasic() error

func (*MsgProposeRevokeAccount) XXX_DiscardUnknown

func (m *MsgProposeRevokeAccount) XXX_DiscardUnknown()

func (*MsgProposeRevokeAccount) XXX_Marshal

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

func (*MsgProposeRevokeAccount) XXX_Merge

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

func (*MsgProposeRevokeAccount) XXX_Size

func (m *MsgProposeRevokeAccount) XXX_Size() int

func (*MsgProposeRevokeAccount) XXX_Unmarshal

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

type MsgProposeRevokeAccountResponse

type MsgProposeRevokeAccountResponse struct {
}

func (*MsgProposeRevokeAccountResponse) Descriptor

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

func (*MsgProposeRevokeAccountResponse) Marshal

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

func (*MsgProposeRevokeAccountResponse) MarshalTo

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

func (*MsgProposeRevokeAccountResponse) MarshalToSizedBuffer

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

func (*MsgProposeRevokeAccountResponse) ProtoMessage

func (*MsgProposeRevokeAccountResponse) ProtoMessage()

func (*MsgProposeRevokeAccountResponse) Reset

func (*MsgProposeRevokeAccountResponse) Size

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

func (*MsgProposeRevokeAccountResponse) String

func (*MsgProposeRevokeAccountResponse) Unmarshal

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

func (*MsgProposeRevokeAccountResponse) XXX_DiscardUnknown

func (m *MsgProposeRevokeAccountResponse) XXX_DiscardUnknown()

func (*MsgProposeRevokeAccountResponse) XXX_Marshal

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

func (*MsgProposeRevokeAccountResponse) XXX_Merge

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

func (*MsgProposeRevokeAccountResponse) XXX_Size

func (m *MsgProposeRevokeAccountResponse) XXX_Size() int

func (*MsgProposeRevokeAccountResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type PendingAccount

type PendingAccount struct {
	*Account  `protobuf:"bytes,1,opt,name=address,proto3,embedded=address" json:"address,omitempty"`
	Approvals []string `protobuf:"bytes,2,rep,name=approvals,proto3" json:"approvals,omitempty"`
}

func NewPendingAccount

func NewPendingAccount(acc *Account, approval sdk.AccAddress) *PendingAccount

NewPendingAccount creates a new PendingAccount object.

func (*PendingAccount) Descriptor

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

func (*PendingAccount) GetApprovals

func (m *PendingAccount) GetApprovals() []string

func (PendingAccount) HasApprovalFrom

func (acc PendingAccount) HasApprovalFrom(address sdk.AccAddress) bool

func (*PendingAccount) Marshal

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

func (*PendingAccount) MarshalTo

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

func (*PendingAccount) MarshalToSizedBuffer

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

func (*PendingAccount) ProtoMessage

func (*PendingAccount) ProtoMessage()

func (*PendingAccount) Reset

func (m *PendingAccount) Reset()

func (*PendingAccount) Size

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

func (*PendingAccount) String

func (m *PendingAccount) String() string

func (*PendingAccount) Unmarshal

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

func (*PendingAccount) XXX_DiscardUnknown

func (m *PendingAccount) XXX_DiscardUnknown()

func (*PendingAccount) XXX_Marshal

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

func (*PendingAccount) XXX_Merge

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

func (*PendingAccount) XXX_Size

func (m *PendingAccount) XXX_Size() int

func (*PendingAccount) XXX_Unmarshal

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

type PendingAccountRevocation

type PendingAccountRevocation struct {
	Address   string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Approvals []string `protobuf:"bytes,2,rep,name=approvals,proto3" json:"approvals,omitempty"`
}

func NewPendingAccountRevocation

func NewPendingAccountRevocation(address sdk.AccAddress, approval sdk.AccAddress) PendingAccountRevocation

NewPendingAccountRevocation creates a new PendingAccountRevocation object.

func (*PendingAccountRevocation) Descriptor

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

func (*PendingAccountRevocation) GetAddress

func (m *PendingAccountRevocation) GetAddress() string

func (*PendingAccountRevocation) GetApprovals

func (m *PendingAccountRevocation) GetApprovals() []string

func (PendingAccountRevocation) HasApprovalFrom

func (revoc PendingAccountRevocation) HasApprovalFrom(address sdk.AccAddress) bool

func (*PendingAccountRevocation) Marshal

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

func (*PendingAccountRevocation) MarshalTo

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

func (*PendingAccountRevocation) MarshalToSizedBuffer

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

func (*PendingAccountRevocation) ProtoMessage

func (*PendingAccountRevocation) ProtoMessage()

func (*PendingAccountRevocation) Reset

func (m *PendingAccountRevocation) Reset()

func (*PendingAccountRevocation) Size

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

func (PendingAccountRevocation) String

func (revoc PendingAccountRevocation) String() string

String implements fmt.Stringer.

func (*PendingAccountRevocation) Unmarshal

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

func (PendingAccountRevocation) Validate

func (revoc PendingAccountRevocation) Validate() error

Validate checks for errors on the vesting and module account parameters.

func (*PendingAccountRevocation) XXX_DiscardUnknown

func (m *PendingAccountRevocation) XXX_DiscardUnknown()

func (*PendingAccountRevocation) XXX_Marshal

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

func (*PendingAccountRevocation) XXX_Merge

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

func (*PendingAccountRevocation) XXX_Size

func (m *PendingAccountRevocation) XXX_Size() int

func (*PendingAccountRevocation) XXX_Unmarshal

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

type QueryAllAccountRequest

type QueryAllAccountRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllAccountRequest) Descriptor

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

func (*QueryAllAccountRequest) GetPagination

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

func (*QueryAllAccountRequest) Marshal

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

func (*QueryAllAccountRequest) MarshalTo

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

func (*QueryAllAccountRequest) MarshalToSizedBuffer

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

func (*QueryAllAccountRequest) ProtoMessage

func (*QueryAllAccountRequest) ProtoMessage()

func (*QueryAllAccountRequest) Reset

func (m *QueryAllAccountRequest) Reset()

func (*QueryAllAccountRequest) Size

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

func (*QueryAllAccountRequest) String

func (m *QueryAllAccountRequest) String() string

func (*QueryAllAccountRequest) Unmarshal

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

func (*QueryAllAccountRequest) XXX_DiscardUnknown

func (m *QueryAllAccountRequest) XXX_DiscardUnknown()

func (*QueryAllAccountRequest) XXX_Marshal

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

func (*QueryAllAccountRequest) XXX_Merge

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

func (*QueryAllAccountRequest) XXX_Size

func (m *QueryAllAccountRequest) XXX_Size() int

func (*QueryAllAccountRequest) XXX_Unmarshal

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

type QueryAllAccountResponse

type QueryAllAccountResponse struct {
	Account    []Account           `protobuf:"bytes,1,rep,name=account,proto3" json:"account"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllAccountResponse) Descriptor

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

func (*QueryAllAccountResponse) GetAccount

func (m *QueryAllAccountResponse) GetAccount() []Account

func (*QueryAllAccountResponse) GetPagination

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

func (*QueryAllAccountResponse) Marshal

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

func (*QueryAllAccountResponse) MarshalTo

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

func (*QueryAllAccountResponse) MarshalToSizedBuffer

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

func (*QueryAllAccountResponse) ProtoMessage

func (*QueryAllAccountResponse) ProtoMessage()

func (*QueryAllAccountResponse) Reset

func (m *QueryAllAccountResponse) Reset()

func (*QueryAllAccountResponse) Size

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

func (*QueryAllAccountResponse) String

func (m *QueryAllAccountResponse) String() string

func (*QueryAllAccountResponse) Unmarshal

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

func (*QueryAllAccountResponse) XXX_DiscardUnknown

func (m *QueryAllAccountResponse) XXX_DiscardUnknown()

func (*QueryAllAccountResponse) XXX_Marshal

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

func (*QueryAllAccountResponse) XXX_Merge

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

func (*QueryAllAccountResponse) XXX_Size

func (m *QueryAllAccountResponse) XXX_Size() int

func (*QueryAllAccountResponse) XXX_Unmarshal

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

type QueryAllPendingAccountRequest

type QueryAllPendingAccountRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPendingAccountRequest) Descriptor

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

func (*QueryAllPendingAccountRequest) GetPagination

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

func (*QueryAllPendingAccountRequest) Marshal

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

func (*QueryAllPendingAccountRequest) MarshalTo

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

func (*QueryAllPendingAccountRequest) MarshalToSizedBuffer

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

func (*QueryAllPendingAccountRequest) ProtoMessage

func (*QueryAllPendingAccountRequest) ProtoMessage()

func (*QueryAllPendingAccountRequest) Reset

func (m *QueryAllPendingAccountRequest) Reset()

func (*QueryAllPendingAccountRequest) Size

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

func (*QueryAllPendingAccountRequest) String

func (*QueryAllPendingAccountRequest) Unmarshal

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

func (*QueryAllPendingAccountRequest) XXX_DiscardUnknown

func (m *QueryAllPendingAccountRequest) XXX_DiscardUnknown()

func (*QueryAllPendingAccountRequest) XXX_Marshal

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

func (*QueryAllPendingAccountRequest) XXX_Merge

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

func (*QueryAllPendingAccountRequest) XXX_Size

func (m *QueryAllPendingAccountRequest) XXX_Size() int

func (*QueryAllPendingAccountRequest) XXX_Unmarshal

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

type QueryAllPendingAccountResponse

type QueryAllPendingAccountResponse struct {
	PendingAccount []PendingAccount    `protobuf:"bytes,1,rep,name=pendingAccount,proto3" json:"pendingAccount"`
	Pagination     *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPendingAccountResponse) Descriptor

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

func (*QueryAllPendingAccountResponse) GetPagination

func (*QueryAllPendingAccountResponse) GetPendingAccount

func (m *QueryAllPendingAccountResponse) GetPendingAccount() []PendingAccount

func (*QueryAllPendingAccountResponse) Marshal

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

func (*QueryAllPendingAccountResponse) MarshalTo

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

func (*QueryAllPendingAccountResponse) MarshalToSizedBuffer

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

func (*QueryAllPendingAccountResponse) ProtoMessage

func (*QueryAllPendingAccountResponse) ProtoMessage()

func (*QueryAllPendingAccountResponse) Reset

func (m *QueryAllPendingAccountResponse) Reset()

func (*QueryAllPendingAccountResponse) Size

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

func (*QueryAllPendingAccountResponse) String

func (*QueryAllPendingAccountResponse) Unmarshal

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

func (*QueryAllPendingAccountResponse) XXX_DiscardUnknown

func (m *QueryAllPendingAccountResponse) XXX_DiscardUnknown()

func (*QueryAllPendingAccountResponse) XXX_Marshal

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

func (*QueryAllPendingAccountResponse) XXX_Merge

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

func (*QueryAllPendingAccountResponse) XXX_Size

func (m *QueryAllPendingAccountResponse) XXX_Size() int

func (*QueryAllPendingAccountResponse) XXX_Unmarshal

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

type QueryAllPendingAccountRevocationRequest

type QueryAllPendingAccountRevocationRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPendingAccountRevocationRequest) Descriptor

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

func (*QueryAllPendingAccountRevocationRequest) GetPagination

func (*QueryAllPendingAccountRevocationRequest) Marshal

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

func (*QueryAllPendingAccountRevocationRequest) MarshalTo

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

func (*QueryAllPendingAccountRevocationRequest) MarshalToSizedBuffer

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

func (*QueryAllPendingAccountRevocationRequest) ProtoMessage

func (*QueryAllPendingAccountRevocationRequest) Reset

func (*QueryAllPendingAccountRevocationRequest) Size

func (*QueryAllPendingAccountRevocationRequest) String

func (*QueryAllPendingAccountRevocationRequest) Unmarshal

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

func (*QueryAllPendingAccountRevocationRequest) XXX_DiscardUnknown

func (m *QueryAllPendingAccountRevocationRequest) XXX_DiscardUnknown()

func (*QueryAllPendingAccountRevocationRequest) XXX_Marshal

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

func (*QueryAllPendingAccountRevocationRequest) XXX_Merge

func (*QueryAllPendingAccountRevocationRequest) XXX_Size

func (*QueryAllPendingAccountRevocationRequest) XXX_Unmarshal

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

type QueryAllPendingAccountRevocationResponse

type QueryAllPendingAccountRevocationResponse struct {
	PendingAccountRevocation []PendingAccountRevocation `protobuf:"bytes,1,rep,name=pendingAccountRevocation,proto3" json:"pendingAccountRevocation"`
	Pagination               *query.PageResponse        `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPendingAccountRevocationResponse) Descriptor

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

func (*QueryAllPendingAccountRevocationResponse) GetPagination

func (*QueryAllPendingAccountRevocationResponse) GetPendingAccountRevocation

func (m *QueryAllPendingAccountRevocationResponse) GetPendingAccountRevocation() []PendingAccountRevocation

func (*QueryAllPendingAccountRevocationResponse) Marshal

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

func (*QueryAllPendingAccountRevocationResponse) MarshalTo

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

func (*QueryAllPendingAccountRevocationResponse) MarshalToSizedBuffer

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

func (*QueryAllPendingAccountRevocationResponse) ProtoMessage

func (*QueryAllPendingAccountRevocationResponse) Reset

func (*QueryAllPendingAccountRevocationResponse) Size

func (*QueryAllPendingAccountRevocationResponse) String

func (*QueryAllPendingAccountRevocationResponse) Unmarshal

func (*QueryAllPendingAccountRevocationResponse) XXX_DiscardUnknown

func (m *QueryAllPendingAccountRevocationResponse) XXX_DiscardUnknown()

func (*QueryAllPendingAccountRevocationResponse) XXX_Marshal

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

func (*QueryAllPendingAccountRevocationResponse) XXX_Merge

func (*QueryAllPendingAccountRevocationResponse) XXX_Size

func (*QueryAllPendingAccountRevocationResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Queries a account by index.
	Account(ctx context.Context, in *QueryGetAccountRequest, opts ...grpc.CallOption) (*QueryGetAccountResponse, error)
	// Queries a list of account items.
	AccountAll(ctx context.Context, in *QueryAllAccountRequest, opts ...grpc.CallOption) (*QueryAllAccountResponse, error)
	// Queries a pendingAccount by index.
	PendingAccount(ctx context.Context, in *QueryGetPendingAccountRequest, opts ...grpc.CallOption) (*QueryGetPendingAccountResponse, error)
	// Queries a list of pendingAccount items.
	PendingAccountAll(ctx context.Context, in *QueryAllPendingAccountRequest, opts ...grpc.CallOption) (*QueryAllPendingAccountResponse, error)
	// Queries a pendingAccountRevocation by index.
	PendingAccountRevocation(ctx context.Context, in *QueryGetPendingAccountRevocationRequest, opts ...grpc.CallOption) (*QueryGetPendingAccountRevocationResponse, error)
	// Queries a list of pendingAccountRevocation items.
	PendingAccountRevocationAll(ctx context.Context, in *QueryAllPendingAccountRevocationRequest, opts ...grpc.CallOption) (*QueryAllPendingAccountRevocationResponse, error)
	// Queries a accountStat by index.
	AccountStat(ctx context.Context, in *QueryGetAccountStatRequest, opts ...grpc.CallOption) (*QueryGetAccountStatResponse, 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 QueryGetAccountRequest

type QueryGetAccountRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryGetAccountRequest) Descriptor

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

func (*QueryGetAccountRequest) GetAddress

func (m *QueryGetAccountRequest) GetAddress() string

func (*QueryGetAccountRequest) Marshal

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

func (*QueryGetAccountRequest) MarshalTo

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

func (*QueryGetAccountRequest) MarshalToSizedBuffer

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

func (*QueryGetAccountRequest) ProtoMessage

func (*QueryGetAccountRequest) ProtoMessage()

func (*QueryGetAccountRequest) Reset

func (m *QueryGetAccountRequest) Reset()

func (*QueryGetAccountRequest) Size

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

func (*QueryGetAccountRequest) String

func (m *QueryGetAccountRequest) String() string

func (*QueryGetAccountRequest) Unmarshal

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

func (*QueryGetAccountRequest) XXX_DiscardUnknown

func (m *QueryGetAccountRequest) XXX_DiscardUnknown()

func (*QueryGetAccountRequest) XXX_Marshal

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

func (*QueryGetAccountRequest) XXX_Merge

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

func (*QueryGetAccountRequest) XXX_Size

func (m *QueryGetAccountRequest) XXX_Size() int

func (*QueryGetAccountRequest) XXX_Unmarshal

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

type QueryGetAccountResponse

type QueryGetAccountResponse struct {
	Account Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account"`
}

func (*QueryGetAccountResponse) Descriptor

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

func (*QueryGetAccountResponse) GetAccount

func (m *QueryGetAccountResponse) GetAccount() Account

func (*QueryGetAccountResponse) Marshal

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

func (*QueryGetAccountResponse) MarshalTo

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

func (*QueryGetAccountResponse) MarshalToSizedBuffer

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

func (*QueryGetAccountResponse) ProtoMessage

func (*QueryGetAccountResponse) ProtoMessage()

func (*QueryGetAccountResponse) Reset

func (m *QueryGetAccountResponse) Reset()

func (*QueryGetAccountResponse) Size

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

func (*QueryGetAccountResponse) String

func (m *QueryGetAccountResponse) String() string

func (*QueryGetAccountResponse) Unmarshal

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

func (*QueryGetAccountResponse) XXX_DiscardUnknown

func (m *QueryGetAccountResponse) XXX_DiscardUnknown()

func (*QueryGetAccountResponse) XXX_Marshal

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

func (*QueryGetAccountResponse) XXX_Merge

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

func (*QueryGetAccountResponse) XXX_Size

func (m *QueryGetAccountResponse) XXX_Size() int

func (*QueryGetAccountResponse) XXX_Unmarshal

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

type QueryGetAccountStatRequest

type QueryGetAccountStatRequest struct {
}

func (*QueryGetAccountStatRequest) Descriptor

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

func (*QueryGetAccountStatRequest) Marshal

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

func (*QueryGetAccountStatRequest) MarshalTo

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

func (*QueryGetAccountStatRequest) MarshalToSizedBuffer

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

func (*QueryGetAccountStatRequest) ProtoMessage

func (*QueryGetAccountStatRequest) ProtoMessage()

func (*QueryGetAccountStatRequest) Reset

func (m *QueryGetAccountStatRequest) Reset()

func (*QueryGetAccountStatRequest) Size

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

func (*QueryGetAccountStatRequest) String

func (m *QueryGetAccountStatRequest) String() string

func (*QueryGetAccountStatRequest) Unmarshal

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

func (*QueryGetAccountStatRequest) XXX_DiscardUnknown

func (m *QueryGetAccountStatRequest) XXX_DiscardUnknown()

func (*QueryGetAccountStatRequest) XXX_Marshal

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

func (*QueryGetAccountStatRequest) XXX_Merge

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

func (*QueryGetAccountStatRequest) XXX_Size

func (m *QueryGetAccountStatRequest) XXX_Size() int

func (*QueryGetAccountStatRequest) XXX_Unmarshal

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

type QueryGetAccountStatResponse

type QueryGetAccountStatResponse struct {
	AccountStat AccountStat `protobuf:"bytes,1,opt,name=AccountStat,proto3" json:"AccountStat"`
}

func (*QueryGetAccountStatResponse) Descriptor

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

func (*QueryGetAccountStatResponse) GetAccountStat

func (m *QueryGetAccountStatResponse) GetAccountStat() AccountStat

func (*QueryGetAccountStatResponse) Marshal

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

func (*QueryGetAccountStatResponse) MarshalTo

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

func (*QueryGetAccountStatResponse) MarshalToSizedBuffer

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

func (*QueryGetAccountStatResponse) ProtoMessage

func (*QueryGetAccountStatResponse) ProtoMessage()

func (*QueryGetAccountStatResponse) Reset

func (m *QueryGetAccountStatResponse) Reset()

func (*QueryGetAccountStatResponse) Size

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

func (*QueryGetAccountStatResponse) String

func (m *QueryGetAccountStatResponse) String() string

func (*QueryGetAccountStatResponse) Unmarshal

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

func (*QueryGetAccountStatResponse) XXX_DiscardUnknown

func (m *QueryGetAccountStatResponse) XXX_DiscardUnknown()

func (*QueryGetAccountStatResponse) XXX_Marshal

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

func (*QueryGetAccountStatResponse) XXX_Merge

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

func (*QueryGetAccountStatResponse) XXX_Size

func (m *QueryGetAccountStatResponse) XXX_Size() int

func (*QueryGetAccountStatResponse) XXX_Unmarshal

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

type QueryGetPendingAccountRequest

type QueryGetPendingAccountRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryGetPendingAccountRequest) Descriptor

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

func (*QueryGetPendingAccountRequest) GetAddress

func (m *QueryGetPendingAccountRequest) GetAddress() string

func (*QueryGetPendingAccountRequest) Marshal

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

func (*QueryGetPendingAccountRequest) MarshalTo

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

func (*QueryGetPendingAccountRequest) MarshalToSizedBuffer

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

func (*QueryGetPendingAccountRequest) ProtoMessage

func (*QueryGetPendingAccountRequest) ProtoMessage()

func (*QueryGetPendingAccountRequest) Reset

func (m *QueryGetPendingAccountRequest) Reset()

func (*QueryGetPendingAccountRequest) Size

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

func (*QueryGetPendingAccountRequest) String

func (*QueryGetPendingAccountRequest) Unmarshal

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

func (*QueryGetPendingAccountRequest) XXX_DiscardUnknown

func (m *QueryGetPendingAccountRequest) XXX_DiscardUnknown()

func (*QueryGetPendingAccountRequest) XXX_Marshal

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

func (*QueryGetPendingAccountRequest) XXX_Merge

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

func (*QueryGetPendingAccountRequest) XXX_Size

func (m *QueryGetPendingAccountRequest) XXX_Size() int

func (*QueryGetPendingAccountRequest) XXX_Unmarshal

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

type QueryGetPendingAccountResponse

type QueryGetPendingAccountResponse struct {
	PendingAccount PendingAccount `protobuf:"bytes,1,opt,name=pendingAccount,proto3" json:"pendingAccount"`
}

func (*QueryGetPendingAccountResponse) Descriptor

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

func (*QueryGetPendingAccountResponse) GetPendingAccount

func (m *QueryGetPendingAccountResponse) GetPendingAccount() PendingAccount

func (*QueryGetPendingAccountResponse) Marshal

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

func (*QueryGetPendingAccountResponse) MarshalTo

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

func (*QueryGetPendingAccountResponse) MarshalToSizedBuffer

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

func (*QueryGetPendingAccountResponse) ProtoMessage

func (*QueryGetPendingAccountResponse) ProtoMessage()

func (*QueryGetPendingAccountResponse) Reset

func (m *QueryGetPendingAccountResponse) Reset()

func (*QueryGetPendingAccountResponse) Size

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

func (*QueryGetPendingAccountResponse) String

func (*QueryGetPendingAccountResponse) Unmarshal

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

func (*QueryGetPendingAccountResponse) XXX_DiscardUnknown

func (m *QueryGetPendingAccountResponse) XXX_DiscardUnknown()

func (*QueryGetPendingAccountResponse) XXX_Marshal

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

func (*QueryGetPendingAccountResponse) XXX_Merge

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

func (*QueryGetPendingAccountResponse) XXX_Size

func (m *QueryGetPendingAccountResponse) XXX_Size() int

func (*QueryGetPendingAccountResponse) XXX_Unmarshal

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

type QueryGetPendingAccountRevocationRequest

type QueryGetPendingAccountRevocationRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryGetPendingAccountRevocationRequest) Descriptor

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

func (*QueryGetPendingAccountRevocationRequest) GetAddress

func (*QueryGetPendingAccountRevocationRequest) Marshal

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

func (*QueryGetPendingAccountRevocationRequest) MarshalTo

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

func (*QueryGetPendingAccountRevocationRequest) MarshalToSizedBuffer

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

func (*QueryGetPendingAccountRevocationRequest) ProtoMessage

func (*QueryGetPendingAccountRevocationRequest) Reset

func (*QueryGetPendingAccountRevocationRequest) Size

func (*QueryGetPendingAccountRevocationRequest) String

func (*QueryGetPendingAccountRevocationRequest) Unmarshal

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

func (*QueryGetPendingAccountRevocationRequest) XXX_DiscardUnknown

func (m *QueryGetPendingAccountRevocationRequest) XXX_DiscardUnknown()

func (*QueryGetPendingAccountRevocationRequest) XXX_Marshal

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

func (*QueryGetPendingAccountRevocationRequest) XXX_Merge

func (*QueryGetPendingAccountRevocationRequest) XXX_Size

func (*QueryGetPendingAccountRevocationRequest) XXX_Unmarshal

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

type QueryGetPendingAccountRevocationResponse

type QueryGetPendingAccountRevocationResponse struct {
	PendingAccountRevocation PendingAccountRevocation `protobuf:"bytes,1,opt,name=pendingAccountRevocation,proto3" json:"pendingAccountRevocation"`
}

func (*QueryGetPendingAccountRevocationResponse) Descriptor

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

func (*QueryGetPendingAccountRevocationResponse) GetPendingAccountRevocation

func (m *QueryGetPendingAccountRevocationResponse) GetPendingAccountRevocation() PendingAccountRevocation

func (*QueryGetPendingAccountRevocationResponse) Marshal

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

func (*QueryGetPendingAccountRevocationResponse) MarshalTo

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

func (*QueryGetPendingAccountRevocationResponse) MarshalToSizedBuffer

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

func (*QueryGetPendingAccountRevocationResponse) ProtoMessage

func (*QueryGetPendingAccountRevocationResponse) Reset

func (*QueryGetPendingAccountRevocationResponse) Size

func (*QueryGetPendingAccountRevocationResponse) String

func (*QueryGetPendingAccountRevocationResponse) Unmarshal

func (*QueryGetPendingAccountRevocationResponse) XXX_DiscardUnknown

func (m *QueryGetPendingAccountRevocationResponse) XXX_DiscardUnknown()

func (*QueryGetPendingAccountRevocationResponse) XXX_Marshal

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

func (*QueryGetPendingAccountRevocationResponse) XXX_Merge

func (*QueryGetPendingAccountRevocationResponse) XXX_Size

func (*QueryGetPendingAccountRevocationResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Queries a account by index.
	Account(context.Context, *QueryGetAccountRequest) (*QueryGetAccountResponse, error)
	// Queries a list of account items.
	AccountAll(context.Context, *QueryAllAccountRequest) (*QueryAllAccountResponse, error)
	// Queries a pendingAccount by index.
	PendingAccount(context.Context, *QueryGetPendingAccountRequest) (*QueryGetPendingAccountResponse, error)
	// Queries a list of pendingAccount items.
	PendingAccountAll(context.Context, *QueryAllPendingAccountRequest) (*QueryAllPendingAccountResponse, error)
	// Queries a pendingAccountRevocation by index.
	PendingAccountRevocation(context.Context, *QueryGetPendingAccountRevocationRequest) (*QueryGetPendingAccountRevocationResponse, error)
	// Queries a list of pendingAccountRevocation items.
	PendingAccountRevocationAll(context.Context, *QueryAllPendingAccountRevocationRequest) (*QueryAllPendingAccountRevocationResponse, error)
	// Queries a accountStat by index.
	AccountStat(context.Context, *QueryGetAccountStatRequest) (*QueryGetAccountStatResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ApproveAddAccount

func (*UnimplementedMsgServer) ApproveRevokeAccount

func (*UnimplementedMsgServer) ProposeAddAccount

func (*UnimplementedMsgServer) ProposeRevokeAccount

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Account

func (*UnimplementedQueryServer) AccountAll

func (*UnimplementedQueryServer) AccountStat

func (*UnimplementedQueryServer) PendingAccount

func (*UnimplementedQueryServer) PendingAccountAll

Jump to

Keyboard shortcuts

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