types

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 27 Imported by: 3

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeMint    = "mint"
	EventTypeReclaim = "reclaim"

	AttributeKeyAmount     = "amount"
	AttributeKeyDenom      = "denom"
	AttributeKeyRecipient  = "recipient"
	AttributeValueCategory = ModuleName
)

OPB module event types

View Source
const (
	// ModuleName is the name of the OPB module
	ModuleName = "opb"

	// StoreKey is the string store representation
	StoreKey = ModuleName

	// QuerierRoute is the querier route for the OPB module
	QuerierRoute = ModuleName

	// RouterKey is the msg router key for the OPB module
	RouterKey = ModuleName

	// PointTokenFeeCollectorName is the root string for the fee collector account address for the point token
	PointTokenFeeCollectorName = "opb_point_token_fee_collector"
)
View Source
const (
	TypeMsgMint    = "mint"    // type for MsgMint
	TypeMsgReclaim = "reclaim" // type for MsgReclaim
)
View Source
const (
	// DefaultBaseTokenDenom is the denom of the base native token by default
	DefaultBaseTokenDenom = "uirita"

	// DefaultPointTokenDenom is the denom of the native point token by default
	DefaultPointTokenDenom = "upoint"

	// DefaultUnrestrictedTokenTransfer is set to false, which
	// means that the token transfer is under certain constraint
	DefaultUnrestrictedTokenTransfer = true
)
View Source
const (
	QueryParameters = "parameters"
)

Variables

View Source
var (
	ErrInvalidAmount = sdkerrors.Register(ModuleName, 2, "invalid amount")
	ErrInvalidDenom  = sdkerrors.Register(ModuleName, 3, "invalid denom")
	ErrUnauthorized  = sdkerrors.Register(ModuleName, 4, "unauthorized operation")
)
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 (
	ErrInvalidLengthOpb        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOpb          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOpb = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyBaseTokenDenom            = []byte("BaseTokenDenom")
	KeyPointTokenDenom           = []byte("PointTokenDenom")
	KeyBaseTokenManager          = []byte("BaseTokenManager")
	KeyUnrestrictedTokenTransfer = []byte("UnrestrictedTokenTransfer")
)

Parameter store keys

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 (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary interfaces and concrete types on the provided Amino codec. These types are used for Amino JSON serialization.

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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis validates the provided genesis state to ensure the expected invariants holds.

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(name string) sdk.AccAddress
}

AccountKeeper defines the expected account keeper (noalias)

type BankKeeper

type BankKeeper interface {
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected bank keeper (noalias)

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

GenesisState defines the OPB module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState creates a default GenesisState object

func NewGenesisState

func NewGenesisState(params Params) *GenesisState

NewGenesisState creates a new GenesisState object

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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 MsgClient

type MsgClient interface {
	// Mint defines a method for minting the base native token.
	Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error)
	// Reclaim defines a method for reclaiming the specified native token
	// from the corresponding escrow.
	Reclaim(ctx context.Context, in *MsgReclaim, opts ...grpc.CallOption) (*MsgReclaimResponse, 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 MsgMint

type MsgMint struct {
	Amount    uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Operator  string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
}

MsgMint defines a message to mint the base native token.

func NewMsgMint

func NewMsgMint(amount uint64, recipient sdk.AccAddress, operator sdk.AccAddress) *MsgMint

NewMsgMint creates a new MsgMint instance.

func (*MsgMint) Descriptor

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

func (*MsgMint) Equal

func (this *MsgMint) Equal(that interface{}) bool

func (MsgMint) GetSignBytes

func (m MsgMint) GetSignBytes() []byte

GetSignBytes implements Msg.

func (MsgMint) GetSigners

func (m MsgMint) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgMint) Marshal

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

func (*MsgMint) MarshalTo

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

func (*MsgMint) MarshalToSizedBuffer

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

func (*MsgMint) ProtoMessage

func (*MsgMint) ProtoMessage()

func (*MsgMint) Reset

func (m *MsgMint) Reset()

func (MsgMint) Route

func (m MsgMint) Route() string

Route implements Msg.

func (*MsgMint) Size

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

func (*MsgMint) String

func (m *MsgMint) String() string

func (MsgMint) Type

func (m MsgMint) Type() string

Type implements Msg.

func (*MsgMint) Unmarshal

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

func (MsgMint) ValidateBasic

func (m MsgMint) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgMint) XXX_DiscardUnknown

func (m *MsgMint) XXX_DiscardUnknown()

func (*MsgMint) XXX_Marshal

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

func (*MsgMint) XXX_Merge

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

func (*MsgMint) XXX_Size

func (m *MsgMint) XXX_Size() int

func (*MsgMint) XXX_Unmarshal

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

type MsgMintResponse

type MsgMintResponse struct {
}

MsgMintResponse defines the Msg/Mint response type.

func (*MsgMintResponse) Descriptor

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

func (*MsgMintResponse) Marshal

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

func (*MsgMintResponse) MarshalTo

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

func (*MsgMintResponse) MarshalToSizedBuffer

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

func (*MsgMintResponse) ProtoMessage

func (*MsgMintResponse) ProtoMessage()

func (*MsgMintResponse) Reset

func (m *MsgMintResponse) Reset()

func (*MsgMintResponse) Size

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

func (*MsgMintResponse) String

func (m *MsgMintResponse) String() string

func (*MsgMintResponse) Unmarshal

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

func (*MsgMintResponse) XXX_DiscardUnknown

func (m *MsgMintResponse) XXX_DiscardUnknown()

