precisebankv1

package
v0.4.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_Remainder_FullMethodName         = "/cosmos.evm.precisebank.v1.Query/Remainder"
	Query_FractionalBalance_FullMethodName = "/cosmos.evm.precisebank.v1.Query/FractionalBalance"
)

Variables

View Source
var File_cosmos_evm_precisebank_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_cosmos_evm_precisebank_v1_query_proto protoreflect.FileDescriptor
View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.evm.precisebank.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Remainder",
			Handler:    _Query_Remainder_Handler,
		},
		{
			MethodName: "FractionalBalance",
			Handler:    _Query_FractionalBalance_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/evm/precisebank/v1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type FractionalBalance

type FractionalBalance struct {

	// address is the address of the balance holder.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// amount indicates amount of only the fractional balance owned by the
	// address. FractionalBalance currently only supports tracking 1 single asset,
	// e.g. fractional balances of uatom.
	Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

FractionalBalance defines the fractional portion of an account balance

func (*FractionalBalance) Descriptor deprecated

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

Deprecated: Use FractionalBalance.ProtoReflect.Descriptor instead.

func (*FractionalBalance) GetAddress

func (x *FractionalBalance) GetAddress() string

func (*FractionalBalance) GetAmount

func (x *FractionalBalance) GetAmount() string

func (*FractionalBalance) ProtoMessage

func (*FractionalBalance) ProtoMessage()

func (*FractionalBalance) ProtoReflect

func (x *FractionalBalance) ProtoReflect() protoreflect.Message

func (*FractionalBalance) Reset

func (x *FractionalBalance) Reset()

func (*FractionalBalance) String

func (x *FractionalBalance) String() string

type GenesisState

type GenesisState struct {

	// balances is a list of all the balances in the precisebank module.
	Balances []*FractionalBalance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"`
	// remainder is an internal value of how much extra fractional digits are
	// still backed by the reserve, but not assigned to any account.
	Remainder string `protobuf:"bytes,2,opt,name=remainder,proto3" json:"remainder,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the precisebank module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetBalances

func (x *GenesisState) GetBalances() []*FractionalBalance

func (*GenesisState) GetRemainder

func (x *GenesisState) GetRemainder() string

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type QueryClient

type QueryClient interface {
	// Remainder returns the amount backed by the reserve, but not yet owned by
	// any account, i.e. not in circulation.
	Remainder(ctx context.Context, in *QueryRemainderRequest, opts ...grpc.CallOption) (*QueryRemainderResponse, error)
	// FractionalBalance returns only the fractional balance of an address. This
	// does not include any integer balance.
	FractionalBalance(ctx context.Context, in *QueryFractionalBalanceRequest, opts ...grpc.CallOption) (*QueryFractionalBalanceResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryFractionalBalanceRequest

type QueryFractionalBalanceRequest struct {

	// address is the account address to query  fractional balance for.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

QueryFractionalBalanceRequest defines the request type for Query/FractionalBalance method.

func (*QueryFractionalBalanceRequest) Descriptor deprecated

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

Deprecated: Use QueryFractionalBalanceRequest.ProtoReflect.Descriptor instead.

func (*QueryFractionalBalanceRequest) GetAddress

func (x *QueryFractionalBalanceRequest) GetAddress() string

func (*QueryFractionalBalanceRequest) ProtoMessage

func (*QueryFractionalBalanceRequest) ProtoMessage()

func (*QueryFractionalBalanceRequest) ProtoReflect

func (*QueryFractionalBalanceRequest) Reset

func (x *QueryFractionalBalanceRequest) Reset()

func (*QueryFractionalBalanceRequest) String

type QueryFractionalBalanceResponse

type QueryFractionalBalanceResponse struct {

	// fractional_balance is the fractional balance of the address.
	FractionalBalance *v1beta1.Coin `protobuf:"bytes,1,opt,name=fractional_balance,json=fractionalBalance,proto3" json:"fractional_balance,omitempty"`
	// contains filtered or unexported fields
}

QueryFractionalBalanceResponse defines the response type for Query/FractionalBalance method.

func (*QueryFractionalBalanceResponse) Descriptor deprecated

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

Deprecated: Use QueryFractionalBalanceResponse.ProtoReflect.Descriptor instead.

func (*QueryFractionalBalanceResponse) GetFractionalBalance

func (x *QueryFractionalBalanceResponse) GetFractionalBalance() *v1beta1.Coin

func (*QueryFractionalBalanceResponse) ProtoMessage

func (*QueryFractionalBalanceResponse) ProtoMessage()

func (*QueryFractionalBalanceResponse) ProtoReflect

func (*QueryFractionalBalanceResponse) Reset

func (x *QueryFractionalBalanceResponse) Reset()

func (*QueryFractionalBalanceResponse) String

type QueryRemainderRequest

type QueryRemainderRequest struct {
	// contains filtered or unexported fields
}

QueryRemainderRequest defines the request type for Query/Remainder method.

func (*QueryRemainderRequest) Descriptor deprecated

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

Deprecated: Use QueryRemainderRequest.ProtoReflect.Descriptor instead.

func (*QueryRemainderRequest) ProtoMessage

func (*QueryRemainderRequest) ProtoMessage()

func (*QueryRemainderRequest) ProtoReflect

func (x *QueryRemainderRequest) ProtoReflect() protoreflect.Message

func (*QueryRemainderRequest) Reset

func (x *QueryRemainderRequest) Reset()

func (*QueryRemainderRequest) String

func (x *QueryRemainderRequest) String() string

type QueryRemainderResponse

type QueryRemainderResponse struct {

	// remainder is the amount backed by the reserve, but not yet owned by any
	// account, i.e. not in circulation.
	Remainder *v1beta1.Coin `protobuf:"bytes,1,opt,name=remainder,proto3" json:"remainder,omitempty"`
	// contains filtered or unexported fields
}

QueryRemainderResponse defines the response type for Query/Remainder method.

func (*QueryRemainderResponse) Descriptor deprecated

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

Deprecated: Use QueryRemainderResponse.ProtoReflect.Descriptor instead.

func (*QueryRemainderResponse) GetRemainder

func (x *QueryRemainderResponse) GetRemainder() *v1beta1.Coin

func (*QueryRemainderResponse) ProtoMessage

func (*QueryRemainderResponse) ProtoMessage()

func (*QueryRemainderResponse) ProtoReflect

func (x *QueryRemainderResponse) ProtoReflect() protoreflect.Message

func (*QueryRemainderResponse) Reset

func (x *QueryRemainderResponse) Reset()

func (*QueryRemainderResponse) String

func (x *QueryRemainderResponse) String() string

type QueryServer

type QueryServer interface {
	// Remainder returns the amount backed by the reserve, but not yet owned by
	// any account, i.e. not in circulation.
	Remainder(context.Context, *QueryRemainderRequest) (*QueryRemainderResponse, error)
	// FractionalBalance returns only the fractional balance of an address. This
	// does not include any integer balance.
	FractionalBalance(context.Context, *QueryFractionalBalanceRequest) (*QueryFractionalBalanceResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Remainder

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Jump to

Keyboard shortcuts

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