Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AbstractAccount
- func (*AbstractAccount) Descriptor() ([]byte, []int)
- func (acc *AbstractAccount) GetAccountNumber() uint64
- func (acc *AbstractAccount) GetAddress() sdk.AccAddress
- func (acc *AbstractAccount) GetPubKey() cryptotypes.PubKey
- func (acc *AbstractAccount) GetSequence() uint64
- func (m *AbstractAccount) Marshal() (dAtA []byte, err error)
- func (m *AbstractAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *AbstractAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AbstractAccount) ProtoMessage()
- func (m *AbstractAccount) Reset()
- func (acc *AbstractAccount) SetAccountNumber(accNumber uint64) error
- func (acc *AbstractAccount) SetAddress(addr sdk.AccAddress) error
- func (acc *AbstractAccount) SetPubKey(_ cryptotypes.PubKey) error
- func (acc *AbstractAccount) SetSequence(seq uint64) error
- func (m *AbstractAccount) Size() (n int)
- func (m *AbstractAccount) String() string
- func (m *AbstractAccount) Unmarshal(dAtA []byte) error
- func (m *AbstractAccount) XXX_DiscardUnknown()
- func (m *AbstractAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AbstractAccount) XXX_Merge(src proto.Message)
- func (m *AbstractAccount) XXX_Size() int
- func (m *AbstractAccount) XXX_Unmarshal(b []byte) error
- type AccountSudoMsg
- type AfterTx
- type Any
- type BeforeTx
- type EventAccountRegistered
- func (*EventAccountRegistered) Descriptor() ([]byte, []int)
- func (m *EventAccountRegistered) GetCodeID() uint64
- func (m *EventAccountRegistered) GetContractAddr() string
- func (m *EventAccountRegistered) GetCreator() string
- func (m *EventAccountRegistered) Marshal() (dAtA []byte, err error)
- func (m *EventAccountRegistered) MarshalTo(dAtA []byte) (int, error)
- func (m *EventAccountRegistered) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventAccountRegistered) ProtoMessage()
- func (m *EventAccountRegistered) Reset()
- func (m *EventAccountRegistered) Size() (n int)
- func (m *EventAccountRegistered) String() string
- func (m *EventAccountRegistered) Unmarshal(dAtA []byte) error
- func (m *EventAccountRegistered) XXX_DiscardUnknown()
- func (m *EventAccountRegistered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventAccountRegistered) XXX_Merge(src proto.Message)
- func (m *EventAccountRegistered) XXX_Size() int
- func (m *EventAccountRegistered) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetNextAccountId() uint64
- func (m *GenesisState) GetParams() *Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs *GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgRegisterAccount
- func (*MsgRegisterAccount) Descriptor() ([]byte, []int)
- func (m *MsgRegisterAccount) GetCodeID() uint64
- func (m *MsgRegisterAccount) GetFunds() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgRegisterAccount) GetMsg() github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage
- func (m *MsgRegisterAccount) GetSalt() []byte
- func (m *MsgRegisterAccount) GetSender() string
- func (m *MsgRegisterAccount) GetSigners() []sdk.AccAddress
- func (m *MsgRegisterAccount) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterAccount) ProtoMessage()
- func (m *MsgRegisterAccount) Reset()
- func (m *MsgRegisterAccount) Size() (n int)
- func (m *MsgRegisterAccount) String() string
- func (m *MsgRegisterAccount) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterAccount) ValidateBasic() error
- func (m *MsgRegisterAccount) XXX_DiscardUnknown()
- func (m *MsgRegisterAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterAccount) XXX_Merge(src proto.Message)
- func (m *MsgRegisterAccount) XXX_Size() int
- func (m *MsgRegisterAccount) XXX_Unmarshal(b []byte) error
- type MsgRegisterAccountResponse
- func (*MsgRegisterAccountResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterAccountResponse) GetAddress() string
- func (m *MsgRegisterAccountResponse) GetData() []byte
- func (m *MsgRegisterAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterAccountResponse) ProtoMessage()
- func (m *MsgRegisterAccountResponse) Reset()
- func (m *MsgRegisterAccountResponse) Size() (n int)
- func (m *MsgRegisterAccountResponse) String() string
- func (m *MsgRegisterAccountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterAccountResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterAccountResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterAccountResponse) XXX_Size() int
- func (m *MsgRegisterAccountResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetParams() *Params
- func (m *MsgUpdateParams) GetSender() string
- func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type NilPubKey
- func (pk *NilPubKey) Address() cryptotypes.Address
- func (pk *NilPubKey) Bytes() []byte
- func (*NilPubKey) Descriptor() ([]byte, []int)
- func (pk *NilPubKey) Equals(other cryptotypes.PubKey) bool
- func (m *NilPubKey) GetAddressBytes() []byte
- func (m *NilPubKey) Marshal() (dAtA []byte, err error)
- func (m *NilPubKey) MarshalTo(dAtA []byte) (int, error)
- func (m *NilPubKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NilPubKey) ProtoMessage()
- func (m *NilPubKey) Reset()
- func (m *NilPubKey) Size() (n int)
- func (pk *NilPubKey) String() string
- func (pk *NilPubKey) Type() string
- func (m *NilPubKey) Unmarshal(dAtA []byte) error
- func (pk *NilPubKey) VerifySignature(_ []byte, _ []byte) bool
- func (m *NilPubKey) XXX_DiscardUnknown()
- func (m *NilPubKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NilPubKey) XXX_Merge(src proto.Message)
- func (m *NilPubKey) XXX_Size() int
- func (m *NilPubKey) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetAllowAllCodeIDs() bool
- func (m *Params) GetAllowedCodeIDs() []uint64
- func (m *Params) GetMaxGasAfter() uint64
- func (m *Params) GetMaxGasBefore() uint64
- func (p *Params) IsAllowed(codeID uint64) bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p *Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() *Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( EventTypeAccountRegistered = "account_registered" AttributeKeyCreator = "creator" AttributeKeyCodeID = "code_id" AttributeKeyContractAddr = "contract_addr" )
const ( ModuleName = "abstractaccount" StoreKey = ModuleName )
const DefaultMaxGas = 2_000_000
Variables ¶
var ( ErrInvalidLengthAccount = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAccount = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAccount = fmt.Errorf("proto: unexpected end of group") )
var ( ErrMalformedAllowList = errors.Register(ModuleName, 2, "code ID allow list must contain non-zero, unique, and sorted code IDs") ErrNonEmptyAllowList = errors.Register(ModuleName, 3, "code ID allow list must be empty when AllowAllCodeIDs is true") ErrNotAllowedCodeID = errors.Register(ModuleName, 4, "not an allowed wasm code ID") ErrNotBaseAccount = errors.Register(ModuleName, 5, "account is not an authtypes.BaseAccount") ErrNotSingleSignature = errors.Register(ModuleName, 6, "signature is not a txsigning.SingleSignatureData") ErrParsingParams = errors.Register(ModuleName, 7, "failed to marshal or unmarshal module params") ErrZeroMaxGas = errors.Register(ModuleName, 8, "max gas cannot be zero") )
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( // Module parameters KeyParams = []byte{0x00} // We give each AbstractAccount an ID - The first to be registered gets an ID // of 1, the second gets 2, so on. // // This is used to determine the account smart contract's label. Specifically, // the label is `abstractaccount/{id}`. // // The label is only for identifying contracts; it doesn't impact the actual // working of these contract any way. However, I just like everything cleanly // and uniquely labeled. KeyNextAccountID = []byte{0x01} // In the AnteHandler, if the tx only has one sender and this sender is an // AbstractAccount, we store its address here. This way, in the PostHandler, // we know whether to call the after_tx method. KeySignerAddress = []byte{0x02} )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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 AbstractAccount ¶
type AbstractAccount struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` AccountNumber uint64 `protobuf:"varint,2,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"` Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` }
AbstractAccount is a smart contract that is capable of initiating txs.
This account type is similar to BaseAccount except for it doesn't have a pubkey. If a pubkey is needed, it creates and returns a new NilPubKey.
func NewAbstractAccount ¶
func NewAbstractAccount(address string, accountNum, seq uint64) *AbstractAccount
func NewAbstractAccountFromAccount ¶
func NewAbstractAccountFromAccount(acc authtypes.AccountI) *AbstractAccount
func (*AbstractAccount) Descriptor ¶
func (*AbstractAccount) Descriptor() ([]byte, []int)
func (*AbstractAccount) GetAccountNumber ¶
func (acc *AbstractAccount) GetAccountNumber() uint64
func (*AbstractAccount) GetAddress ¶
func (acc *AbstractAccount) GetAddress() sdk.AccAddress
func (*AbstractAccount) GetPubKey ¶
func (acc *AbstractAccount) GetPubKey() cryptotypes.PubKey
func (*AbstractAccount) GetSequence ¶
func (acc *AbstractAccount) GetSequence() uint64
func (*AbstractAccount) Marshal ¶
func (m *AbstractAccount) Marshal() (dAtA []byte, err error)
func (*AbstractAccount) MarshalToSizedBuffer ¶
func (m *AbstractAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AbstractAccount) ProtoMessage ¶
func (*AbstractAccount) ProtoMessage()
func (*AbstractAccount) Reset ¶
func (m *AbstractAccount) Reset()
func (*AbstractAccount) SetAccountNumber ¶
func (acc *AbstractAccount) SetAccountNumber(accNumber uint64) error
func (*AbstractAccount) SetAddress ¶
func (acc *AbstractAccount) SetAddress(addr sdk.AccAddress) error
func (*AbstractAccount) SetPubKey ¶
func (acc *AbstractAccount) SetPubKey(_ cryptotypes.PubKey) error
func (*AbstractAccount) SetSequence ¶
func (acc *AbstractAccount) SetSequence(seq uint64) error
func (*AbstractAccount) Size ¶
func (m *AbstractAccount) Size() (n int)
func (*AbstractAccount) String ¶
func (m *AbstractAccount) String() string
func (*AbstractAccount) Unmarshal ¶
func (m *AbstractAccount) Unmarshal(dAtA []byte) error
func (*AbstractAccount) XXX_DiscardUnknown ¶
func (m *AbstractAccount) XXX_DiscardUnknown()
func (*AbstractAccount) XXX_Marshal ¶
func (m *AbstractAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AbstractAccount) XXX_Merge ¶
func (m *AbstractAccount) XXX_Merge(src proto.Message)
func (*AbstractAccount) XXX_Size ¶
func (m *AbstractAccount) XXX_Size() int
func (*AbstractAccount) XXX_Unmarshal ¶
func (m *AbstractAccount) XXX_Unmarshal(b []byte) error
type AccountSudoMsg ¶
type EventAccountRegistered ¶
type EventAccountRegistered struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` CodeID uint64 `protobuf:"varint,2,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` ContractAddr string `protobuf:"bytes,3,opt,name=contract_addr,json=contractAddr,proto3" json:"contract_addr,omitempty"` }
func (*EventAccountRegistered) Descriptor ¶
func (*EventAccountRegistered) Descriptor() ([]byte, []int)
func (*EventAccountRegistered) GetCodeID ¶
func (m *EventAccountRegistered) GetCodeID() uint64
func (*EventAccountRegistered) GetContractAddr ¶
func (m *EventAccountRegistered) GetContractAddr() string
func (*EventAccountRegistered) GetCreator ¶
func (m *EventAccountRegistered) GetCreator() string
func (*EventAccountRegistered) Marshal ¶
func (m *EventAccountRegistered) Marshal() (dAtA []byte, err error)
func (*EventAccountRegistered) MarshalTo ¶
func (m *EventAccountRegistered) MarshalTo(dAtA []byte) (int, error)
func (*EventAccountRegistered) MarshalToSizedBuffer ¶
func (m *EventAccountRegistered) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventAccountRegistered) ProtoMessage ¶
func (*EventAccountRegistered) ProtoMessage()
func (*EventAccountRegistered) Reset ¶
func (m *EventAccountRegistered) Reset()
func (*EventAccountRegistered) Size ¶
func (m *EventAccountRegistered) Size() (n int)
func (*EventAccountRegistered) String ¶
func (m *EventAccountRegistered) String() string
func (*EventAccountRegistered) Unmarshal ¶
func (m *EventAccountRegistered) Unmarshal(dAtA []byte) error
func (*EventAccountRegistered) XXX_DiscardUnknown ¶
func (m *EventAccountRegistered) XXX_DiscardUnknown()
func (*EventAccountRegistered) XXX_Marshal ¶
func (m *EventAccountRegistered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventAccountRegistered) XXX_Merge ¶
func (m *EventAccountRegistered) XXX_Merge(src proto.Message)
func (*EventAccountRegistered) XXX_Size ¶
func (m *EventAccountRegistered) XXX_Size() int
func (*EventAccountRegistered) XXX_Unmarshal ¶
func (m *EventAccountRegistered) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` NextAccountId uint64 `protobuf:"varint,2,opt,name=next_account_id,json=nextAccountId,proto3" json:"next_account_id,omitempty"` }
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState(nextAccountID uint64, params *Params) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetNextAccountId ¶
func (m *GenesisState) GetNextAccountId() uint64
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() *Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // Update the module's parameters. Can only be called by the authority. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) // Register a new AbstractAccount. RegisterAccount(ctx context.Context, in *MsgRegisterAccount, opts ...grpc.CallOption) (*MsgRegisterAccountResponse, 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 MsgRegisterAccount ¶
type MsgRegisterAccount struct { // Sender is the actor who signs the message Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // CodeID indicates which wasm binary code is to be used for this contract CodeID uint64 `protobuf:"varint,2,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` // Msg is the JSON-encoded instantiate message for the contract Msg github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage `` /* 126-byte string literal not displayed */ // Funds are coins to be deposited to the contract on instantiattion Funds github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=funds,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"funds"` // Salt is an arbinary value to be used in deriving the account address. // Max 64 bytes. Salt []byte `protobuf:"bytes,5,opt,name=salt,proto3" json:"salt,omitempty"` }
func (*MsgRegisterAccount) Descriptor ¶
func (*MsgRegisterAccount) Descriptor() ([]byte, []int)
func (*MsgRegisterAccount) GetCodeID ¶
func (m *MsgRegisterAccount) GetCodeID() uint64
func (*MsgRegisterAccount) GetFunds ¶
func (m *MsgRegisterAccount) GetFunds() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgRegisterAccount) GetMsg ¶
func (m *MsgRegisterAccount) GetMsg() github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage
func (*MsgRegisterAccount) GetSalt ¶
func (m *MsgRegisterAccount) GetSalt() []byte
func (*MsgRegisterAccount) GetSender ¶
func (m *MsgRegisterAccount) GetSender() string
func (*MsgRegisterAccount) GetSigners ¶
func (m *MsgRegisterAccount) GetSigners() []sdk.AccAddress
func (*MsgRegisterAccount) Marshal ¶
func (m *MsgRegisterAccount) Marshal() (dAtA []byte, err error)
func (*MsgRegisterAccount) MarshalTo ¶
func (m *MsgRegisterAccount) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterAccount) MarshalToSizedBuffer ¶
func (m *MsgRegisterAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterAccount) ProtoMessage ¶
func (*MsgRegisterAccount) ProtoMessage()
func (*MsgRegisterAccount) Reset ¶
func (m *MsgRegisterAccount) Reset()
func (*MsgRegisterAccount) Size ¶
func (m *MsgRegisterAccount) Size() (n int)
func (*MsgRegisterAccount) String ¶
func (m *MsgRegisterAccount) String() string
func (*MsgRegisterAccount) Unmarshal ¶
func (m *MsgRegisterAccount) Unmarshal(dAtA []byte) error
func (*MsgRegisterAccount) ValidateBasic ¶
func (m *MsgRegisterAccount) ValidateBasic() error
func (*MsgRegisterAccount) XXX_DiscardUnknown ¶
func (m *MsgRegisterAccount) XXX_DiscardUnknown()
func (*MsgRegisterAccount) XXX_Marshal ¶
func (m *MsgRegisterAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterAccount) XXX_Merge ¶
func (m *MsgRegisterAccount) XXX_Merge(src proto.Message)
func (*MsgRegisterAccount) XXX_Size ¶
func (m *MsgRegisterAccount) XXX_Size() int
func (*MsgRegisterAccount) XXX_Unmarshal ¶
func (m *MsgRegisterAccount) XXX_Unmarshal(b []byte) error
type MsgRegisterAccountResponse ¶
type MsgRegisterAccountResponse struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
func (*MsgRegisterAccountResponse) Descriptor ¶
func (*MsgRegisterAccountResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterAccountResponse) GetAddress ¶
func (m *MsgRegisterAccountResponse) GetAddress() string
func (*MsgRegisterAccountResponse) GetData ¶
func (m *MsgRegisterAccountResponse) GetData() []byte
func (*MsgRegisterAccountResponse) Marshal ¶
func (m *MsgRegisterAccountResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterAccountResponse) MarshalTo ¶
func (m *MsgRegisterAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterAccountResponse) MarshalToSizedBuffer ¶
func (m *MsgRegisterAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterAccountResponse) ProtoMessage ¶
func (*MsgRegisterAccountResponse) ProtoMessage()
func (*MsgRegisterAccountResponse) Reset ¶
func (m *MsgRegisterAccountResponse) Reset()
func (*MsgRegisterAccountResponse) Size ¶
func (m *MsgRegisterAccountResponse) Size() (n int)
func (*MsgRegisterAccountResponse) String ¶
func (m *MsgRegisterAccountResponse) String() string
func (*MsgRegisterAccountResponse) Unmarshal ¶
func (m *MsgRegisterAccountResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterAccountResponse) XXX_DiscardUnknown ¶
func (m *MsgRegisterAccountResponse) XXX_DiscardUnknown()
func (*MsgRegisterAccountResponse) XXX_Marshal ¶
func (m *MsgRegisterAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterAccountResponse) XXX_Merge ¶
func (m *MsgRegisterAccountResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterAccountResponse) XXX_Size ¶
func (m *MsgRegisterAccountResponse) XXX_Size() int
func (*MsgRegisterAccountResponse) XXX_Unmarshal ¶
func (m *MsgRegisterAccountResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Update the module's parameters. Can only be called by the authority. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // Register a new AbstractAccount. RegisterAccount(context.Context, *MsgRegisterAccount) (*MsgRegisterAccountResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` }
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) GetSender ¶
func (m *MsgUpdateParams) GetSender() string
func (*MsgUpdateParams) GetSigners ¶
func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (m *MsgUpdateParams) ValidateBasic() error
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type NilPubKey ¶
type NilPubKey struct {
AddressBytes []byte `protobuf:"bytes,1,opt,name=address_bytes,json=addressBytes,proto3" json:"address_bytes,omitempty"`
}
NilPubKey is the pubkey type of the AbstractAccount. Basically, it represents a pubkey that doesn't exist.
The actual pubkey of an AbstractAccount (if it has one) is to be stored inside the contract, not at the SDK level. Signature verification is also done inside the contract, typically in the BeforeTx hook.
func NewNilPubKey ¶
func (*NilPubKey) Address ¶
func (pk *NilPubKey) Address() cryptotypes.Address
func (*NilPubKey) Descriptor ¶
func (*NilPubKey) GetAddressBytes ¶
func (*NilPubKey) MarshalToSizedBuffer ¶
func (*NilPubKey) ProtoMessage ¶
func (*NilPubKey) ProtoMessage()
func (*NilPubKey) XXX_DiscardUnknown ¶
func (m *NilPubKey) XXX_DiscardUnknown()
func (*NilPubKey) XXX_Marshal ¶
func (*NilPubKey) XXX_Unmarshal ¶
type Params ¶
type Params struct { // AllowAllCodeIDs determines whether a Wasm code ID can be used to register // AbstractAccounts: // - if set to true, any code ID can be used; // - if set to false, only code IDs whitelisted in the AllowedCodeIDs list can // be used. AllowAllCodeIDs bool `protobuf:"varint,1,opt,name=allow_all_code_ids,json=allowAllCodeIds,proto3" json:"allow_all_code_ids,omitempty"` // AllowedCodeIDs is the whitelist of Wasm code IDs that can be used to // regiseter AbstractAccounts. AllowedCodeIDs []uint64 `protobuf:"varint,2,rep,packed,name=allowed_code_ids,json=allowedCodeIds,proto3" json:"allowed_code_ids,omitempty"` // MaxGasBefore is the maximum amount of gas that can be consumed by the // contract call in the before_tx decorator. // // Must be greater than zero. MaxGasBefore uint64 `protobuf:"varint,3,opt,name=max_gas_before,json=maxGasBefore,proto3" json:"max_gas_before,omitempty"` // MaxGasAfter is the maximum amount of gas that can be consumed by the // contract call in the after_tx decorator. // // Must be greater than zero. MaxGasAfter uint64 `protobuf:"varint,4,opt,name=max_gas_after,json=maxGasAfter,proto3" json:"max_gas_after,omitempty"` }
func DefaultParams ¶
func DefaultParams() *Params
func (*Params) Descriptor ¶
func (*Params) GetAllowAllCodeIDs ¶
func (*Params) GetAllowedCodeIDs ¶
func (*Params) GetMaxGasAfter ¶
func (*Params) GetMaxGasBefore ¶
func (*Params) IsAllowed ¶
IsAllowed returns whether a code ID is allowed to be used to register AbstractAccounts.
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface {
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface {
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, 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) RegisterAccount ¶
func (*UnimplementedMsgServer) RegisterAccount(ctx context.Context, req *MsgRegisterAccount) (*MsgRegisterAccountResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)