func (*MsgMintResponse) XXX_Marshal

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

func (*MsgMintResponse) XXX_Merge

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

func (*MsgMintResponse) XXX_Size

func (m *MsgMintResponse) XXX_Size() int

func (*MsgMintResponse) XXX_Unmarshal

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

type MsgReclaim

type MsgReclaim struct {
	Denom     string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Operator  string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
}

MsgReclaim defines a message to reclaim the specified native token.

func NewMsgReclaim

func NewMsgReclaim(denom string, recipient sdk.AccAddress, operator sdk.AccAddress) *MsgReclaim

NewMsgReclaim creates a new MsgReclaim instance.

func (*MsgReclaim) Descriptor

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

func (*MsgReclaim) Equal

func (this *MsgReclaim) Equal(that interface{}) bool

func (MsgReclaim) GetSignBytes

func (m MsgReclaim) GetSignBytes() []byte

GetSignBytes implements Msg.

func (MsgReclaim) GetSigners

func (m MsgReclaim) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgReclaim) Marshal

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

func (*MsgReclaim) MarshalTo

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

func (*MsgReclaim) MarshalToSizedBuffer

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

func (*MsgReclaim) ProtoMessage

func (*MsgReclaim) ProtoMessage()

func (*MsgReclaim) Reset

func (m *MsgReclaim) Reset()

func (MsgReclaim) Route

func (m MsgReclaim) Route() string

Route implements Msg.

func (*MsgReclaim) Size

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

func (*MsgReclaim) String

func (m *MsgReclaim) String() string

func (MsgReclaim) Type

func (m MsgReclaim) Type() string

Type implements Msg.

func (*MsgReclaim) Unmarshal

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

func (MsgReclaim) ValidateBasic

func (m MsgReclaim) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgReclaim) XXX_DiscardUnknown

func (m *MsgReclaim) XXX_DiscardUnknown()

func (*MsgReclaim) XXX_Marshal

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

func (*MsgReclaim) XXX_Merge

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

func (*MsgReclaim) XXX_Size

func (m *MsgReclaim) XXX_Size() int

func (*MsgReclaim) XXX_Unmarshal

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

type MsgReclaimResponse

type MsgReclaimResponse struct {
}

MsgReclaimResponse defines the Msg/Reclaim response type.

func (*MsgReclaimResponse) Descriptor

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

func (*MsgReclaimResponse) Marshal

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

func (*MsgReclaimResponse) MarshalTo

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

func (*MsgReclaimResponse) MarshalToSizedBuffer

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

func (*MsgReclaimResponse) ProtoMessage

func (*MsgReclaimResponse) ProtoMessage()

func (*MsgReclaimResponse) Reset

func (m *MsgReclaimResponse) Reset()

func (*MsgReclaimResponse) Size

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

func (*MsgReclaimResponse) String

func (m *MsgReclaimResponse) String() string

func (*MsgReclaimResponse) Unmarshal

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

func (*MsgReclaimResponse) XXX_DiscardUnknown

func (m *MsgReclaimResponse) XXX_DiscardUnknown()

func (*MsgReclaimResponse) XXX_Marshal

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

func (*MsgReclaimResponse) XXX_Merge

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

func (*MsgReclaimResponse) XXX_Size

func (m *MsgReclaimResponse) XXX_Size() int

func (*MsgReclaimResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// Mint defines a method for minting the base native token.
	Mint(context.Context, *MsgMint) (*MsgMintResponse, error)
	// Reclaim defines a method for reclaiming the specified native token
	// from the corresponding escrow.
	Reclaim(context.Context, *MsgReclaim) (*MsgReclaimResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
	BaseTokenDenom            string `protobuf:"bytes,1,opt,name=base_token_denom,json=baseTokenDenom,proto3" json:"base_token_denom,omitempty"`
	PointTokenDenom           string `protobuf:"bytes,2,opt,name=point_token_denom,json=pointTokenDenom,proto3" json:"point_token_denom,omitempty"`
	BaseTokenManager          string `protobuf:"bytes,3,opt,name=base_token_manager,json=baseTokenManager,proto3" json:"base_token_manager,omitempty"`
	UnrestrictedTokenTransfer bool   `` /* 139-byte string literal not displayed */
}

Params defines the parameters for the OPB module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns the module default parameters

func NewParams

func NewParams(
	baseTokenDenom string,
	pointTokenDenom string,
	baseTokenManager string,
	unrestrictedTokenTransfer bool,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs implements params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type PermKeeper

type PermKeeper interface {
	IsRootAdmin(ctx sdk.Context, address sdk.AccAddress) bool
	IsBaseM1Admin(ctx sdk.Context, address sdk.AccAddress) bool
	IsPlatformUser(ctx sdk.Context, address sdk.AccAddress) bool
}

PermKeeper defines the expected perm keeper (noalias)

type QueryClient

type QueryClient interface {
	// Params queries the parameters of the OPB module
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the response type for the Query/Params RPC method

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Params queries the parameters of the OPB module
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type Token

type Token interface {
	GetSymbol() string
}

type TokenKeeper

type TokenKeeper interface {
	GetOwner(ctx sdk.Context, denom string) (sdk.AccAddress, error)
	GetToken(ctx sdk.Context, denom string) (Token, error)
	MintToken(ctx sdk.Context, symbol string, amount uint64, recipient sdk.AccAddress, owner sdk.AccAddress) error
}

TokenKeeper defines the expected token keeper (noalias)

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Mint

func (*UnimplementedMsgServer) Reclaim

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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