v1

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 36 Imported by: 6

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAuthz        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuthz          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAuthz = fmt.Errorf("proto: unexpected end of group")
)
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 (
	ErrInvalidLengthMsg        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsg          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group")
)
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 DepositAuthorization_Scope_name = map[int32]string{
	0: "invalid",
	1: "deployment",
	2: "bid",
}
View Source
var DepositAuthorization_Scope_value = map[string]int32{
	"invalid":    0,
	"deployment": 1,
	"bid":        2,
}
View Source
var (
	// ModuleCdc references the global x/deployment module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/deployment and
	// defined at the application level.
	//
	// Deprecated: ModuleCdc use is deprecated
	ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)
View Source
var (
	MsgTypeAccountDeposit = ""
)
View Source
var Msg_serviceDesc = _Msg_serviceDesc
View Source
var Query_serviceDesc = _Query_serviceDesc

Functions

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers the x/provider interfaces types with the interface registry

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec register concrete types on codec

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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type Authorization

type Authorization interface {
	authz.Authorization
	TryAccept(context.Context, sdk.Msg, bool) (authz.AcceptResponse, error)
	GetSpendLimit() sdk.Coin
}

type DepositAuthorization

type DepositAuthorization struct {
	// SpendLimit is the maximum amount the grantee is authorized to spend from the granter's account.
	// This limit applies cumulatively across all deposit operations within the authorized scopes.
	// Once this limit is reached, the authorization becomes invalid and no further deposits can be made.
	SpendLimit types.Coin `protobuf:"bytes,1,opt,name=spend_limit,json=spendLimit,proto3" json:"spend_limit"`
	// Scopes defines the specific types of deposit operations this authorization permits.
	// This provides fine-grained control over what operations
	// the grantee can perform using the granter's funds.
	Scopes DepositAuthorizationScopes `` /* 165-byte string literal not displayed */
}

DepositAuthorization allows the grantee to deposit up to spend_limit coins from the granter's account for Akash deployments and bids. This authorization is used within the Cosmos SDK authz module to grant scoped permissions for deposit operations. The authorization can be restricted to specific scopes (deployment or bid) to limit what types of deposits the grantee is authorized to make on behalf of the granter.

func NewDepositAuthorization

func NewDepositAuthorization(scopes DepositAuthorizationScopes, spendLimit sdk.Coin) *DepositAuthorization

NewDepositAuthorization creates a new DepositAuthorization object.

func (*DepositAuthorization) Accept

Accept implements Authorization.Accept.

func (*DepositAuthorization) Descriptor

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

func (*DepositAuthorization) GetScopes

func (*DepositAuthorization) GetSpendLimit

func (m *DepositAuthorization) GetSpendLimit() types.Coin

func (*DepositAuthorization) Marshal

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

func (*DepositAuthorization) MarshalTo

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

func (*DepositAuthorization) MarshalToSizedBuffer

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

func (*DepositAuthorization) MsgTypeURL

func (m *DepositAuthorization) MsgTypeURL() string

MsgTypeURL implements Authorization.MsgTypeURL.

func (*DepositAuthorization) ProtoMessage

func (*DepositAuthorization) ProtoMessage()

func (*DepositAuthorization) Reset

func (m *DepositAuthorization) Reset()

func (*DepositAuthorization) Size

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

func (*DepositAuthorization) String

func (m *DepositAuthorization) String() string

func (*DepositAuthorization) TryAccept

func (m *DepositAuthorization) TryAccept(_ context.Context, msg sdk.Msg, partial bool) (authz.AcceptResponse, error)

func (*DepositAuthorization) Unmarshal

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

func (*DepositAuthorization) ValidateBasic

func (m *DepositAuthorization) ValidateBasic() error

ValidateBasic implements Authorization.ValidateBasic.

func (*DepositAuthorization) XXX_DiscardUnknown

func (m *DepositAuthorization) XXX_DiscardUnknown()

func (*DepositAuthorization) XXX_Marshal

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

func (*DepositAuthorization) XXX_Merge

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

func (*DepositAuthorization) XXX_Size

func (m *DepositAuthorization) XXX_Size() int

func (*DepositAuthorization) XXX_Unmarshal

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

type DepositAuthorizationScopes

type DepositAuthorizationScopes []DepositAuthorization_Scope

func (DepositAuthorizationScopes) Has

type DepositAuthorization_Scope

type DepositAuthorization_Scope int32

Scope defines the types of deposit operations that can be authorized. This enum is used to restrict the authorization to specific deposit contexts, allowing fine-grained permission control within the authz system.

