v1beta1

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package v1beta1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const DefaultMaxGas = 2_000_000
View Source
const DefaultSmartAccountId uint64 = 0
View Source
const TypeMsgActivateAccount = "activate_account"
View Source
const TypeMsgRecover = "recover"
View Source
const TypeQueryGenerateAccountRequest = "query_generate_account"

Variables

View Source
var (
	ErrInvalidLengthAccount        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccount          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAccount = 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 (
	WhitelistCodeID = []byte("WhitelistCodeID")
	DisableMsgsList = []byte("DisableMsgsList")
	MaxGasExecute   = []byte("MaxGasExecute")
)

Parameter store keys

View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = 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 (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func PubKeyDecode

func PubKeyDecode(pubKey *codectypes.Any) (cryptotypes.PubKey, error)

PubKeyDecode decode *Any to cryptotypes.PubKey

func PubKeyToAny

func PubKeyToAny(cdc codec.Codec, raw []byte) (*codectypes.Any, error)

PubKeyToAny convert pubkey string to *Any

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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 CodeID

type CodeID struct {
	// whitelist code id
	CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	// status of code id
	Status bool `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
}

func (*CodeID) Descriptor

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

func (*CodeID) Equal

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

func (*CodeID) GetCodeID

func (m *CodeID) GetCodeID() uint64

func (*CodeID) GetStatus

func (m *CodeID) GetStatus() bool

func (*CodeID) Marshal

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

func (*CodeID) MarshalTo

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

func (*CodeID) MarshalToSizedBuffer

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

func (*CodeID) ProtoMessage

func (*CodeID) ProtoMessage()

func (*CodeID) Reset

func (m *CodeID) Reset()

func (*CodeID) Size

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

func (*CodeID) String

func (m *CodeID) String() string

func (*CodeID) Unmarshal

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

func (*CodeID) XXX_DiscardUnknown

func (m *CodeID) XXX_DiscardUnknown()

func (*CodeID) XXX_Marshal

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

func (*CodeID) XXX_Merge

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

func (*CodeID) XXX_Size

func (m *CodeID) XXX_Size() int

func (*CodeID) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// this line is used by starport scaffolding # genesis/proto/state
	SmartAccountId uint64 `protobuf:"varint,2,opt,name=smart_account_id,json=smartAccountId,proto3" json:"smart_account_id,omitempty"`
}

GenesisState defines the smartaccount module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetSmartAccountId

func (m *GenesisState) GetSmartAccountId() uint64

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

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

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 MsgActivateAccount

type MsgActivateAccount struct {
	// AccountAddress is the actor who signs the message
	AccountAddress string `protobuf:"bytes,1,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"`
	// CodeID indicates which wasm binary code is to be used for this contract
	CodeID uint64 `protobuf:"varint,3,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	// an arbitrary value provided by the sender. Size can be 1 to 64.
	Salt []byte `protobuf:"bytes,2,opt,name=salt,proto3" json:"salt,omitempty"`
	// InitMsg is the JSON-encoded instantiate message for the contract
	InitMsg github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage `` /* 149-byte string literal not displayed */
	// Public key of smart account
	PubKey *types.Any `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
}

func (*MsgActivateAccount) Descriptor

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

func (*MsgActivateAccount) GetAccountAddress

func (m *MsgActivateAccount) GetAccountAddress() string

func (*MsgActivateAccount) GetCodeID

func (m *MsgActivateAccount) GetCodeID() uint64

func (*MsgActivateAccount) GetPubKey

func (m *MsgActivateAccount) GetPubKey() *types.Any

func (*MsgActivateAccount) GetSalt

func (m *MsgActivateAccount) GetSalt() []byte

func (*MsgActivateAccount) GetSignBytes

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

func (*MsgActivateAccount) GetSigners

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

func (*MsgActivateAccount) Marshal

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

func (*MsgActivateAccount) MarshalTo

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

func (*MsgActivateAccount) MarshalToSizedBuffer

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

func (*MsgActivateAccount) ProtoMessage

func (*MsgActivateAccount) ProtoMessage()

func (*MsgActivateAccount) Reset

func (m *MsgActivateAccount) Reset()

func (*MsgActivateAccount) Route

func (msg *MsgActivateAccount) Route() string

func (*MsgActivateAccount) Size

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

func (*MsgActivateAccount) String

func (m *MsgActivateAccount) String() string

func (*MsgActivateAccount) Type

func (msg *MsgActivateAccount) Type() string

func (*MsgActivateAccount) Unmarshal

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

func (MsgActivateAccount) UnpackInterfaces

func (msg MsgActivateAccount) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*MsgActivateAccount) ValidateBasic

func (msg *MsgActivateAccount) ValidateBasic() error

func (*MsgActivateAccount) XXX_DiscardUnknown

func (m *MsgActivateAccount) XXX_DiscardUnknown()

func (*MsgActivateAccount) XXX_Marshal

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

func (*MsgActivateAccount) XXX_Merge

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

func (*MsgActivateAccount) XXX_Size

func (m *MsgActivateAccount) XXX_Size() int

func (*MsgActivateAccount) XXX_Unmarshal

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

type MsgActivateAccountResponse

type MsgActivateAccountResponse struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*MsgActivateAccountResponse) Descriptor

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

func (*MsgActivateAccountResponse) GetAddress

func (m *MsgActivateAccountResponse) GetAddress() string

func (*MsgActivateAccountResponse) Marshal

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

func (*MsgActivateAccountResponse) MarshalTo

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

func (*MsgActivateAccountResponse) MarshalToSizedBuffer

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

func (*MsgActivateAccountResponse) ProtoMessage

func (*MsgActivateAccountResponse) ProtoMessage()

func (*MsgActivateAccountResponse) Reset

func (m *MsgActivateAccountResponse) Reset()

func (*MsgActivateAccountResponse) Size

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

func (*MsgActivateAccountResponse) String

func (m *MsgActivateAccountResponse) String() string

func (*MsgActivateAccountResponse) Unmarshal

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

func (*MsgActivateAccountResponse) XXX_DiscardUnknown

func (m *MsgActivateAccountResponse) XXX_DiscardUnknown()

func (*MsgActivateAccountResponse) XXX_Marshal

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

func (*MsgActivateAccountResponse) XXX_Merge

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

func (*MsgActivateAccountResponse) XXX_Size

func (m *MsgActivateAccountResponse) XXX_Size() int

func (*MsgActivateAccountResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	Recover(ctx context.Context, in *MsgRecover, opts ...grpc.CallOption) (*MsgRecoverResponse, error)
	ActivateAccount(ctx context.Context, in *MsgActivateAccount, opts ...grpc.CallOption) (*MsgActivateAccountResponse, 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 MsgRecover

type MsgRecover struct {
	// Sender is the actor who signs the message
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// smart-account address that need update
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// New PubKey using for signature verification of this account
	PubKey *types.Any `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// Credentials
	Credentials string `protobuf:"bytes,4,opt,name=credentials,proto3" json:"credentials,omitempty"`
}

func (*MsgRecover) Descriptor

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

func (*MsgRecover) GetSignBytes

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

func (*MsgRecover) GetSigners

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

func (*MsgRecover) Marshal

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

func (*MsgRecover) MarshalTo

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

func (*MsgRecover) MarshalToSizedBuffer

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

func (*MsgRecover) ProtoMessage

func (*MsgRecover) ProtoMessage()

func (*MsgRecover) Reset

func (m *MsgRecover) Reset()

func (*MsgRecover) Route

func (msg *MsgRecover) Route() string

func (*MsgRecover) Size

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

func (*MsgRecover) String

func (m *MsgRecover) String() string

func (*MsgRecover) Type

func (msg *MsgRecover) Type() string

func (*MsgRecover) Unmarshal

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

func (MsgRecover) UnpackInterfaces

func (msg MsgRecover) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*MsgRecover) ValidateBasic

func (msg *MsgRecover) ValidateBasic() error

func (*MsgRecover) XXX_DiscardUnknown

func (m *MsgRecover) XXX_DiscardUnknown()

func (*MsgRecover) XXX_Marshal

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

func (*MsgRecover) XXX_Merge

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

func (*MsgRecover) XXX_Size

func (m *MsgRecover) XXX_Size() int

func (*MsgRecover) XXX_Unmarshal

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

type MsgRecoverResponse

type MsgRecoverResponse struct {
}

func (*MsgRecoverResponse) Descriptor

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

func (*MsgRecoverResponse) Marshal

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

func (*MsgRecoverResponse) MarshalTo

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

func (*MsgRecoverResponse) MarshalToSizedBuffer

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

func (*MsgRecoverResponse) ProtoMessage

func (*MsgRecoverResponse) ProtoMessage()

func (*MsgRecoverResponse) Reset

func (m *MsgRecoverResponse) Reset()

func (*MsgRecoverResponse) Size

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

func (*MsgRecoverResponse) String

func (m *MsgRecoverResponse) String() string

func (*MsgRecoverResponse) Unmarshal

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

func (*MsgRecoverResponse) XXX_DiscardUnknown

func (m *MsgRecoverResponse) XXX_DiscardUnknown()

func (*MsgRecoverResponse) XXX_Marshal

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

func (*MsgRecoverResponse) XXX_Merge

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

func (*MsgRecoverResponse) XXX_Size

func (m *MsgRecoverResponse) XXX_Size() int

func (*MsgRecoverResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	Recover(context.Context, *MsgRecover) (*MsgRecoverResponse, error)
	ActivateAccount(context.Context, *MsgActivateAccount) (*MsgActivateAccountResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
	// code_id whitelist indicates which contract can be initialized as smart account
	// using gov proposal for updates
	WhitelistCodeID []*CodeID `protobuf:"bytes,1,rep,name=whitelist_code_id,json=whitelistCodeId,proto3" json:"whitelist_code_id,omitempty"`
	// list of diable messages for smartaccount
	DisableMsgsList []string `protobuf:"bytes,2,rep,name=disable_msgs_list,json=disableMsgsList,proto3" json:"disable_msgs_list,omitempty"`
	// limit how much gas can be consumed by the `pre_execute` method
	MaxGasExecute uint64 `protobuf:"varint,3,opt,name=max_gas_execute,json=maxGasExecute,proto3" json:"max_gas_execute,omitempty"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(whitelist []*CodeID, disableList []string, limitGas uint64) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetDisableMsgsList

func (m *Params) GetDisableMsgsList() []string

func (*Params) GetMaxGasExecute

func (m *Params) GetMaxGasExecute() uint64

func (*Params) GetWhitelistCodeID

func (m *Params) GetWhitelistCodeID() []*CodeID

func (Params) IsAllowedCodeID

func (p Params) IsAllowedCodeID(codeID uint64) 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 get the 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 (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of 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 QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of GenerateAccount items.
	GenerateAccount(ctx context.Context, in *QueryGenerateAccountRequest, opts ...grpc.CallOption) (*QueryGenerateAccountResponse, 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 QueryGenerateAccountRequest

type QueryGenerateAccountRequest struct {
	// CodeID indicates which wasm binary code is to be used for creating account
	CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	// an arbitrary value provided by the sender. Size can be 1 to 64.
	Salt []byte `protobuf:"bytes,2,opt,name=salt,proto3" json:"salt,omitempty"`
	// InitMsg is the JSON-encoded instantiate message for creating account
	InitMsg github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage `` /* 149-byte string literal not displayed */
	// PubKey of account
	PubKey *types.Any `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
}

func (*QueryGenerateAccountRequest) Descriptor

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

func (*QueryGenerateAccountRequest) GetCodeID

func (m *QueryGenerateAccountRequest) GetCodeID() uint64

func (*QueryGenerateAccountRequest) GetInitMsg

func (*QueryGenerateAccountRequest) GetPubKey

func (m *QueryGenerateAccountRequest) GetPubKey() *types.Any

func (*QueryGenerateAccountRequest) GetSalt

func (m *QueryGenerateAccountRequest) GetSalt() []byte

func (*QueryGenerateAccountRequest) Marshal

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

func (*QueryGenerateAccountRequest) MarshalTo

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

func (*QueryGenerateAccountRequest) MarshalToSizedBuffer

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

func (*QueryGenerateAccountRequest) ProtoMessage

func (*QueryGenerateAccountRequest) ProtoMessage()

func (*QueryGenerateAccountRequest) Reset

func (m *QueryGenerateAccountRequest) Reset()

func (*QueryGenerateAccountRequest) Size

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

func (*QueryGenerateAccountRequest) String

func (m *QueryGenerateAccountRequest) String() string

func (*QueryGenerateAccountRequest) Unmarshal

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

func (QueryGenerateAccountRequest) UnpackInterfaces

func (msg QueryGenerateAccountRequest) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*QueryGenerateAccountRequest) XXX_DiscardUnknown

func (m *QueryGenerateAccountRequest) XXX_DiscardUnknown()

func (*QueryGenerateAccountRequest) XXX_Marshal

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

func (*QueryGenerateAccountRequest) XXX_Merge

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

func (*QueryGenerateAccountRequest) XXX_Size

func (m *QueryGenerateAccountRequest) XXX_Size() int

func (*QueryGenerateAccountRequest) XXX_Unmarshal

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

type QueryGenerateAccountResponse

type QueryGenerateAccountResponse struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryGenerateAccountResponse) Descriptor

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

