accountsv1

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Overview

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

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

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_AccountQuery_FullMethodName  = "/cosmos.accounts.v1.Query/AccountQuery"
	Query_Schema_FullMethodName        = "/cosmos.accounts.v1.Query/Schema"
	Query_AccountType_FullMethodName   = "/cosmos.accounts.v1.Query/AccountType"
	Query_AccountNumber_FullMethodName = "/cosmos.accounts.v1.Query/AccountNumber"
)
View Source
const (
	Msg_Init_FullMethodName          = "/cosmos.accounts.v1.Msg/Init"
	Msg_Execute_FullMethodName       = "/cosmos.accounts.v1.Msg/Execute"
	Msg_ExecuteBundle_FullMethodName = "/cosmos.accounts.v1.Msg/ExecuteBundle"
)

Variables

View Source
var File_cosmos_accounts_v1_accounts_proto protoreflect.FileDescriptor
View Source
var File_cosmos_accounts_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_cosmos_accounts_v1_query_proto protoreflect.FileDescriptor
View Source
var File_cosmos_accounts_v1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.accounts.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Init",
			Handler:    _Msg_Init_Handler,
		},
		{
			MethodName: "Execute",
			Handler:    _Msg_Execute_Handler,
		},
		{
			MethodName: "ExecuteBundle",
			Handler:    _Msg_ExecuteBundle_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/accounts/v1/tx.proto",
}

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

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.accounts.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AccountQuery",
			Handler:    _Query_AccountQuery_Handler,
		},
		{
			MethodName: "Schema",
			Handler:    _Query_Schema_Handler,
		},
		{
			MethodName: "AccountType",
			Handler:    _Query_AccountType_Handler,
		},
		{
			MethodName: "AccountNumber",
			Handler:    _Query_AccountNumber_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/accounts/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 RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type AccountNumberRequest added in v0.8.0

type AccountNumberRequest struct {

	// address is the address of the account we want to know the number of.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

AccountNumberRequest returns the account number given the address.

func (*AccountNumberRequest) Descriptor deprecated added in v0.8.0

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

Deprecated: Use AccountNumberRequest.ProtoReflect.Descriptor instead.

func (*AccountNumberRequest) GetAddress added in v0.8.0

func (x *AccountNumberRequest) GetAddress() string

func (*AccountNumberRequest) ProtoMessage added in v0.8.0

func (*AccountNumberRequest) ProtoMessage()

func (*AccountNumberRequest) ProtoReflect added in v0.8.0

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

func (*AccountNumberRequest) Reset added in v0.8.0

func (x *AccountNumberRequest) Reset()

func (*AccountNumberRequest) String added in v0.8.0

func (x *AccountNumberRequest) String() string

type AccountNumberResponse added in v0.8.0

type AccountNumberResponse struct {

	// number is the account number of the provided address.
	Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

AccountNumberResponse is the response returned when querying the account number by address.

func (*AccountNumberResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use AccountNumberResponse.ProtoReflect.Descriptor instead.

func (*AccountNumberResponse) GetNumber added in v0.8.0

func (x *AccountNumberResponse) GetNumber() uint64

func (*AccountNumberResponse) ProtoMessage added in v0.8.0

func (*AccountNumberResponse) ProtoMessage()

func (*AccountNumberResponse) ProtoReflect added in v0.8.0

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

func (*AccountNumberResponse) Reset added in v0.8.0

func (x *AccountNumberResponse) Reset()

func (*AccountNumberResponse) String added in v0.8.0

func (x *AccountNumberResponse) String() string

type AccountQueryRequest

type AccountQueryRequest struct {

	// target defines the account to be queried.
	Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	// request defines the query message being sent to the account.
	Request *anypb.Any `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

AccountQueryRequest is the request type for the Query/AccountQuery RPC

func (*AccountQueryRequest) Descriptor deprecated

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

Deprecated: Use AccountQueryRequest.ProtoReflect.Descriptor instead.

func (*AccountQueryRequest) GetRequest

func (x *AccountQueryRequest) GetRequest() *anypb.Any

func (*AccountQueryRequest) GetTarget

func (x *AccountQueryRequest) GetTarget() string

func (*AccountQueryRequest) ProtoMessage

func (*AccountQueryRequest) ProtoMessage()

func (*AccountQueryRequest) ProtoReflect

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

func (*AccountQueryRequest) Reset

func (x *AccountQueryRequest) Reset()

func (*AccountQueryRequest) String

func (x *AccountQueryRequest) String() string

type AccountQueryResponse

type AccountQueryResponse struct {

	// response defines the query response of the account.
	Response *anypb.Any `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

AccountQueryResponse is the response type for the Query/AccountQuery RPC method.

func (*AccountQueryResponse) Descriptor deprecated

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

Deprecated: Use AccountQueryResponse.ProtoReflect.Descriptor instead.

func (*AccountQueryResponse) GetResponse

func (x *AccountQueryResponse) GetResponse() *anypb.Any

func (*AccountQueryResponse) ProtoMessage

func (*AccountQueryResponse) ProtoMessage()

func (*AccountQueryResponse) ProtoReflect

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

func (*AccountQueryResponse) Reset

func (x *AccountQueryResponse) Reset()

func (*AccountQueryResponse) String

func (x *AccountQueryResponse) String() string

type AccountTypeRequest added in v0.8.0

type AccountTypeRequest struct {

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

AccountTypeRequest is the request type for the Query/AccountType RPC method.

func (*AccountTypeRequest) Descriptor deprecated added in v0.8.0

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

Deprecated: Use AccountTypeRequest.ProtoReflect.Descriptor instead.

func (*AccountTypeRequest) GetAddress added in v0.8.0

func (x *AccountTypeRequest) GetAddress() string

func (*AccountTypeRequest) ProtoMessage added in v0.8.0

func (*AccountTypeRequest) ProtoMessage()

func (*AccountTypeRequest) ProtoReflect added in v0.8.0

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

func (*AccountTypeRequest) Reset added in v0.8.0

func (x *AccountTypeRequest) Reset()

func (*AccountTypeRequest) String added in v0.8.0

func (x *AccountTypeRequest) String() string

type AccountTypeResponse added in v0.8.0

type AccountTypeResponse struct {

	// account_type defines the account type for the address.
	AccountType string `protobuf:"bytes,1,opt,name=account_type,json=accountType,proto3" json:"account_type,omitempty"`
	// contains filtered or unexported fields
}

AccountTypeResponse is the response type for the Query/AccountType RPC method.

func (*AccountTypeResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use AccountTypeResponse.ProtoReflect.Descriptor instead.

func (*AccountTypeResponse) GetAccountType added in v0.8.0

func (x *AccountTypeResponse) GetAccountType() string

func (*AccountTypeResponse) ProtoMessage added in v0.8.0

func (*AccountTypeResponse) ProtoMessage()

func (*AccountTypeResponse) ProtoReflect added in v0.8.0

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

func (*AccountTypeResponse) Reset added in v0.8.0

func (x *AccountTypeResponse) Reset()

func (*AccountTypeResponse) String added in v0.8.0

func (x *AccountTypeResponse) String() string

type BundledTxResponse added in v0.8.0

type BundledTxResponse struct {

	// authentication_gas_used defines the gas used for the authentication part of the UserOperation.
	AuthenticationGasUsed uint64 `` /* 127-byte string literal not displayed */
	// bundler_payment_gas_used defines the gas used for the bundler payment part of the UserOperation.
	BundlerPaymentGasUsed uint64 `` /* 129-byte string literal not displayed */
	// bundler_payment_responses defines the responses of the bundler payment messages.
	// It can be empty if the bundler does not need any form of payment.
	BundlerPaymentResponses []*anypb.Any `` /* 132-byte string literal not displayed */
	// execution_gas_used defines the gas used for the execution part of the UserOperation.
	ExecutionGasUsed uint64 `protobuf:"varint,4,opt,name=execution_gas_used,json=executionGasUsed,proto3" json:"execution_gas_used,omitempty"`
	// execution_responses defines the responses of the execution messages.
	ExecutionResponses []*anypb.Any `protobuf:"bytes,5,rep,name=execution_responses,json=executionResponses,proto3" json:"execution_responses,omitempty"`
	// error defines the error that occurred during the execution of the UserOperation.
	// If the error is not empty, the UserOperation failed.
	// Other fields might be populated even if the error is not empty, for example
	// if the operation fails after the authentication step, the authentication_gas_used
	// field will be populated.
	Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

BundledTxResponse defines the response of a bundled tx. If the operation fails the error field will be populated, the used gas fields will also be populated depending on when the execution stopped. Bundler payment responses will be populated if the execution fails.

func (*BundledTxResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use BundledTxResponse.ProtoReflect.Descriptor instead.

func (*BundledTxResponse) GetAuthenticationGasUsed added in v0.8.0

func (x *BundledTxResponse) GetAuthenticationGasUsed() uint64

func (*BundledTxResponse) GetBundlerPaymentGasUsed added in v0.8.0

func (x *BundledTxResponse) GetBundlerPaymentGasUsed() uint64

func (*BundledTxResponse) GetBundlerPaymentResponses added in v0.8.0

func (x *BundledTxResponse) GetBundlerPaymentResponses() []*anypb.Any

func (*BundledTxResponse) GetError added in v0.8.0

func (x *BundledTxResponse) GetError() string

func (*BundledTxResponse) GetExecutionGasUsed added in v0.8.0

func (x *BundledTxResponse) GetExecutionGasUsed() uint64

func (*BundledTxResponse) GetExecutionResponses added in v0.8.0

func (x *BundledTxResponse) GetExecutionResponses() []*anypb.Any

func (*BundledTxResponse) ProtoMessage added in v0.8.0

func (*BundledTxResponse) ProtoMessage()

func (*BundledTxResponse) ProtoReflect added in v0.8.0

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

func (*BundledTxResponse) Reset added in v0.8.0

func (x *BundledTxResponse) Reset()

func (*BundledTxResponse) String added in v0.8.0

func (x *BundledTxResponse) String() string

type GenesisAccount added in v0.7.2

type GenesisAccount struct {

	// address is the address of the account.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// account_type is the account type of the account.
	AccountType string `protobuf:"bytes,2,opt,name=account_type,json=accountType,proto3" json:"account_type,omitempty"`
	// account_number is the account number of the account.
	AccountNumber uint64 `protobuf:"varint,3,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
	// state is the account state represented as a slice of raw key value byte pairs.
	State []*KVPair `protobuf:"bytes,4,rep,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

GenesisAccount defines an account to be initialized in the genesis state.

func (*GenesisAccount) Descriptor deprecated added in v0.7.2

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

Deprecated: Use GenesisAccount.ProtoReflect.Descriptor instead.

func (*GenesisAccount) GetAccountNumber added in v0.8.0

func (x *GenesisAccount) GetAccountNumber() uint64

func (*GenesisAccount) GetAccountType added in v0.7.2

func (x *GenesisAccount) GetAccountType() string

func (*GenesisAccount) GetAddress added in v0.7.2

func (x *GenesisAccount) GetAddress() string

func (*GenesisAccount) GetState added in v0.7.2

func (x *GenesisAccount) GetState() []*KVPair

func (*GenesisAccount) ProtoMessage added in v0.7.2

func (*GenesisAccount) ProtoMessage()

func (*GenesisAccount) ProtoReflect added in v0.7.2

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

func (*GenesisAccount) Reset added in v0.7.2

func (x *GenesisAccount) Reset()

func (*GenesisAccount) String added in v0.7.2

func (x *GenesisAccount) String() string

type GenesisState added in v0.7.2

type GenesisState struct {

	// accounts are the genesis accounts.
	Accounts []*GenesisAccount `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
	// init_accounts_msgs defines the genesis messages that will be executed to init the account.
	InitAccountMsgs []*MsgInit `protobuf:"bytes,2,rep,name=init_account_msgs,json=initAccountMsgs,proto3" json:"init_account_msgs,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the accounts' module's genesis state.

func (*GenesisState) Descriptor deprecated added in v0.7.2

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetAccounts added in v0.7.2

func (x *GenesisState) GetAccounts() []*GenesisAccount

func (*GenesisState) GetInitAccountMsgs added in v0.8.0

func (x *GenesisState) GetInitAccountMsgs() []*MsgInit

func (*GenesisState) ProtoMessage added in v0.7.2

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect added in v0.7.2

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

func (*GenesisState) Reset added in v0.7.2

func (x *GenesisState) Reset()

func (*GenesisState) String added in v0.7.2

func (x *GenesisState) String() string

type KVPair added in v0.7.2

type KVPair struct {

	// key is the key of the pair.
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// value is the value of the pair.
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

KVPair defines a key value pair.

func (*KVPair) Descriptor deprecated added in v0.7.2

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

Deprecated: Use KVPair.ProtoReflect.Descriptor instead.

func (*KVPair) GetKey added in v0.7.2

func (x *KVPair) GetKey() []byte

func (*KVPair) GetValue added in v0.7.2

func (x *KVPair) GetValue() []byte

func (*KVPair) ProtoMessage added in v0.7.2

func (*KVPair) ProtoMessage()

func (*KVPair) ProtoReflect added in v0.7.2

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

func (*KVPair) Reset added in v0.7.2

func (x *KVPair) Reset()

func (*KVPair) String added in v0.7.2

func (x *KVPair) String() string

type MsgClient

type MsgClient interface {
	// Init creates a new account in the chain.
	Init(ctx context.Context, in *MsgInit, opts ...grpc.CallOption) (*MsgInitResponse, error)
	// Execute executes a message to the target account.
	Execute(ctx context.Context, in *MsgExecute, opts ...grpc.CallOption) (*MsgExecuteResponse, error)
	// ExecuteBundle pertains account abstraction, it is used by the bundler
	// to execute multiple UserOperations in a single transaction message.
	ExecuteBundle(ctx context.Context, in *MsgExecuteBundle, opts ...grpc.CallOption) (*MsgExecuteBundleResponse, error)
}

MsgClient is the client API for Msg 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.

Msg defines the Msg service for the x/accounts module.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgExecute

type MsgExecute struct {

	// sender is the address of the sender of this message.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// target is the address of the account to be executed.
	Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	// message is the message to be sent to the account.
	Message *anypb.Any `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// funds contains the coins that the account wants to
	// send alongside the request.
	Funds []*v1beta1.Coin `protobuf:"bytes,4,rep,name=funds,proto3" json:"funds,omitempty"`
	// contains filtered or unexported fields
}

MsgExecute defines the Execute request type for the Msg/Execute RPC method.

func (*MsgExecute) Descriptor deprecated

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

Deprecated: Use MsgExecute.ProtoReflect.Descriptor instead.

func (*MsgExecute) GetFunds added in v0.8.0

func (x *MsgExecute) GetFunds() []*v1beta1.Coin

func (*MsgExecute) GetMessage

func (x *MsgExecute) GetMessage() *anypb.Any

func (*MsgExecute) GetSender

func (x *MsgExecute) GetSender() string

func (*MsgExecute) GetTarget

func (x *MsgExecute) GetTarget() string

func (*MsgExecute) ProtoMessage

func (*MsgExecute) ProtoMessage()

func (*MsgExecute) ProtoReflect

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

func (*MsgExecute) Reset

func (x *MsgExecute) Reset()

func (*MsgExecute) String

func (x *MsgExecute) String() string

type MsgExecuteBundle added in v0.8.0

type MsgExecuteBundle struct {

	// bundler defines the entity going through the standard TX flow
	// to execute one or multiple UserOperations on behalf of others.
	Bundler string `protobuf:"bytes,1,opt,name=bundler,proto3" json:"bundler,omitempty"`
	// txs defines the txs to execute on behalf of other users.
	Txs [][]byte `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

MsgExecuteBundle defines the ExecuteBundle request type for the Msg/ExecuteBundle RPC method.

func (*MsgExecuteBundle) Descriptor deprecated added in v0.8.0

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

Deprecated: Use MsgExecuteBundle.ProtoReflect.Descriptor instead.

func (*MsgExecuteBundle) GetBundler added in v0.8.0

func (x *MsgExecuteBundle) GetBundler() string

func (*MsgExecuteBundle) GetTxs added in v0.8.0

func (x *MsgExecuteBundle) GetTxs() [][]byte

func (*MsgExecuteBundle) ProtoMessage added in v0.8.0

func (*MsgExecuteBundle) ProtoMessage()

func (*MsgExecuteBundle) ProtoReflect added in v0.8.0

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

func (*MsgExecuteBundle) Reset added in v0.8.0

func (x *MsgExecuteBundle) Reset()

func (*MsgExecuteBundle) String added in v0.8.0

func (x *MsgExecuteBundle) String() string

type MsgExecuteBundleResponse added in v0.8.0

type MsgExecuteBundleResponse struct {

	// responses is the list of responses from the bundle txs.
	Responses []*BundledTxResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

MsgExecuteBundleResponse defines the ExecuteBundle response type for the Msg/ExecuteBundle RPC method.

func (*MsgExecuteBundleResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use MsgExecuteBundleResponse.ProtoReflect.Descriptor instead.

func (*MsgExecuteBundleResponse) GetResponses added in v0.8.0

func (x *MsgExecuteBundleResponse) GetResponses() []*BundledTxResponse

func (*MsgExecuteBundleResponse) ProtoMessage added in v0.8.0

func (*MsgExecuteBundleResponse) ProtoMessage()

func (*MsgExecuteBundleResponse) ProtoReflect added in v0.8.0

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

func (*MsgExecuteBundleResponse) Reset added in v0.8.0

func (x *MsgExecuteBundleResponse) Reset()

func (*MsgExecuteBundleResponse) String added in v0.8.0

func (x *MsgExecuteBundleResponse) String() string

type MsgExecuteResponse

type MsgExecuteResponse struct {

	// response is the response returned by the account implementation.
	Response *anypb.Any `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

MsgExecuteResponse defines the Execute response type for the Msg/Execute RPC method.

func (*MsgExecuteResponse) Descriptor deprecated

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

Deprecated: Use MsgExecuteResponse.ProtoReflect.Descriptor instead.

func (*MsgExecuteResponse) GetResponse

func (x *MsgExecuteResponse) GetResponse() *anypb.Any

func (*MsgExecuteResponse) ProtoMessage

func (*MsgExecuteResponse) ProtoMessage()

func (*MsgExecuteResponse) ProtoReflect

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

func (*MsgExecuteResponse) Reset

func (x *MsgExecuteResponse) Reset()

func (*MsgExecuteResponse) String

func (x *MsgExecuteResponse) String() string

type MsgInit

type MsgInit struct {

	// sender is the address of the sender of this message.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// account_type is the type of the account to be created.
	AccountType string `protobuf:"bytes,2,opt,name=account_type,json=accountType,proto3" json:"account_type,omitempty"`
	// message is the message to be sent to the account.
	Message *anypb.Any `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// funds contains the coins that the account wants to
	// send alongside the request.
	Funds []*v1beta1.Coin `protobuf:"bytes,4,rep,name=funds,proto3" json:"funds,omitempty"`
	// address_seed can be used to deterministically create the address of the account.
	// If not present the address will be generated based on its associated account number.
	AddressSeed []byte `protobuf:"bytes,5,opt,name=address_seed,json=addressSeed,proto3" json:"address_seed,omitempty"`
	// contains filtered or unexported fields
}

MsgInit defines the Create request type for the Msg/Create RPC method.

func (*MsgInit) Descriptor deprecated

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

Deprecated: Use MsgInit.ProtoReflect.Descriptor instead.

func (*MsgInit) GetAccountType

func (x *MsgInit) GetAccountType() string

func (*MsgInit) GetAddressSeed added in v0.8.0

func (x *MsgInit) GetAddressSeed() []byte

func (*MsgInit) GetFunds added in v0.8.0

func (x *MsgInit) GetFunds() []*v1beta1.Coin

func (*MsgInit) GetMessage

func (x *MsgInit) GetMessage() *anypb.Any

func (*MsgInit) GetSender

func (x *MsgInit) GetSender() string

func (*MsgInit) ProtoMessage

func (*MsgInit) ProtoMessage()

func (*MsgInit) ProtoReflect

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

func (*MsgInit) Reset

func (x *MsgInit) Reset()

func (*MsgInit) String

func (x *MsgInit) String() string

type MsgInitResponse

type MsgInitResponse struct {

	// account_address is the address of the newly created account.
	AccountAddress string `protobuf:"bytes,1,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"`
	// response is the response returned by the account implementation.
	Response *anypb.Any `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

MsgInitResponse defines the Create response type for the Msg/Create RPC method.

func (*MsgInitResponse) Descriptor deprecated

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

Deprecated: Use MsgInitResponse.ProtoReflect.Descriptor instead.

func (*MsgInitResponse) GetAccountAddress

func (x *MsgInitResponse) GetAccountAddress() string

func (*MsgInitResponse) GetResponse

func (x *MsgInitResponse) GetResponse() *anypb.Any

func (*MsgInitResponse) ProtoMessage

func (*MsgInitResponse) ProtoMessage()

func (*MsgInitResponse) ProtoReflect

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

func (*MsgInitResponse) Reset

func (x *MsgInitResponse) Reset()

func (*MsgInitResponse) String

func (x *MsgInitResponse) String() string

type MsgServer

type MsgServer interface {
	// Init creates a new account in the chain.
	Init(context.Context, *MsgInit) (*MsgInitResponse, error)
	// Execute executes a message to the target account.
	Execute(context.Context, *MsgExecute) (*MsgExecuteResponse, error)
	// ExecuteBundle pertains account abstraction, it is used by the bundler
	// to execute multiple UserOperations in a single transaction message.
	ExecuteBundle(context.Context, *MsgExecuteBundle) (*MsgExecuteBundleResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility.

Msg defines the Msg service for the x/accounts module.

type QueryClient

type QueryClient interface {
	// AccountQuery runs an account query.
	AccountQuery(ctx context.Context, in *AccountQueryRequest, opts ...grpc.CallOption) (*AccountQueryResponse, error)
	// Schema returns an x/account schema. Unstable.
	Schema(ctx context.Context, in *SchemaRequest, opts ...grpc.CallOption) (*SchemaResponse, error)
	// AccountType returns the account type for an address.
	AccountType(ctx context.Context, in *AccountTypeRequest, opts ...grpc.CallOption) (*AccountTypeResponse, error)
	// AccountNumber returns the account number given the account address.
	AccountNumber(ctx context.Context, in *AccountNumberRequest, opts ...grpc.CallOption) (*AccountNumberResponse, 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.

Query defines the Query service for the x/accounts module.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryServer

type QueryServer interface {
	// AccountQuery runs an account query.
	AccountQuery(context.Context, *AccountQueryRequest) (*AccountQueryResponse, error)
	// Schema returns an x/account schema. Unstable.
	Schema(context.Context, *SchemaRequest) (*SchemaResponse, error)
	// AccountType returns the account type for an address.
	AccountType(context.Context, *AccountTypeRequest) (*AccountTypeResponse, error)
	// AccountNumber returns the account number given the account address.
	AccountNumber(context.Context, *AccountNumberRequest) (*AccountNumberResponse, error)
	// contains filtered or unexported methods
}

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

Query defines the Query service for the x/accounts module.

type SchemaRequest added in v0.8.0

type SchemaRequest struct {

	// account_type defines the account type to query the schema for.
	AccountType string `protobuf:"bytes,1,opt,name=account_type,json=accountType,proto3" json:"account_type,omitempty"`
	// contains filtered or unexported fields
}

SchemaRequest is the request type for the Query/Schema RPC method.

func (*SchemaRequest) Descriptor deprecated added in v0.8.0

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

Deprecated: Use SchemaRequest.ProtoReflect.Descriptor instead.

func (*SchemaRequest) GetAccountType added in v0.8.0

func (x *SchemaRequest) GetAccountType() string

func (*SchemaRequest) ProtoMessage added in v0.8.0

func (*SchemaRequest) ProtoMessage()

func (*SchemaRequest) ProtoReflect added in v0.8.0

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

func (*SchemaRequest) Reset added in v0.8.0

func (x *SchemaRequest) Reset()

func (*SchemaRequest) String added in v0.8.0

func (x *SchemaRequest) String() string

type SchemaResponse added in v0.8.0

type SchemaResponse struct {

	// init_schema defines the schema descriptor for the Init account method.
	InitSchema *SchemaResponse_Handler `protobuf:"bytes,1,opt,name=init_schema,json=initSchema,proto3" json:"init_schema,omitempty"`
	// execute_handlers defines the schema descriptor for the Execute account method.
	ExecuteHandlers []*SchemaResponse_Handler `protobuf:"bytes,2,rep,name=execute_handlers,json=executeHandlers,proto3" json:"execute_handlers,omitempty"`
	// query_handlers defines the schema descriptor for the Query account method.
	QueryHandlers []*SchemaResponse_Handler `protobuf:"bytes,3,rep,name=query_handlers,json=queryHandlers,proto3" json:"query_handlers,omitempty"`
	// contains filtered or unexported fields
}

SchemaResponse is the response type for the Query/Schema RPC method.

func (*SchemaResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use SchemaResponse.ProtoReflect.Descriptor instead.

func (*SchemaResponse) GetExecuteHandlers added in v0.8.0

func (x *SchemaResponse) GetExecuteHandlers() []*SchemaResponse_Handler

func (*SchemaResponse) GetInitSchema added in v0.8.0

func (x *SchemaResponse) GetInitSchema() *SchemaResponse_Handler

func (*SchemaResponse) GetQueryHandlers added in v0.8.0

func (x *SchemaResponse) GetQueryHandlers() []*SchemaResponse_Handler

func (*SchemaResponse) ProtoMessage added in v0.8.0

func (*SchemaResponse) ProtoMessage()

func (*SchemaResponse) ProtoReflect added in v0.8.0

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

func (*SchemaResponse) Reset added in v0.8.0

func (x *SchemaResponse) Reset()

func (*SchemaResponse) String added in v0.8.0

func (x *SchemaResponse) String() string

type SchemaResponse_Handler added in v0.8.0

type SchemaResponse_Handler struct {

	// request is the request name
	Request string `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// response is the response name
	Response string `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

Handler defines a schema descriptor for a handler. Where request and response are names that can be used to lookup the reflection descriptor.

func (*SchemaResponse_Handler) Descriptor deprecated added in v0.8.0

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

Deprecated: Use SchemaResponse_Handler.ProtoReflect.Descriptor instead.

func (*SchemaResponse_Handler) GetRequest added in v0.8.0

func (x *SchemaResponse_Handler) GetRequest() string

func (*SchemaResponse_Handler) GetResponse added in v0.8.0

func (x *SchemaResponse_Handler) GetResponse() string

func (*SchemaResponse_Handler) ProtoMessage added in v0.8.0

func (*SchemaResponse_Handler) ProtoMessage()

func (*SchemaResponse_Handler) ProtoReflect added in v0.8.0

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

func (*SchemaResponse_Handler) Reset added in v0.8.0

func (x *SchemaResponse_Handler) Reset()

func (*SchemaResponse_Handler) String added in v0.8.0

func (x *SchemaResponse_Handler) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct{}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedMsgServer) Execute

func (UnimplementedMsgServer) ExecuteBundle added in v0.8.0

func (UnimplementedMsgServer) Init

type UnimplementedQueryServer

type UnimplementedQueryServer struct{}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedQueryServer) AccountNumber added in v0.8.0

func (UnimplementedQueryServer) AccountQuery

func (UnimplementedQueryServer) AccountType added in v0.8.0

func (UnimplementedQueryServer) Schema added in v0.8.0

type UnsafeMsgServer

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

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

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