const (
	// Prefix should start with 0 in enum. So declaring dummy state.
	DepositScopeInvalid DepositAuthorization_Scope = 0
	// DepositScopeDeployment allows deposits for deployment-related operations.
	DepositScopeDeployment DepositAuthorization_Scope = 1
	// DepositScopeBid allows deposits for bid-related operations.
	DepositScopeBid DepositAuthorization_Scope = 2
)

func (DepositAuthorization_Scope) EnumDescriptor

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

func (DepositAuthorization_Scope) String

type GenesisState

type GenesisState struct {
	// Accounts is a list of accounts on the genesis state.
	Accounts pkg_akt_dev_go_node_escrow_types_v1.Accounts `` /* 133-byte string literal not displayed */
	// Payments is a list of fractional payments on the genesis state..
	Payments pkg_akt_dev_go_node_escrow_types_v1.Payments `` /* 133-byte string literal not displayed */
}

GenesisState defines the basic genesis state used by the escrow module.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetAccounts

func (*GenesisState) GetPayments

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 MsgAccountDeposit

type MsgAccountDeposit struct {
	// Signer is the account bech32 address of the user who wants to deposit into
	// an escrow account. Does not necessarily needs to be an owner of the deployment.
	// It is a string representing a valid bech32 account address.
	//
	// Example:
	//   "akash1..."
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer" yaml:"signer"`
	// ID is the unique identifier of the account.
	ID v1.Account `protobuf:"bytes,2,opt,name=id,proto3" json:"id" yaml:"id"`
	// Deposit contains information about the deposit amount and the source of the deposit to the escrow account.
	Deposit v11.Deposit `protobuf:"bytes,3,opt,name=deposit,proto3" json:"deposit" yaml:"deposit"`
}

MsgAccountDeposit represents a message to deposit funds into an existing escrow account on the blockchain. This is part of the interaction mechanism for managing deployment-related resources.

func NewMsgAccountDeposit

func NewMsgAccountDeposit(signer string, id idv1.Account, dep deposit.Deposit) *MsgAccountDeposit

NewMsgAccountDeposit creates a new MsgDepositDeployment instance

func (*MsgAccountDeposit) Descriptor

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

func (*MsgAccountDeposit) GetDeposit

func (m *MsgAccountDeposit) GetDeposit() v11.Deposit

func (*MsgAccountDeposit) GetID

func (m *MsgAccountDeposit) GetID() v1.Account

func (*MsgAccountDeposit) GetSignBytes deprecated

func (msg *MsgAccountDeposit) GetSignBytes() []byte

GetSignBytes encodes the message for signing

Deprecated: GetSignBytes is deprecated

func (*MsgAccountDeposit) GetSigner

func (m *MsgAccountDeposit) GetSigner() string

func (*MsgAccountDeposit) GetSigners

func (msg *MsgAccountDeposit) GetSigners() []sdk.AccAddress

GetSigners defines whose signature is required

func (*MsgAccountDeposit) Marshal

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

func (*MsgAccountDeposit) MarshalTo

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

func (*MsgAccountDeposit) MarshalToSizedBuffer

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

func (*MsgAccountDeposit) ProtoMessage

func (*MsgAccountDeposit) ProtoMessage()

func (*MsgAccountDeposit) Reset

func (m *MsgAccountDeposit) Reset()

func (*MsgAccountDeposit) Route

func (msg *MsgAccountDeposit) Route() string

Route implements the sdk.Msg interface

func (*MsgAccountDeposit) Size

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

func (*MsgAccountDeposit) String

func (m *MsgAccountDeposit) String() string

func (*MsgAccountDeposit) Type

func (msg *MsgAccountDeposit) Type() string

Type implements the sdk.Msg interface

func (*MsgAccountDeposit) Unmarshal

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

func (*MsgAccountDeposit) ValidateBasic

func (msg *MsgAccountDeposit) ValidateBasic() error

ValidateBasic does basic validation like check owner and groups length

func (*MsgAccountDeposit) XXX_DiscardUnknown

func (m *MsgAccountDeposit) XXX_DiscardUnknown()

func (*MsgAccountDeposit) XXX_Marshal

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

func (*MsgAccountDeposit) XXX_Merge

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

func (*MsgAccountDeposit) XXX_Size

func (m *MsgAccountDeposit) XXX_Size() int

func (*MsgAccountDeposit) XXX_Unmarshal

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

type MsgAccountDepositResponse

type MsgAccountDepositResponse struct {
}

MsgAccountDepositResponse defines response type for the MsgDeposit.

func (*MsgAccountDepositResponse) Descriptor

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

func (*MsgAccountDepositResponse) Marshal

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

func (*MsgAccountDepositResponse) MarshalTo

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

