types

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AdminAccountStorePrefix = []byte{0x01}
View Source
var AdminType_name = map[int32]string{
	0: "CLPDEX",
	1: "PMTPREWARDS",
	2: "TOKENREGISTRY",
	3: "ETHBRIDGE",
	4: "ADMIN",
	5: "MARGIN",
}
View Source
var AdminType_value = map[string]int32{
	"CLPDEX":        0,
	"PMTPREWARDS":   1,
	"TOKENREGISTRY": 2,
	"ETHBRIDGE":     3,
	"ADMIN":         4,
	"MARGIN":        5,
}
View Source
var ErrPermissionDenied = sdkerrors.Register(ModuleName, 1, "permission denied")
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func StringCompare added in v1.4.0

func StringCompare(a, b string) bool

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

func (m *AdminAccount) MarshalTo(dAtA []byte) (int, 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 AdminType

type AdminType int32
const (
	AdminType_CLPDEX        AdminType = 0
	AdminType_PMTPREWARDS   AdminType = 1
	AdminType_TOKENREGISTRY AdminType = 2
	AdminType_ETHBRIDGE     AdminType = 3
	AdminType_ADMIN         AdminType = 4
	AdminType_MARGIN        AdminType = 5
)

func (AdminType) EnumDescriptor

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

func (AdminType) String

func (x AdminType) String() string

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

func (m *MsgAddAccount) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MsgRemoveAccount) MarshalTo(dAtA []byte) (int, 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

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) Descriptor() ([]byte, []int)

func (*Params) Marshal added in v1.4.0

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

func (*Params) MarshalTo added in v1.4.0

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

func (*Params) MarshalToSizedBuffer added in v1.4.0

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

func (*Params) ProtoMessage added in v1.4.0

func (*Params) ProtoMessage()

func (*Params) Reset added in v1.4.0

func (m *Params) Reset()

func (*Params) Size added in v1.4.0

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

func (*Params) String added in v1.4.0

func (m *Params) String() string

func (*Params) Unmarshal added in v1.4.0

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

func (*Params) XXX_DiscardUnknown added in v1.4.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v1.4.0

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

func (*Params) XXX_Merge added in v1.4.0

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

func (*Params) XXX_Size added in v1.4.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v1.4.0

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

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

func (*UnimplementedMsgServer) SetParams added in v1.4.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GetParams added in v1.4.0

func (*UnimplementedQueryServer) ListAccounts

Jump to

Keyboard shortcuts

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