Documentation ¶
Index ¶
- Constants
- Variables
- func GetAdminAccountKey(adminAccount AdminAccount) []byte
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func StringCompare(a, b string) bool
- type AdminAccount
- func (*AdminAccount) Descriptor() ([]byte, []int)
- func (m *AdminAccount) GetAdminAddress() string
- func (m *AdminAccount) GetAdminType() AdminType
- func (m *AdminAccount) Marshal() (dAtA []byte, err error)
- func (m *AdminAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *AdminAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AdminAccount) ProtoMessage()
- func (m *AdminAccount) Reset()
- func (m *AdminAccount) Size() (n int)
- func (m *AdminAccount) String() string
- func (m *AdminAccount) Unmarshal(dAtA []byte) error
- func (m *AdminAccount) XXX_DiscardUnknown()
- func (m *AdminAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AdminAccount) XXX_Merge(src proto.Message)
- func (m *AdminAccount) XXX_Size() int
- func (m *AdminAccount) XXX_Unmarshal(b []byte) error
- type AdminType
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetAdminAccounts() []*AdminAccount
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type GetParamsRequest
- func (*GetParamsRequest) Descriptor() ([]byte, []int)
- func (m *GetParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *GetParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetParamsRequest) ProtoMessage()
- func (m *GetParamsRequest) Reset()
- func (m *GetParamsRequest) Size() (n int)
- func (m *GetParamsRequest) String() string
- func (m *GetParamsRequest) Unmarshal(dAtA []byte) error
- func (m *GetParamsRequest) XXX_DiscardUnknown()
- func (m *GetParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetParamsRequest) XXX_Merge(src proto.Message)
- func (m *GetParamsRequest) XXX_Size() int
- func (m *GetParamsRequest) XXX_Unmarshal(b []byte) error
- type GetParamsResponse
- func (*GetParamsResponse) Descriptor() ([]byte, []int)
- func (m *GetParamsResponse) GetParams() *Params
- func (m *GetParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *GetParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetParamsResponse) ProtoMessage()
- func (m *GetParamsResponse) Reset()
- func (m *GetParamsResponse) Size() (n int)
- func (m *GetParamsResponse) String() string
- func (m *GetParamsResponse) Unmarshal(dAtA []byte) error
- func (m *GetParamsResponse) XXX_DiscardUnknown()
- func (m *GetParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetParamsResponse) XXX_Merge(src proto.Message)
- func (m *GetParamsResponse) XXX_Size() int
- func (m *GetParamsResponse) XXX_Unmarshal(b []byte) error
- type ListAccountsRequest
- func (*ListAccountsRequest) Descriptor() ([]byte, []int)
- func (m *ListAccountsRequest) Marshal() (dAtA []byte, err error)
- func (m *ListAccountsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListAccountsRequest) ProtoMessage()
- func (m *ListAccountsRequest) Reset()
- func (m *ListAccountsRequest) Size() (n int)
- func (m *ListAccountsRequest) String() string
- func (m *ListAccountsRequest) Unmarshal(dAtA []byte) error
- func (m *ListAccountsRequest) XXX_DiscardUnknown()
- func (m *ListAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListAccountsRequest) XXX_Merge(src proto.Message)
- func (m *ListAccountsRequest) XXX_Size() int
- func (m *ListAccountsRequest) XXX_Unmarshal(b []byte) error
- type ListAccountsResponse
- func (*ListAccountsResponse) Descriptor() ([]byte, []int)
- func (m *ListAccountsResponse) GetKeys() []*AdminAccount
- func (m *ListAccountsResponse) Marshal() (dAtA []byte, err error)
- func (m *ListAccountsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ListAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListAccountsResponse) ProtoMessage()
- func (m *ListAccountsResponse) Reset()
- func (m *ListAccountsResponse) Size() (n int)
- func (m *ListAccountsResponse) String() string
- func (m *ListAccountsResponse) Unmarshal(dAtA []byte) error
- func (m *ListAccountsResponse) XXX_DiscardUnknown()
- func (m *ListAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListAccountsResponse) XXX_Merge(src proto.Message)
- func (m *ListAccountsResponse) XXX_Size() int
- func (m *ListAccountsResponse) XXX_Unmarshal(b []byte) error
- type MsgAddAccount
- func (*MsgAddAccount) Descriptor() ([]byte, []int)
- func (m *MsgAddAccount) GetAccount() *AdminAccount
- func (m *MsgAddAccount) GetSignBytes() []byte
- func (m *MsgAddAccount) GetSigner() string
- func (m *MsgAddAccount) GetSigners() []sdk.AccAddress
- func (m *MsgAddAccount) Marshal() (dAtA []byte, err error)
- func (m *MsgAddAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddAccount) ProtoMessage()
- func (m *MsgAddAccount) Reset()
- func (m *MsgAddAccount) Route() string
- func (m *MsgAddAccount) Size() (n int)
- func (m *MsgAddAccount) String() string
- func (m *MsgAddAccount) Type() string
- func (m *MsgAddAccount) Unmarshal(dAtA []byte) error
- func (m *MsgAddAccount) ValidateBasic() error
- func (m *MsgAddAccount) XXX_DiscardUnknown()
- func (m *MsgAddAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddAccount) XXX_Merge(src proto.Message)
- func (m *MsgAddAccount) XXX_Size() int
- func (m *MsgAddAccount) XXX_Unmarshal(b []byte) error
- type MsgAddAccountResponse
- func (*MsgAddAccountResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddAccountResponse) ProtoMessage()
- func (m *MsgAddAccountResponse) Reset()
- func (m *MsgAddAccountResponse) Size() (n int)
- func (m *MsgAddAccountResponse) String() string
- func (m *MsgAddAccountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddAccountResponse) XXX_DiscardUnknown()
- func (m *MsgAddAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddAccountResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddAccountResponse) XXX_Size() int
- func (m *MsgAddAccountResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgRemoveAccount
- func (*MsgRemoveAccount) Descriptor() ([]byte, []int)
- func (m *MsgRemoveAccount) GetAccount() *AdminAccount
- func (m *MsgRemoveAccount) GetSignBytes() []byte
- func (m *MsgRemoveAccount) GetSigner() string
- func (m *MsgRemoveAccount) GetSigners() []sdk.AccAddress
- func (m *MsgRemoveAccount) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveAccount) ProtoMessage()
- func (m *MsgRemoveAccount) Reset()
- func (m *MsgRemoveAccount) Route() string
- func (m *MsgRemoveAccount) Size() (n int)
- func (m *MsgRemoveAccount) String() string
- func (m *MsgRemoveAccount) Type() string
- func (m *MsgRemoveAccount) Unmarshal(dAtA []byte) error
- func (m *MsgRemoveAccount) ValidateBasic() error
- func (m *MsgRemoveAccount) XXX_DiscardUnknown()
- func (m *MsgRemoveAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveAccount) XXX_Merge(src proto.Message)
- func (m *MsgRemoveAccount) XXX_Size() int
- func (m *MsgRemoveAccount) XXX_Unmarshal(b []byte) error
- type MsgRemoveAccountResponse
- func (*MsgRemoveAccountResponse) Descriptor() ([]byte, []int)
- func (m *MsgRemoveAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveAccountResponse) ProtoMessage()
- func (m *MsgRemoveAccountResponse) Reset()
- func (m *MsgRemoveAccountResponse) Size() (n int)
- func (m *MsgRemoveAccountResponse) String() string
- func (m *MsgRemoveAccountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRemoveAccountResponse) XXX_DiscardUnknown()
- func (m *MsgRemoveAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveAccountResponse) XXX_Merge(src proto.Message)
- func (m *MsgRemoveAccountResponse) XXX_Size() int
- func (m *MsgRemoveAccountResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetParams
- func (*MsgSetParams) Descriptor() ([]byte, []int)
- func (m *MsgSetParams) GetParams() *Params
- func (m *MsgSetParams) GetSignBytes() []byte
- func (m *MsgSetParams) GetSigner() string
- func (m *MsgSetParams) GetSigners() []sdk.AccAddress
- func (m *MsgSetParams) Marshal() (dAtA []byte, err error)
- func (m *MsgSetParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetParams) ProtoMessage()
- func (m *MsgSetParams) Reset()
- func (m *MsgSetParams) Route() string
- func (m *MsgSetParams) Size() (n int)
- func (m *MsgSetParams) String() string
- func (m *MsgSetParams) Type() string
- func (m *MsgSetParams) Unmarshal(dAtA []byte) error
- func (m *MsgSetParams) ValidateBasic() error
- func (m *MsgSetParams) XXX_DiscardUnknown()
- func (m *MsgSetParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetParams) XXX_Merge(src proto.Message)
- func (m *MsgSetParams) XXX_Size() int
- func (m *MsgSetParams) XXX_Unmarshal(b []byte) error
- type MsgSetParamsResponse
- func (*MsgSetParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetParamsResponse) ProtoMessage()
- func (m *MsgSetParamsResponse) Reset()
- func (m *MsgSetParamsResponse) Size() (n int)
- func (m *MsgSetParamsResponse) String() string
- func (m *MsgSetParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetParamsResponse) XXX_DiscardUnknown()
- func (m *MsgSetParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetParamsResponse) XXX_Size() int
- func (m *MsgSetParamsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddAccount(ctx context.Context, req *MsgAddAccount) (*MsgAddAccountResponse, error)
- func (*UnimplementedMsgServer) RemoveAccount(ctx context.Context, req *MsgRemoveAccount) (*MsgRemoveAccountResponse, error)
- func (*UnimplementedMsgServer) SetParams(ctx context.Context, req *MsgSetParams) (*MsgSetParamsResponse, error)
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName is the name of the whitelist module ModuleName = "admin" // StoreKey is the string store representation StoreKey = ModuleName // QuerierRoute is the querier route QuerierRoute = ModuleName // RouterKey is the msg router key RouterKey = ModuleName )
Variables ¶
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var AdminAccountStorePrefix = []byte{0x01}
var AdminType_name = map[int32]string{
0: "CLPDEX",
1: "PMTPREWARDS",
2: "TOKENREGISTRY",
3: "ETHBRIDGE",
4: "ADMIN",
5: "MARGIN",
}
var AdminType_value = map[string]int32{
"CLPDEX": 0,
"PMTPREWARDS": 1,
"TOKENREGISTRY": 2,
"ETHBRIDGE": 3,
"ADMIN": 4,
"MARGIN": 5,
}
var ErrPermissionDenied = sdkerrors.Register(ModuleName, 1, "permission denied")
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var ParamsStorePrefix = []byte{0x02}
Functions ¶
func GetAdminAccountKey ¶
func GetAdminAccountKey(adminAccount AdminAccount) []byte
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers concrete types on the Amino codec
func RegisterMsgServer ¶
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func StringCompare ¶ added in v1.4.0
Types ¶
type AdminAccount ¶
type AdminAccount struct { AdminType AdminType `protobuf:"varint,1,opt,name=admin_type,json=adminType,proto3,enum=sifnode.admin.v1.AdminType" json:"admin_type,omitempty"` AdminAddress string `protobuf:"bytes,2,opt,name=admin_address,json=adminAddress,proto3" json:"admin_address,omitempty"` }
func InitialAdminAccounts ¶
func InitialAdminAccounts() []*AdminAccount
func ProdAdminAccounts ¶
func ProdAdminAccounts() []*AdminAccount
func (*AdminAccount) Descriptor ¶
func (*AdminAccount) Descriptor() ([]byte, []int)
func (*AdminAccount) GetAdminAddress ¶
func (m *AdminAccount) GetAdminAddress() string
func (*AdminAccount) GetAdminType ¶
func (m *AdminAccount) GetAdminType() AdminType
func (*AdminAccount) Marshal ¶
func (m *AdminAccount) Marshal() (dAtA []byte, err error)
func (*AdminAccount) MarshalToSizedBuffer ¶
func (m *AdminAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AdminAccount) ProtoMessage ¶
func (*AdminAccount) ProtoMessage()
func (*AdminAccount) Reset ¶
func (m *AdminAccount) Reset()
func (*AdminAccount) Size ¶
func (m *AdminAccount) Size() (n int)
func (*AdminAccount) String ¶
func (m *AdminAccount) String() string
func (*AdminAccount) Unmarshal ¶
func (m *AdminAccount) Unmarshal(dAtA []byte) error
func (*AdminAccount) XXX_DiscardUnknown ¶
func (m *AdminAccount) XXX_DiscardUnknown()
func (*AdminAccount) XXX_Marshal ¶
func (m *AdminAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AdminAccount) XXX_Merge ¶
func (m *AdminAccount) XXX_Merge(src proto.Message)
func (*AdminAccount) XXX_Size ¶
func (m *AdminAccount) XXX_Size() int
func (*AdminAccount) XXX_Unmarshal ¶
func (m *AdminAccount) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct {
AdminAccounts []*AdminAccount `protobuf:"bytes,1,rep,name=admin_accounts,json=adminAccounts,proto3" json:"admin_accounts,omitempty"`
}
func UnmarshalGenesis ¶
func UnmarshalGenesis(marshaler codec.JSONCodec, state json.RawMessage) GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetAdminAccounts ¶
func (m *GenesisState) GetAdminAccounts() []*AdminAccount
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type GetParamsRequest ¶ added in v1.4.0
type GetParamsRequest struct { }
func (*GetParamsRequest) Descriptor ¶ added in v1.4.0
func (*GetParamsRequest) Descriptor() ([]byte, []int)
func (*GetParamsRequest) Marshal ¶ added in v1.4.0
func (m *GetParamsRequest) Marshal() (dAtA []byte, err error)
func (*GetParamsRequest) MarshalTo ¶ added in v1.4.0
func (m *GetParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetParamsRequest) MarshalToSizedBuffer ¶ added in v1.4.0
func (m *GetParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetParamsRequest) ProtoMessage ¶ added in v1.4.0
func (*GetParamsRequest) ProtoMessage()
func (*GetParamsRequest) Reset ¶ added in v1.4.0
func (m *GetParamsRequest) Reset()
func (*GetParamsRequest) Size ¶ added in v1.4.0
func (m *GetParamsRequest) Size() (n int)
func (*GetParamsRequest) String ¶ added in v1.4.0
func (m *GetParamsRequest) String() string
func (*GetParamsRequest) Unmarshal ¶ added in v1.4.0
func (m *GetParamsRequest) Unmarshal(dAtA []byte) error
func (*GetParamsRequest) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *GetParamsRequest) XXX_DiscardUnknown()
func (*GetParamsRequest) XXX_Marshal ¶ added in v1.4.0
func (m *GetParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetParamsRequest) XXX_Merge ¶ added in v1.4.0
func (m *GetParamsRequest) XXX_Merge(src proto.Message)
func (*GetParamsRequest) XXX_Size ¶ added in v1.4.0
func (m *GetParamsRequest) XXX_Size() int
func (*GetParamsRequest) XXX_Unmarshal ¶ added in v1.4.0
func (m *GetParamsRequest) XXX_Unmarshal(b []byte) error
type GetParamsResponse ¶ added in v1.4.0
type GetParamsResponse struct {
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
func (*GetParamsResponse) Descriptor ¶ added in v1.4.0
func (*GetParamsResponse) Descriptor() ([]byte, []int)
func (*GetParamsResponse) GetParams ¶ added in v1.4.0
func (m *GetParamsResponse) GetParams() *Params
func (*GetParamsResponse) Marshal ¶ added in v1.4.0
func (m *GetParamsResponse) Marshal() (dAtA []byte, err error)
func (*GetParamsResponse) MarshalTo ¶ added in v1.4.0
func (m *GetParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetParamsResponse) MarshalToSizedBuffer ¶ added in v1.4.0
func (m *GetParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetParamsResponse) ProtoMessage ¶ added in v1.4.0
func (*GetParamsResponse) ProtoMessage()
func (*GetParamsResponse) Reset ¶ added in v1.4.0
func (m *GetParamsResponse) Reset()
func (*GetParamsResponse) Size ¶ added in v1.4.0
func (m *GetParamsResponse) Size() (n int)
func (*GetParamsResponse) String ¶ added in v1.4.0
func (m *GetParamsResponse) String() string
func (*GetParamsResponse) Unmarshal ¶ added in v1.4.0
func (m *GetParamsResponse) Unmarshal(dAtA []byte) error
func (*GetParamsResponse) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *GetParamsResponse) XXX_DiscardUnknown()
func (*GetParamsResponse) XXX_Marshal ¶ added in v1.4.0
func (m *GetParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetParamsResponse) XXX_Merge ¶ added in v1.4.0
func (m *GetParamsResponse) XXX_Merge(src proto.Message)
func (*GetParamsResponse) XXX_Size ¶ added in v1.4.0
func (m *GetParamsResponse) XXX_Size() int
func (*GetParamsResponse) XXX_Unmarshal ¶ added in v1.4.0
func (m *GetParamsResponse) XXX_Unmarshal(b []byte) error
type ListAccountsRequest ¶
type ListAccountsRequest struct { }
func (*ListAccountsRequest) Descriptor ¶
func (*ListAccountsRequest) Descriptor() ([]byte, []int)
func (*ListAccountsRequest) Marshal ¶
func (m *ListAccountsRequest) Marshal() (dAtA []byte, err error)
func (*ListAccountsRequest) MarshalTo ¶
func (m *ListAccountsRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListAccountsRequest) MarshalToSizedBuffer ¶
func (m *ListAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListAccountsRequest) ProtoMessage ¶
func (*ListAccountsRequest) ProtoMessage()
func (*ListAccountsRequest) Reset ¶
func (m *ListAccountsRequest) Reset()
func (*ListAccountsRequest) Size ¶
func (m *ListAccountsRequest) Size() (n int)
func (*ListAccountsRequest) String ¶
func (m *ListAccountsRequest) String() string
func (*ListAccountsRequest) Unmarshal ¶
func (m *ListAccountsRequest) Unmarshal(dAtA []byte) error
func (*ListAccountsRequest) XXX_DiscardUnknown ¶
func (m *ListAccountsRequest) XXX_DiscardUnknown()
func (*ListAccountsRequest) XXX_Marshal ¶
func (m *ListAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListAccountsRequest) XXX_Merge ¶
func (m *ListAccountsRequest) XXX_Merge(src proto.Message)
func (*ListAccountsRequest) XXX_Size ¶
func (m *ListAccountsRequest) XXX_Size() int
func (*ListAccountsRequest) XXX_Unmarshal ¶
func (m *ListAccountsRequest) XXX_Unmarshal(b []byte) error
type ListAccountsResponse ¶
type ListAccountsResponse struct {
Keys []*AdminAccount `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
}
func (*ListAccountsResponse) Descriptor ¶
func (*ListAccountsResponse) Descriptor() ([]byte, []int)
func (*ListAccountsResponse) GetKeys ¶
func (m *ListAccountsResponse) GetKeys() []*AdminAccount
func (*ListAccountsResponse) Marshal ¶
func (m *ListAccountsResponse) Marshal() (dAtA []byte, err error)
func (*ListAccountsResponse) MarshalTo ¶
func (m *ListAccountsResponse) MarshalTo(dAtA []byte) (int, error)
func (*ListAccountsResponse) MarshalToSizedBuffer ¶
func (m *ListAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListAccountsResponse) ProtoMessage ¶
func (*ListAccountsResponse) ProtoMessage()
func (*ListAccountsResponse) Reset ¶
func (m *ListAccountsResponse) Reset()
func (*ListAccountsResponse) Size ¶
func (m *ListAccountsResponse) Size() (n int)
func (*ListAccountsResponse) String ¶
func (m *ListAccountsResponse) String() string
func (*ListAccountsResponse) Unmarshal ¶
func (m *ListAccountsResponse) Unmarshal(dAtA []byte) error
func (*ListAccountsResponse) XXX_DiscardUnknown ¶
func (m *ListAccountsResponse) XXX_DiscardUnknown()
func (*ListAccountsResponse) XXX_Marshal ¶
func (m *ListAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListAccountsResponse) XXX_Merge ¶
func (m *ListAccountsResponse) XXX_Merge(src proto.Message)
func (*ListAccountsResponse) XXX_Size ¶
func (m *ListAccountsResponse) XXX_Size() int
func (*ListAccountsResponse) XXX_Unmarshal ¶
func (m *ListAccountsResponse) XXX_Unmarshal(b []byte) error
type MsgAddAccount ¶
type MsgAddAccount struct { Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` Account *AdminAccount `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` }
func (*MsgAddAccount) Descriptor ¶
func (*MsgAddAccount) Descriptor() ([]byte, []int)
func (*MsgAddAccount) GetAccount ¶
func (m *MsgAddAccount) GetAccount() *AdminAccount
func (*MsgAddAccount) GetSignBytes ¶
func (m *MsgAddAccount) GetSignBytes() []byte
func (*MsgAddAccount) GetSigner ¶
func (m *MsgAddAccount) GetSigner() string
func (*MsgAddAccount) GetSigners ¶
func (m *MsgAddAccount) GetSigners() []sdk.AccAddress
func (*MsgAddAccount) Marshal ¶
func (m *MsgAddAccount) Marshal() (dAtA []byte, err error)
func (*MsgAddAccount) MarshalToSizedBuffer ¶
func (m *MsgAddAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddAccount) ProtoMessage ¶
func (*MsgAddAccount) ProtoMessage()
func (*MsgAddAccount) Reset ¶
func (m *MsgAddAccount) Reset()
func (*MsgAddAccount) Route ¶
func (m *MsgAddAccount) Route() string
func (*MsgAddAccount) Size ¶
func (m *MsgAddAccount) Size() (n int)
func (*MsgAddAccount) String ¶
func (m *MsgAddAccount) String() string
func (*MsgAddAccount) Type ¶
func (m *MsgAddAccount) Type() string
func (*MsgAddAccount) Unmarshal ¶
func (m *MsgAddAccount) Unmarshal(dAtA []byte) error
func (*MsgAddAccount) ValidateBasic ¶
func (m *MsgAddAccount) ValidateBasic() error
func (*MsgAddAccount) XXX_DiscardUnknown ¶
func (m *MsgAddAccount) XXX_DiscardUnknown()
func (*MsgAddAccount) XXX_Marshal ¶
func (m *MsgAddAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddAccount) XXX_Merge ¶
func (m *MsgAddAccount) XXX_Merge(src proto.Message)
func (*MsgAddAccount) XXX_Size ¶
func (m *MsgAddAccount) XXX_Size() int
func (*MsgAddAccount) XXX_Unmarshal ¶
func (m *MsgAddAccount) XXX_Unmarshal(b []byte) error
type MsgAddAccountResponse ¶
type MsgAddAccountResponse struct { }
func (*MsgAddAccountResponse) Descriptor ¶
func (*MsgAddAccountResponse) Descriptor() ([]byte, []int)
func (*MsgAddAccountResponse) Marshal ¶
func (m *MsgAddAccountResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddAccountResponse) MarshalTo ¶
func (m *MsgAddAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddAccountResponse) MarshalToSizedBuffer ¶
func (m *MsgAddAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddAccountResponse) ProtoMessage ¶
func (*MsgAddAccountResponse) ProtoMessage()
func (*MsgAddAccountResponse) Reset ¶
func (m *MsgAddAccountResponse) Reset()
func (*MsgAddAccountResponse) Size ¶
func (m *MsgAddAccountResponse) Size() (n int)
func (*MsgAddAccountResponse) String ¶
func (m *MsgAddAccountResponse) String() string
func (*MsgAddAccountResponse) Unmarshal ¶
func (m *MsgAddAccountResponse) Unmarshal(dAtA []byte) error
func (*MsgAddAccountResponse) XXX_DiscardUnknown ¶
func (m *MsgAddAccountResponse) XXX_DiscardUnknown()
func (*MsgAddAccountResponse) XXX_Marshal ¶
func (m *MsgAddAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddAccountResponse) XXX_Merge ¶
func (m *MsgAddAccountResponse) XXX_Merge(src proto.Message)
func (*MsgAddAccountResponse) XXX_Size ¶
func (m *MsgAddAccountResponse) XXX_Size() int
func (*MsgAddAccountResponse) XXX_Unmarshal ¶
func (m *MsgAddAccountResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { AddAccount(ctx context.Context, in *MsgAddAccount, opts ...grpc.CallOption) (*MsgAddAccountResponse, error) RemoveAccount(ctx context.Context, in *MsgRemoveAccount, opts ...grpc.CallOption) (*MsgRemoveAccountResponse, error) SetParams(ctx context.Context, in *MsgSetParams, opts ...grpc.CallOption) (*MsgSetParamsResponse, 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 MsgRemoveAccount ¶
type MsgRemoveAccount struct { Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` Account *AdminAccount `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` }
func (*MsgRemoveAccount) Descriptor ¶
func (*MsgRemoveAccount) Descriptor() ([]byte, []int)
func (*MsgRemoveAccount) GetAccount ¶
func (m *MsgRemoveAccount) GetAccount() *AdminAccount
func (*MsgRemoveAccount) GetSignBytes ¶
func (m *MsgRemoveAccount) GetSignBytes() []byte
func (*MsgRemoveAccount) GetSigner ¶
func (m *MsgRemoveAccount) GetSigner() string
func (*MsgRemoveAccount) GetSigners ¶
func (m *MsgRemoveAccount) GetSigners() []sdk.AccAddress
func (*MsgRemoveAccount) Marshal ¶
func (m *MsgRemoveAccount) Marshal() (dAtA []byte, err error)
func (*MsgRemoveAccount) MarshalToSizedBuffer ¶
func (m *MsgRemoveAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveAccount) ProtoMessage ¶
func (*MsgRemoveAccount) ProtoMessage()
func (*MsgRemoveAccount) Reset ¶
func (m *MsgRemoveAccount) Reset()
func (*MsgRemoveAccount) Route ¶
func (m *MsgRemoveAccount) Route() string
func (*MsgRemoveAccount) Size ¶
func (m *MsgRemoveAccount) Size() (n int)
func (*MsgRemoveAccount) String ¶
func (m *MsgRemoveAccount) String() string
func (*MsgRemoveAccount) Type ¶
func (m *MsgRemoveAccount) Type() string
func (*MsgRemoveAccount) Unmarshal ¶
func (m *MsgRemoveAccount) Unmarshal(dAtA []byte) error
func (*MsgRemoveAccount) ValidateBasic ¶
func (m *MsgRemoveAccount) ValidateBasic() error
func (*MsgRemoveAccount) XXX_DiscardUnknown ¶
func (m *MsgRemoveAccount) XXX_DiscardUnknown()
func (*MsgRemoveAccount) XXX_Marshal ¶
func (m *MsgRemoveAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveAccount) XXX_Merge ¶
func (m *MsgRemoveAccount) XXX_Merge(src proto.Message)
func (*MsgRemoveAccount) XXX_Size ¶
func (m *MsgRemoveAccount) XXX_Size() int
func (*MsgRemoveAccount) XXX_Unmarshal ¶
func (m *MsgRemoveAccount) XXX_Unmarshal(b []byte) error
type MsgRemoveAccountResponse ¶
type MsgRemoveAccountResponse struct { }
func (*MsgRemoveAccountResponse) Descriptor ¶
func (*MsgRemoveAccountResponse) Descriptor() ([]byte, []int)
func (*MsgRemoveAccountResponse) Marshal ¶
func (m *MsgRemoveAccountResponse) Marshal() (dAtA []byte, err error)
func (*MsgRemoveAccountResponse) MarshalTo ¶
func (m *MsgRemoveAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRemoveAccountResponse) MarshalToSizedBuffer ¶
func (m *MsgRemoveAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveAccountResponse) ProtoMessage ¶
func (*MsgRemoveAccountResponse) ProtoMessage()
func (*MsgRemoveAccountResponse) Reset ¶
func (m *MsgRemoveAccountResponse) Reset()
func (*MsgRemoveAccountResponse) Size ¶
func (m *MsgRemoveAccountResponse) Size() (n int)
func (*MsgRemoveAccountResponse) String ¶
func (m *MsgRemoveAccountResponse) String() string
func (*MsgRemoveAccountResponse) Unmarshal ¶
func (m *MsgRemoveAccountResponse) Unmarshal(dAtA []byte) error
func (*MsgRemoveAccountResponse) XXX_DiscardUnknown ¶
func (m *MsgRemoveAccountResponse) XXX_DiscardUnknown()
func (*MsgRemoveAccountResponse) XXX_Marshal ¶
func (m *MsgRemoveAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveAccountResponse) XXX_Merge ¶
func (m *MsgRemoveAccountResponse) XXX_Merge(src proto.Message)
func (*MsgRemoveAccountResponse) XXX_Size ¶
func (m *MsgRemoveAccountResponse) XXX_Size() int
func (*MsgRemoveAccountResponse) XXX_Unmarshal ¶
func (m *MsgRemoveAccountResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { AddAccount(context.Context, *MsgAddAccount) (*MsgAddAccountResponse, error) RemoveAccount(context.Context, *MsgRemoveAccount) (*MsgRemoveAccountResponse, error) SetParams(context.Context, *MsgSetParams) (*MsgSetParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetParams ¶ added in v1.4.0
type MsgSetParams struct { Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` }
func (*MsgSetParams) Descriptor ¶ added in v1.4.0
func (*MsgSetParams) Descriptor() ([]byte, []int)
func (*MsgSetParams) GetParams ¶ added in v1.4.0
func (m *MsgSetParams) GetParams() *Params
func (*MsgSetParams) GetSignBytes ¶ added in v1.4.0
func (m *MsgSetParams) GetSignBytes() []byte
func (*MsgSetParams) GetSigner ¶ added in v1.4.0
func (m *MsgSetParams) GetSigner() string
func (*MsgSetParams) GetSigners ¶ added in v1.4.0
func (m *MsgSetParams) GetSigners() []sdk.AccAddress
func (*MsgSetParams) Marshal ¶ added in v1.4.0
func (m *MsgSetParams) Marshal() (dAtA []byte, err error)
func (*MsgSetParams) MarshalTo ¶ added in v1.4.0
func (m *MsgSetParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetParams) MarshalToSizedBuffer ¶ added in v1.4.0
func (m *MsgSetParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetParams) ProtoMessage ¶ added in v1.4.0
func (*MsgSetParams) ProtoMessage()
func (*MsgSetParams) Reset ¶ added in v1.4.0
func (m *MsgSetParams) Reset()
func (*MsgSetParams) Route ¶ added in v1.4.0
func (m *MsgSetParams) Route() string
func (*MsgSetParams) Size ¶ added in v1.4.0
func (m *MsgSetParams) Size() (n int)
func (*MsgSetParams) String ¶ added in v1.4.0
func (m *MsgSetParams) String() string
func (*MsgSetParams) Type ¶ added in v1.4.0
func (m *MsgSetParams) Type() string
func (*MsgSetParams) Unmarshal ¶ added in v1.4.0
func (m *MsgSetParams) Unmarshal(dAtA []byte) error
func (*MsgSetParams) ValidateBasic ¶ added in v1.4.0
func (m *MsgSetParams) ValidateBasic() error
func (*MsgSetParams) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *MsgSetParams) XXX_DiscardUnknown()
func (*MsgSetParams) XXX_Marshal ¶ added in v1.4.0
func (m *MsgSetParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetParams) XXX_Merge ¶ added in v1.4.0
func (m *MsgSetParams) XXX_Merge(src proto.Message)
func (*MsgSetParams) XXX_Size ¶ added in v1.4.0
func (m *MsgSetParams) XXX_Size() int
func (*MsgSetParams) XXX_Unmarshal ¶ added in v1.4.0
func (m *MsgSetParams) XXX_Unmarshal(b []byte) error
type MsgSetParamsResponse ¶ added in v1.4.0
type MsgSetParamsResponse struct { }
func (*MsgSetParamsResponse) Descriptor ¶ added in v1.4.0
func (*MsgSetParamsResponse) Descriptor() ([]byte, []int)
func (*MsgSetParamsResponse) Marshal ¶ added in v1.4.0
func (m *MsgSetParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetParamsResponse) MarshalTo ¶ added in v1.4.0
func (m *MsgSetParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetParamsResponse) MarshalToSizedBuffer ¶ added in v1.4.0
func (m *MsgSetParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetParamsResponse) ProtoMessage ¶ added in v1.4.0
func (*MsgSetParamsResponse) ProtoMessage()
func (*MsgSetParamsResponse) Reset ¶ added in v1.4.0
func (m *MsgSetParamsResponse) Reset()
func (*MsgSetParamsResponse) Size ¶ added in v1.4.0
func (m *MsgSetParamsResponse) Size() (n int)
func (*MsgSetParamsResponse) String ¶ added in v1.4.0
func (m *MsgSetParamsResponse) String() string
func (*MsgSetParamsResponse) Unmarshal ¶ added in v1.4.0
func (m *MsgSetParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgSetParamsResponse) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *MsgSetParamsResponse) XXX_DiscardUnknown()
func (*MsgSetParamsResponse) XXX_Marshal ¶ added in v1.4.0
func (m *MsgSetParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetParamsResponse) XXX_Merge ¶ added in v1.4.0
func (m *MsgSetParamsResponse) XXX_Merge(src proto.Message)
func (*MsgSetParamsResponse) XXX_Size ¶ added in v1.4.0
func (m *MsgSetParamsResponse) XXX_Size() int
func (*MsgSetParamsResponse) XXX_Unmarshal ¶ added in v1.4.0
func (m *MsgSetParamsResponse) XXX_Unmarshal(b []byte) error
type Params ¶ added in v1.4.0
type Params struct {
SubmitProposalFee github_com_cosmos_cosmos_sdk_types.Uint `` /* 155-byte string literal not displayed */
}
func (*Params) Descriptor ¶ added in v1.4.0
func (*Params) MarshalToSizedBuffer ¶ added in v1.4.0
func (*Params) ProtoMessage ¶ added in v1.4.0
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v1.4.0
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v1.4.0
func (*Params) XXX_Unmarshal ¶ added in v1.4.0
type QueryClient ¶
type QueryClient interface { ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) GetParams(ctx context.Context, in *GetParamsRequest, opts ...grpc.CallOption) (*GetParamsResponse, 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 QueryServer ¶
type QueryServer interface { ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) GetParams(context.Context, *GetParamsRequest) (*GetParamsResponse, 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) AddAccount ¶
func (*UnimplementedMsgServer) AddAccount(ctx context.Context, req *MsgAddAccount) (*MsgAddAccountResponse, error)
func (*UnimplementedMsgServer) RemoveAccount ¶
func (*UnimplementedMsgServer) RemoveAccount(ctx context.Context, req *MsgRemoveAccount) (*MsgRemoveAccountResponse, error)
func (*UnimplementedMsgServer) SetParams ¶ added in v1.4.0
func (*UnimplementedMsgServer) SetParams(ctx context.Context, req *MsgSetParams) (*MsgSetParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) GetParams ¶ added in v1.4.0
func (*UnimplementedQueryServer) GetParams(ctx context.Context, req *GetParamsRequest) (*GetParamsResponse, error)
func (*UnimplementedQueryServer) ListAccounts ¶
func (*UnimplementedQueryServer) ListAccounts(ctx context.Context, req *ListAccountsRequest) (*ListAccountsResponse, error)