func (*QueryGenerateAccountResponse) GetAddress

func (m *QueryGenerateAccountResponse) GetAddress() string

func (*QueryGenerateAccountResponse) Marshal

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

func (*QueryGenerateAccountResponse) MarshalTo

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

func (*QueryGenerateAccountResponse) MarshalToSizedBuffer

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

func (*QueryGenerateAccountResponse) ProtoMessage

func (*QueryGenerateAccountResponse) ProtoMessage()

func (*QueryGenerateAccountResponse) Reset

func (m *QueryGenerateAccountResponse) Reset()

func (*QueryGenerateAccountResponse) Size

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

func (*QueryGenerateAccountResponse) String

func (*QueryGenerateAccountResponse) Unmarshal

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

func (*QueryGenerateAccountResponse) XXX_DiscardUnknown

func (m *QueryGenerateAccountResponse) XXX_DiscardUnknown()

func (*QueryGenerateAccountResponse) XXX_Marshal

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

func (*QueryGenerateAccountResponse) XXX_Merge

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

func (*QueryGenerateAccountResponse) XXX_Size

func (m *QueryGenerateAccountResponse) XXX_Size() int

func (*QueryGenerateAccountResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is 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 holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is 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 {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of GenerateAccount items.
	GenerateAccount(context.Context, *QueryGenerateAccountRequest) (*QueryGenerateAccountResponse, error)
}

QueryServer is the server API for Query service.

type SmartAccount

type SmartAccount struct {
	Address       string     `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PubKey        *types.Any `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"public_key,omitempty"`
	AccountNumber uint64     `protobuf:"varint,3,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
	Sequence      uint64     `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
}

SmartAccount is a smart contract that is capable of initiating txs.

This account type is similar to BaseAccount

func NewSmartAccount

func NewSmartAccount(address string, accountNum, seq uint64) *SmartAccount

func NewSmartAccountFromAccount

func NewSmartAccountFromAccount(acc authtypes.AccountI) *SmartAccount

func (*SmartAccount) Descriptor

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

func (*SmartAccount) GetAccountNumber

func (acc *SmartAccount) GetAccountNumber() uint64

func (*SmartAccount) GetAddress

func (acc *SmartAccount) GetAddress() sdk.AccAddress

func (*SmartAccount) GetPubKey

func (acc *SmartAccount) GetPubKey() cryptotypes.PubKey

func (*SmartAccount) GetSequence

func (acc *SmartAccount) GetSequence() uint64

func (*SmartAccount) Marshal

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

func (*SmartAccount) MarshalTo

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

func (*SmartAccount) MarshalToSizedBuffer

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

func (*SmartAccount) ProtoMessage

func (*SmartAccount) ProtoMessage()

func (*SmartAccount) Reset

func (m *SmartAccount) Reset()

func (*SmartAccount) SetAccountNumber

func (acc *SmartAccount) SetAccountNumber(accNumber uint64) error

func (*SmartAccount) SetAddress

func (acc *SmartAccount) SetAddress(addr sdk.AccAddress) error

func (*SmartAccount) SetPubKey

func (acc *SmartAccount) SetPubKey(pubKey cryptotypes.PubKey) error

func (*SmartAccount) SetSequence

func (acc *SmartAccount) SetSequence(seq uint64) error

func (*SmartAccount) Size

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

func (*SmartAccount) String

func (m *SmartAccount) String() string

func (*SmartAccount) Unmarshal

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

func (SmartAccount) UnpackInterfaces

func (acc SmartAccount) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*SmartAccount) Validate

func (acc *SmartAccount) Validate() error

func (*SmartAccount) XXX_DiscardUnknown

func (m *SmartAccount) XXX_DiscardUnknown()

func (*SmartAccount) XXX_Marshal

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

func (*SmartAccount) XXX_Merge

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

func (*SmartAccount) XXX_Size

func (m *SmartAccount) XXX_Size() int

func (*SmartAccount) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ActivateAccount

func (*UnimplementedMsgServer) Recover

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GenerateAccount

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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