types

package
v0.13.5 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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",
}
View Source
var AdminType_value = map[string]int32{
	"CLPDEX":        0,
	"PMTPREWARDS":   1,
	"TOKENREGISTRY": 2,
	"ETHBRIDGE":     3,
	"ADMIN":         4,
}
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

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)

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
)

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

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

type MsgServer interface {
	AddAccount(context.Context, *MsgAddAccount) (*MsgAddAccountResponse, error)
	RemoveAccount(context.Context, *MsgRemoveAccount) (*MsgRemoveAccountResponse, error)
}

MsgServer is the server API for Msg service.

type QueryClient

type QueryClient interface {
	ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, 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)
}

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

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ListAccounts

Jump to

Keyboard shortcuts

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