func (*MsgAccountDepositResponse) MarshalToSizedBuffer

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

func (*MsgAccountDepositResponse) ProtoMessage

func (*MsgAccountDepositResponse) ProtoMessage()

func (*MsgAccountDepositResponse) Reset

func (m *MsgAccountDepositResponse) Reset()

func (*MsgAccountDepositResponse) Size

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

func (*MsgAccountDepositResponse) String

func (m *MsgAccountDepositResponse) String() string

func (*MsgAccountDepositResponse) Unmarshal

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

func (*MsgAccountDepositResponse) XXX_DiscardUnknown

func (m *MsgAccountDepositResponse) XXX_DiscardUnknown()

func (*MsgAccountDepositResponse) XXX_Marshal

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

func (*MsgAccountDepositResponse) XXX_Merge

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

func (*MsgAccountDepositResponse) XXX_Size

func (m *MsgAccountDepositResponse) XXX_Size() int

func (*MsgAccountDepositResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// AccountDeposit deposits more funds into the escrow account.
	AccountDeposit(ctx context.Context, in *MsgAccountDeposit, opts ...grpc.CallOption) (*MsgAccountDepositResponse, 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 MsgServer

type MsgServer interface {
	// AccountDeposit deposits more funds into the escrow account.
	AccountDeposit(context.Context, *MsgAccountDeposit) (*MsgAccountDepositResponse, error)
}

MsgServer is the server API for Msg service.

type QueryAccountsRequest

type QueryAccountsRequest struct {
	// State represents the current state of an Account.
	State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	// Scope holds the scope of the account.
	XID string `protobuf:"bytes,2,opt,name=xid,proto3" json:"xid" yaml:"xid"`
	// Pagination is used to paginate the request.
	Pagination *query.PageRequest `protobuf:"bytes,5,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAccountRequest is request type for the Query/Account RPC method.

func (*QueryAccountsRequest) Descriptor

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

func (*QueryAccountsRequest) GetPagination

func (m *QueryAccountsRequest) GetPagination() *query.PageRequest

func (*QueryAccountsRequest) GetState

func (m *QueryAccountsRequest) GetState() string

func (*QueryAccountsRequest) GetXID

func (m *QueryAccountsRequest) GetXID() string

func (*QueryAccountsRequest) Marshal

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

func (*QueryAccountsRequest) MarshalTo

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

func (*QueryAccountsRequest) MarshalToSizedBuffer

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

func (*QueryAccountsRequest) ProtoMessage

func (*QueryAccountsRequest) ProtoMessage()

func (*QueryAccountsRequest) Reset

func (m *QueryAccountsRequest) Reset()

func (*QueryAccountsRequest) Size

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

func (*QueryAccountsRequest) String

func (m *QueryAccountsRequest) String() string

func (*QueryAccountsRequest) Unmarshal

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

func (*QueryAccountsRequest) XXX_DiscardUnknown

func (m *QueryAccountsRequest) XXX_DiscardUnknown()

func (*QueryAccountsRequest) XXX_Marshal

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

func (*QueryAccountsRequest) XXX_Merge

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

func (*QueryAccountsRequest) XXX_Size

func (m *QueryAccountsRequest) XXX_Size() int

func (*QueryAccountsRequest) XXX_Unmarshal

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

type QueryAccountsResponse

type QueryAccountsResponse struct {
	// Accounts is a list of Account.
	Accounts pkg_akt_dev_go_node_escrow_types_v1.Accounts `protobuf:"bytes,1,rep,name=accounts,proto3,castrepeated=pkg.akt.dev/go/node/escrow/types/v1.Accounts" json:"accounts"`
	// Pagination contains the information about response pagination.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryProvidersResponse is response type for the Query/Providers RPC method

func (*QueryAccountsResponse) Descriptor

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

func (*QueryAccountsResponse) GetAccounts

func (*QueryAccountsResponse) GetPagination

func (m *QueryAccountsResponse) GetPagination() *query.PageResponse

func (*QueryAccountsResponse) Marshal

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

func (*QueryAccountsResponse) MarshalTo

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

func (*QueryAccountsResponse) MarshalToSizedBuffer

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

func (*QueryAccountsResponse) ProtoMessage

func (*QueryAccountsResponse) ProtoMessage()

func (*QueryAccountsResponse) Reset

func (m *QueryAccountsResponse) Reset()

func (*QueryAccountsResponse) Size

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

func (*QueryAccountsResponse) String

func (m *QueryAccountsResponse) String() string

func (*QueryAccountsResponse) Unmarshal

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

func (*QueryAccountsResponse) XXX_DiscardUnknown

func (m *QueryAccountsResponse) XXX_DiscardUnknown()

func (*QueryAccountsResponse) XXX_Marshal

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

func (*QueryAccountsResponse) XXX_Merge

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

func (*QueryAccountsResponse) XXX_Size

func (m *QueryAccountsResponse) XXX_Size() int

func (*QueryAccountsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
	// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
	// Accounts queries all accounts.
	Accounts(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*QueryAccountsResponse, error)
	// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
	// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
	// Payments queries all payments.
	Payments(ctx context.Context, in *QueryPaymentsRequest, opts ...grpc.CallOption) (*QueryPaymentsResponse, 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 QueryPaymentsRequest

type QueryPaymentsRequest struct {
	// State represents the current state of a Payment.
	State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	XID   string `protobuf:"bytes,2,opt,name=xid,proto3" json:"xid" yaml:"xid"`
	// Pagination is used to paginate the request.
	Pagination *query.PageRequest `protobuf:"bytes,6,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryPaymentRequest is request type for the Query/Payment RPC method

func (*QueryPaymentsRequest) Descriptor

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

func (*QueryPaymentsRequest) GetPagination

func (m *QueryPaymentsRequest) GetPagination() *query.PageRequest

func (*QueryPaymentsRequest) GetState

func (m *QueryPaymentsRequest) GetState() string

func (*QueryPaymentsRequest) GetXID

func (m *QueryPaymentsRequest) GetXID() string

func (*QueryPaymentsRequest) Marshal

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

func (*QueryPaymentsRequest) MarshalTo

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

func (*QueryPaymentsRequest) MarshalToSizedBuffer

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

func (*QueryPaymentsRequest) ProtoMessage

func (*QueryPaymentsRequest) ProtoMessage()

func (*QueryPaymentsRequest) Reset

func (m *QueryPaymentsRequest) Reset()

func (*QueryPaymentsRequest) Size

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

func (*QueryPaymentsRequest) String

func (m *QueryPaymentsRequest) String() string

func (*QueryPaymentsRequest) Unmarshal

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

func (*QueryPaymentsRequest) XXX_DiscardUnknown

func (m *QueryPaymentsRequest) XXX_DiscardUnknown()

func (*QueryPaymentsRequest) XXX_Marshal

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

func (*QueryPaymentsRequest) XXX_Merge

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

func (*QueryPaymentsRequest) XXX_Size

func (m *QueryPaymentsRequest) XXX_Size() int

func (*QueryPaymentsRequest) XXX_Unmarshal

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

type QueryPaymentsResponse

type QueryPaymentsResponse struct {
	// Payments is a list of payments.
	Payments pkg_akt_dev_go_node_escrow_types_v1.Payments `protobuf:"bytes,1,rep,name=payments,proto3,castrepeated=pkg.akt.dev/go/node/escrow/types/v1.Payments" json:"payments"`
	// Pagination contains the information about response pagination.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryProvidersResponse is response type for the Query/Providers RPC method

func (*QueryPaymentsResponse) Descriptor

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

func (*QueryPaymentsResponse) GetPagination

func (m *QueryPaymentsResponse) GetPagination() *query.PageResponse

func (*QueryPaymentsResponse) GetPayments

func (*QueryPaymentsResponse) Marshal

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

func (*QueryPaymentsResponse) MarshalTo

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

func (*QueryPaymentsResponse) MarshalToSizedBuffer

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

func (*QueryPaymentsResponse) ProtoMessage

func (*QueryPaymentsResponse) ProtoMessage()

func (*QueryPaymentsResponse) Reset

func (m *QueryPaymentsResponse) Reset()

func (*QueryPaymentsResponse) Size

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

func (*QueryPaymentsResponse) String

func (m *QueryPaymentsResponse) String() string

func (*QueryPaymentsResponse) Unmarshal

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

func (*QueryPaymentsResponse) XXX_DiscardUnknown

func (m *QueryPaymentsResponse) XXX_DiscardUnknown()

func (*QueryPaymentsResponse) XXX_Marshal

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

func (*QueryPaymentsResponse) XXX_Merge

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

func (*QueryPaymentsResponse) XXX_Size

func (m *QueryPaymentsResponse) XXX_Size() int

func (*QueryPaymentsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
	// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
	// Accounts queries all accounts.
	Accounts(context.Context, *QueryAccountsRequest) (*QueryAccountsResponse, error)
	// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
	// buf:lint:ignore RPC_RESPONSE_STANDARD_NAME
	// Payments queries all payments.
	Payments(context.Context, *QueryPaymentsRequest) (*QueryPaymentsResponse, 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) AccountDeposit

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Accounts

func (*UnimplementedQueryServer) Payments

Jump to

Keyboard shortcuts

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