types

package
v0.3.0-dev.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeStoreDataRequestWasm = "store_data_request_wasm"
	EventTypeExecutorWasm         = "store_executor_wasm"
	EventTypeWasmExpiration       = "wasm_expiration"

	AttributeWasmHash = "wasm_hash"
	AttributeSender   = "sender"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "wasm-storage"

	// StoreKey defines the primary module store key
	StoreKey = "storage"

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName
)
View Source
const (
	DefaultMaxWasmSize int64 = 800 * 1024
	DefaultWasmTTL           = 259200 // 21 days
)
View Source
const (
	// MaxWasmSize is the maximum size of wasm bytecode.
	MaxWasmSize = 800 * 1024
	// MinWasmSize is the realistic minimum size of wasm bytecode.
	MinWasmSize = 20
)

Variables

View Source
var (
	ErrInvalidParam          = errors.Register(ModuleName, 2, "invalid param")
	ErrWasmAlreadyExists     = errors.Register(ModuleName, 3, "wasm with the same hash already exists")
	ErrWasmTooLarge          = errors.Register(ModuleName, 4, "wasm size is too large")
	ErrWasmTooSmall          = errors.Register(ModuleName, 5, "wasm size is too small")
	ErrInvalidHexWasmHash    = errors.Register(ModuleName, 6, "invalid hex-encoded wasm hash")
	ErrWasmNotGzipCompressed = errors.Register(ModuleName, 7, "wasm is not gzip compressed")
	ErrInvalidAuthority      = errors.Register(ModuleName, 8, "invalid authority")
)
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 (
	// DataRequestPrefix defines prefix to store data request wasms.
	DataRequestPrefix = collections.NewPrefix(0)
	// ExecutorPrefix defines prefix to store executor wasms.
	ExecutorPrefix = collections.NewPrefix(1)
	// WasmExpPrefix defines prefix to track wasm expiration.
	WasmExpPrefix = collections.NewPrefix(2)
	// CoreContractRegistryPrefix defines prefix to store address of
	// Core Contract.
	CoreContractRegistryPrefix = collections.NewPrefix(3)
	// ParamsPrefix defines prefix to store parameters of wasm-storage module.
	ParamsPrefix = collections.NewPrefix(4)
)
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")
)
View Source
var (
	ErrInvalidLengthWasmStorage        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWasmStorage          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWasmStorage = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterCodec

func RegisterCodec(_ *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)

func ValidateGenesis

func ValidateGenesis(gs GenesisState) error

ValidateGenesis validates wasm-storage genesis data.

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI
}

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins
}

type DataRequestWasm

type DataRequestWasm struct {
	Hash     []byte    `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Bytecode []byte    `protobuf:"bytes,2,opt,name=bytecode,proto3" json:"bytecode,omitempty"`
	AddedAt  time.Time `protobuf:"bytes,3,opt,name=added_at,json=addedAt,proto3,stdtime" json:"added_at"`
	// ExpirationHeight represents the block height at which the data request
	// wasm will be pruned. The value of zero means no expiration.
	ExpirationHeight int64 `protobuf:"varint,4,opt,name=expiration_height,json=expirationHeight,proto3" json:"expiration_height,omitempty"`
}

DataRequestWasm represents a wasm used for data requests.

func NewDataRequestWasm

func NewDataRequestWasm(bytecode []byte, addedAt time.Time, _, _ int64) DataRequestWasm

NewDataRequestWasm constructs a new DataRequestWasm object given bytecode. It panics if it fails to compute hash of bytecode.

func (*DataRequestWasm) Descriptor

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

func (*DataRequestWasm) GetAddedAt

func (m *DataRequestWasm) GetAddedAt() time.Time

func (*DataRequestWasm) GetBytecode

func (m *DataRequestWasm) GetBytecode() []byte

func (*DataRequestWasm) GetExpirationHeight

func (m *DataRequestWasm) GetExpirationHeight() int64

func (*DataRequestWasm) GetHash

func (m *DataRequestWasm) GetHash() []byte

func (*DataRequestWasm) Marshal

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

func (*DataRequestWasm) MarshalTo

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

func (*DataRequestWasm) MarshalToSizedBuffer

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

func (*DataRequestWasm) ProtoMessage

func (*DataRequestWasm) ProtoMessage()

func (*DataRequestWasm) Reset

func (m *DataRequestWasm) Reset()

func (*DataRequestWasm) Size

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

func (*DataRequestWasm) String

func (m *DataRequestWasm) String() string

func (*DataRequestWasm) Unmarshal

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

func (*DataRequestWasm) XXX_DiscardUnknown

func (m *DataRequestWasm) XXX_DiscardUnknown()

func (*DataRequestWasm) XXX_Marshal

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

func (*DataRequestWasm) XXX_Merge

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

func (*DataRequestWasm) XXX_Size

func (m *DataRequestWasm) XXX_Size() int

func (*DataRequestWasm) XXX_Unmarshal

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

type ExecutorWasm

type ExecutorWasm struct {
	Hash     []byte    `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Bytecode []byte    `protobuf:"bytes,2,opt,name=bytecode,proto3" json:"bytecode,omitempty"`
	AddedAt  time.Time `protobuf:"bytes,3,opt,name=added_at,json=addedAt,proto3,stdtime" json:"added_at"`
}

ExecutorWasm represents a wasm used for some execution in the protocol.

func NewExecutorWasm

func NewExecutorWasm(bytecode []byte, addedAt time.Time) ExecutorWasm

NewExecutorWasm constructs a new ExecutorWasm object given bytecode. It panics if it fails to compute hash of bytecode.

func (*ExecutorWasm) Descriptor

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

func (*ExecutorWasm) GetAddedAt

func (m *ExecutorWasm) GetAddedAt() time.Time

func (*ExecutorWasm) GetBytecode

func (m *ExecutorWasm) GetBytecode() []byte

func (*ExecutorWasm) GetHash

func (m *ExecutorWasm) GetHash() []byte

func (*ExecutorWasm) Marshal

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

func (*ExecutorWasm) MarshalTo

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

func (*ExecutorWasm) MarshalToSizedBuffer

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

func (*ExecutorWasm) ProtoMessage

func (*ExecutorWasm) ProtoMessage()

func (*ExecutorWasm) Reset

func (m *ExecutorWasm) Reset()

func (*ExecutorWasm) Size

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

func (*ExecutorWasm) String

func (m *ExecutorWasm) String() string

func (*ExecutorWasm) Unmarshal

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

func (*ExecutorWasm) XXX_DiscardUnknown

func (m *ExecutorWasm) XXX_DiscardUnknown()

func (*ExecutorWasm) XXX_Marshal

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

func (*ExecutorWasm) XXX_Merge

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

func (*ExecutorWasm) XXX_Size

func (m *ExecutorWasm) XXX_Size() int

func (*ExecutorWasm) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params               Params            `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	DataRequestWasms     []DataRequestWasm `protobuf:"bytes,2,rep,name=data_request_wasms,json=dataRequestWasms,proto3" json:"data_request_wasms"`
	ExecutorWasms        []ExecutorWasm    `protobuf:"bytes,3,rep,name=executor_wasms,json=executorWasms,proto3" json:"executor_wasms"`
	CoreContractRegistry string            `protobuf:"bytes,4,opt,name=core_contract_registry,json=coreContractRegistry,proto3" json:"core_contract_registry,omitempty"`
}

GenesisState defines the wasm module's genesis state(i.e wasms stored at genesis.)

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState creates a default GenesisState object.

func NewGenesisState

func NewGenesisState(params Params, drWasms []DataRequestWasm, execWasms []ExecutorWasm, coreAddr string) GenesisState

NewGenesisState constructs a GenesisState object.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetCoreContractRegistry

func (m *GenesisState) GetCoreContractRegistry() string

func (*GenesisState) GetDataRequestWasms

func (m *GenesisState) GetDataRequestWasms() []DataRequestWasm

func (*GenesisState) GetExecutorWasms

func (m *GenesisState) GetExecutorWasms() []ExecutorWasm

func (*GenesisState) GetParams added in v0.1.4

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// StoreDataRequestWasm stores a data request wasm.
	StoreDataRequestWasm(ctx context.Context, in *MsgStoreDataRequestWasm, opts ...grpc.CallOption) (*MsgStoreDataRequestWasmResponse, error)
	// StoreExecutorWasm stores an executor wasm.
	StoreExecutorWasm(ctx context.Context, in *MsgStoreExecutorWasm, opts ...grpc.CallOption) (*MsgStoreExecutorWasmResponse, error)
	// InstantiateCoreContract instantiates the Core Contract and registers its
	// address.
	InstantiateCoreContract(ctx context.Context, in *MsgInstantiateCoreContract, opts ...grpc.CallOption) (*MsgInstantiateCoreContractResponse, error)
	// The UpdateParams method updates the module's parameters.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 MsgInstantiateCoreContract

type MsgInstantiateCoreContract struct {
	Sender string                                                    `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Admin  string                                                    `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"`
	CodeID uint64                                                    `protobuf:"varint,3,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	Label  string                                                    `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	Msg    github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage `` /* 126-byte string literal not displayed */
	Funds  github_com_cosmos_cosmos_sdk_types.Coins                  `protobuf:"bytes,6,rep,name=funds,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"funds"`
	Salt   []byte                                                    `protobuf:"bytes,7,opt,name=salt,proto3" json:"salt,omitempty"`
	FixMsg bool                                                      `protobuf:"varint,8,opt,name=fix_msg,json=fixMsg,proto3" json:"fix_msg,omitempty"`
}

The request message for the InstantiateCoreContract method.

func (*MsgInstantiateCoreContract) Descriptor

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

func (*MsgInstantiateCoreContract) GetAdmin

func (m *MsgInstantiateCoreContract) GetAdmin() string

func (*MsgInstantiateCoreContract) GetCodeID

func (m *MsgInstantiateCoreContract) GetCodeID() uint64

func (*MsgInstantiateCoreContract) GetFixMsg

func (m *MsgInstantiateCoreContract) GetFixMsg() bool

func (*MsgInstantiateCoreContract) GetFunds

func (*MsgInstantiateCoreContract) GetLabel

func (m *MsgInstantiateCoreContract) GetLabel() string

func (*MsgInstantiateCoreContract) GetMsg

func (*MsgInstantiateCoreContract) GetSalt

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

func (*MsgInstantiateCoreContract) GetSender

func (m *MsgInstantiateCoreContract) GetSender() string

func (*MsgInstantiateCoreContract) Marshal

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

func (*MsgInstantiateCoreContract) MarshalTo

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

func (*MsgInstantiateCoreContract) MarshalToSizedBuffer

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

func (*MsgInstantiateCoreContract) ProtoMessage

func (*MsgInstantiateCoreContract) ProtoMessage()

func (*MsgInstantiateCoreContract) Reset

func (m *MsgInstantiateCoreContract) Reset()

func (*MsgInstantiateCoreContract) Size

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

func (*MsgInstantiateCoreContract) String

func (m *MsgInstantiateCoreContract) String() string

func (*MsgInstantiateCoreContract) Unmarshal

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

func (*MsgInstantiateCoreContract) ValidateBasic

func (msg *MsgInstantiateCoreContract) ValidateBasic() error

func (*MsgInstantiateCoreContract) XXX_DiscardUnknown

func (m *MsgInstantiateCoreContract) XXX_DiscardUnknown()

func (*MsgInstantiateCoreContract) XXX_Marshal

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

func (*MsgInstantiateCoreContract) XXX_Merge

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

func (*MsgInstantiateCoreContract) XXX_Size

func (m *MsgInstantiateCoreContract) XXX_Size() int

func (*MsgInstantiateCoreContract) XXX_Unmarshal

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

type MsgInstantiateCoreContractResponse

type MsgInstantiateCoreContractResponse struct {
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

The response message for the InstantiateCoreContract method.

func (*MsgInstantiateCoreContractResponse) Descriptor

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

func (*MsgInstantiateCoreContractResponse) GetContractAddress

func (m *MsgInstantiateCoreContractResponse) GetContractAddress() string

func (*MsgInstantiateCoreContractResponse) Marshal

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

func (*MsgInstantiateCoreContractResponse) MarshalTo

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

func (*MsgInstantiateCoreContractResponse) MarshalToSizedBuffer

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

func (*MsgInstantiateCoreContractResponse) ProtoMessage

func (*MsgInstantiateCoreContractResponse) ProtoMessage()

func (*MsgInstantiateCoreContractResponse) Reset

func (*MsgInstantiateCoreContractResponse) Size

func (*MsgInstantiateCoreContractResponse) String

func (*MsgInstantiateCoreContractResponse) Unmarshal

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

func (*MsgInstantiateCoreContractResponse) XXX_DiscardUnknown

func (m *MsgInstantiateCoreContractResponse) XXX_DiscardUnknown()

func (*MsgInstantiateCoreContractResponse) XXX_Marshal

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

func (*MsgInstantiateCoreContractResponse) XXX_Merge

func (*MsgInstantiateCoreContractResponse) XXX_Size

func (*MsgInstantiateCoreContractResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// StoreDataRequestWasm stores a data request wasm.
	StoreDataRequestWasm(context.Context, *MsgStoreDataRequestWasm) (*MsgStoreDataRequestWasmResponse, error)
	// StoreExecutorWasm stores an executor wasm.
	StoreExecutorWasm(context.Context, *MsgStoreExecutorWasm) (*MsgStoreExecutorWasmResponse, error)
	// InstantiateCoreContract instantiates the Core Contract and registers its
	// address.
	InstantiateCoreContract(context.Context, *MsgInstantiateCoreContract) (*MsgInstantiateCoreContractResponse, error)
	// The UpdateParams method updates the module's parameters.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgStoreDataRequestWasm

type MsgStoreDataRequestWasm struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Wasm   []byte `protobuf:"bytes,2,opt,name=wasm,proto3" json:"wasm,omitempty"`
}

The request message for the StoreDataRequestWasm method.

func (*MsgStoreDataRequestWasm) Descriptor

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

func (*MsgStoreDataRequestWasm) GetSender

func (m *MsgStoreDataRequestWasm) GetSender() string

func (*MsgStoreDataRequestWasm) GetWasm

func (m *MsgStoreDataRequestWasm) GetWasm() []byte

func (*MsgStoreDataRequestWasm) Marshal

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

func (*MsgStoreDataRequestWasm) MarshalTo

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

func (*MsgStoreDataRequestWasm) MarshalToSizedBuffer

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

func (*MsgStoreDataRequestWasm) ProtoMessage

func (*MsgStoreDataRequestWasm) ProtoMessage()

func (*MsgStoreDataRequestWasm) Reset

func (m *MsgStoreDataRequestWasm) Reset()

func (*MsgStoreDataRequestWasm) Size

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

func (*MsgStoreDataRequestWasm) String

func (m *MsgStoreDataRequestWasm) String() string

func (*MsgStoreDataRequestWasm) Unmarshal

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

func (*MsgStoreDataRequestWasm) ValidateBasic

func (msg *MsgStoreDataRequestWasm) ValidateBasic() error

func (*MsgStoreDataRequestWasm) XXX_DiscardUnknown

func (m *MsgStoreDataRequestWasm) XXX_DiscardUnknown()

func (*MsgStoreDataRequestWasm) XXX_Marshal

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

func (*MsgStoreDataRequestWasm) XXX_Merge

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

func (*MsgStoreDataRequestWasm) XXX_Size

func (m *MsgStoreDataRequestWasm) XXX_Size() int

func (*MsgStoreDataRequestWasm) XXX_Unmarshal

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

type MsgStoreDataRequestWasmResponse

type MsgStoreDataRequestWasmResponse struct {
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

The response message for the StoreDataRequestWasm method.

func (*MsgStoreDataRequestWasmResponse) Descriptor

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

func (*MsgStoreDataRequestWasmResponse) GetHash

func (*MsgStoreDataRequestWasmResponse) Marshal

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

func (*MsgStoreDataRequestWasmResponse) MarshalTo

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

func (*MsgStoreDataRequestWasmResponse) MarshalToSizedBuffer

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

func (*MsgStoreDataRequestWasmResponse) ProtoMessage

func (*MsgStoreDataRequestWasmResponse) ProtoMessage()

func (*MsgStoreDataRequestWasmResponse) Reset

func (*MsgStoreDataRequestWasmResponse) Size

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

func (*MsgStoreDataRequestWasmResponse) String

func (*MsgStoreDataRequestWasmResponse) Unmarshal

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

func (*MsgStoreDataRequestWasmResponse) XXX_DiscardUnknown

func (m *MsgStoreDataRequestWasmResponse) XXX_DiscardUnknown()

func (*MsgStoreDataRequestWasmResponse) XXX_Marshal

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

func (*MsgStoreDataRequestWasmResponse) XXX_Merge

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

func (*MsgStoreDataRequestWasmResponse) XXX_Size

func (m *MsgStoreDataRequestWasmResponse) XXX_Size() int

func (*MsgStoreDataRequestWasmResponse) XXX_Unmarshal

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

type MsgStoreExecutorWasm

type MsgStoreExecutorWasm struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Wasm   []byte `protobuf:"bytes,2,opt,name=wasm,proto3" json:"wasm,omitempty"`
}

The request message for the StoreExecutorWasm method.

func (*MsgStoreExecutorWasm) Descriptor

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

func (*MsgStoreExecutorWasm) GetSender

func (m *MsgStoreExecutorWasm) GetSender() string

func (*MsgStoreExecutorWasm) GetWasm

func (m *MsgStoreExecutorWasm) GetWasm() []byte

func (*MsgStoreExecutorWasm) Marshal

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

func (*MsgStoreExecutorWasm) MarshalTo

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

func (*MsgStoreExecutorWasm) MarshalToSizedBuffer

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

func (*MsgStoreExecutorWasm) ProtoMessage

func (*MsgStoreExecutorWasm) ProtoMessage()

func (*MsgStoreExecutorWasm) Reset

func (m *MsgStoreExecutorWasm) Reset()

func (*MsgStoreExecutorWasm) Size

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

func (*MsgStoreExecutorWasm) String

func (m *MsgStoreExecutorWasm) String() string

func (*MsgStoreExecutorWasm) Unmarshal

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

func (*MsgStoreExecutorWasm) ValidateBasic

func (msg *MsgStoreExecutorWasm) ValidateBasic() error

func (*MsgStoreExecutorWasm) XXX_DiscardUnknown

func (m *MsgStoreExecutorWasm) XXX_DiscardUnknown()

func (*MsgStoreExecutorWasm) XXX_Marshal

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

func (*MsgStoreExecutorWasm) XXX_Merge

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

func (*MsgStoreExecutorWasm) XXX_Size

func (m *MsgStoreExecutorWasm) XXX_Size() int

func (*MsgStoreExecutorWasm) XXX_Unmarshal

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

type MsgStoreExecutorWasmResponse

type MsgStoreExecutorWasmResponse struct {
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

The response message for the StoreExecutorWasm method.

func (*MsgStoreExecutorWasmResponse) Descriptor

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

func (*MsgStoreExecutorWasmResponse) GetHash

func (m *MsgStoreExecutorWasmResponse) GetHash() string

func (*MsgStoreExecutorWasmResponse) Marshal

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

func (*MsgStoreExecutorWasmResponse) MarshalTo

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

func (*MsgStoreExecutorWasmResponse) MarshalToSizedBuffer

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

func (*MsgStoreExecutorWasmResponse) ProtoMessage

func (*MsgStoreExecutorWasmResponse) ProtoMessage()

func (*MsgStoreExecutorWasmResponse) Reset

func (m *MsgStoreExecutorWasmResponse) Reset()

func (*MsgStoreExecutorWasmResponse) Size

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

func (*MsgStoreExecutorWasmResponse) String

func (*MsgStoreExecutorWasmResponse) Unmarshal

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

func (*MsgStoreExecutorWasmResponse) XXX_DiscardUnknown

func (m *MsgStoreExecutorWasmResponse) XXX_DiscardUnknown()

func (*MsgStoreExecutorWasmResponse) XXX_Marshal

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

func (*MsgStoreExecutorWasmResponse) XXX_Merge

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

func (*MsgStoreExecutorWasmResponse) XXX_Size

func (m *MsgStoreExecutorWasmResponse) XXX_Size() int

func (*MsgStoreExecutorWasmResponse) XXX_Unmarshal

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

type MsgUpdateParams added in v0.0.6

type MsgUpdateParams struct {
	// authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Params    Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

The request message for the UpdateParams method.

func (*MsgUpdateParams) Descriptor added in v0.0.6

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

func (*MsgUpdateParams) GetAuthority added in v0.0.6

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v0.0.6

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) Marshal added in v0.0.6

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

func (*MsgUpdateParams) MarshalTo added in v0.0.6

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

func (*MsgUpdateParams) MarshalToSizedBuffer added in v0.0.6

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

func (*MsgUpdateParams) ProtoMessage added in v0.0.6

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v0.0.6

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size added in v0.0.6

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

func (*MsgUpdateParams) String added in v0.0.6

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal added in v0.0.6

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

func (*MsgUpdateParams) XXX_DiscardUnknown added in v0.0.6

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v0.0.6

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

func (*MsgUpdateParams) XXX_Merge added in v0.0.6

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

func (*MsgUpdateParams) XXX_Size added in v0.0.6

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v0.0.6

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

type MsgUpdateParamsResponse added in v0.0.6

type MsgUpdateParamsResponse struct {
}

no data needs to be returned

func (*MsgUpdateParamsResponse) Descriptor added in v0.0.6

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

func (*MsgUpdateParamsResponse) Marshal added in v0.0.6

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

func (*MsgUpdateParamsResponse) MarshalTo added in v0.0.6

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v0.0.6

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

func (*MsgUpdateParamsResponse) ProtoMessage added in v0.0.6

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v0.0.6

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v0.0.6

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

func (*MsgUpdateParamsResponse) String added in v0.0.6

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v0.0.6

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v0.0.6

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v0.0.6

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

func (*MsgUpdateParamsResponse) XXX_Merge added in v0.0.6

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

func (*MsgUpdateParamsResponse) XXX_Size added in v0.0.6

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v0.0.6

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

type Params

type Params struct {
	MaxWasmSize int64 `protobuf:"varint,1,opt,name=max_wasm_size,json=maxWasmSize,proto3" json:"max_wasm_size,omitempty"`
	// WasmTTL represents the number of blocks a wasm's life is extended when it's
	// created or used.
	WasmTTL int64 `protobuf:"varint,2,opt,name=wasm_ttl,json=wasmTtl,proto3" json:"wasm_ttl,omitempty"`
}

Params to define the max wasm size allowed.

func DefaultParams

func DefaultParams() Params

DefaultParams returns default wasm-storage module parameters.

func (*Params) Descriptor

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

func (*Params) Equal added in v0.0.6

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

func (*Params) GetMaxWasmSize

func (m *Params) GetMaxWasmSize() int64

func (*Params) GetWasmTTL added in v0.1.4

func (m *Params) GetWasmTTL() int64

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

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) Validate

func (p *Params) Validate() error

Validate validates the wasm-storage module parameters.

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 {
	// DataRequestWasm returns a data request wasm given its hash.
	DataRequestWasm(ctx context.Context, in *QueryDataRequestWasmRequest, opts ...grpc.CallOption) (*QueryDataRequestWasmResponse, error)
	// DataRequestWasms returns all data request wasms.
	DataRequestWasms(ctx context.Context, in *QueryDataRequestWasmsRequest, opts ...grpc.CallOption) (*QueryDataRequestWasmsResponse, error)
	// ExecutorWasm returns an executor wasm given its hash.
	ExecutorWasm(ctx context.Context, in *QueryExecutorWasmRequest, opts ...grpc.CallOption) (*QueryExecutorWasmResponse, error)
	// ExecutorWasms returns all executor wasms.
	ExecutorWasms(ctx context.Context, in *QueryExecutorWasmsRequest, opts ...grpc.CallOption) (*QueryExecutorWasmsResponse, error)
	// CoreContractRegistry returns the Core Contract Registry address.
	CoreContractRegistry(ctx context.Context, in *QueryCoreContractRegistryRequest, opts ...grpc.CallOption) (*QueryCoreContractRegistryResponse, 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 QueryCoreContractRegistryRequest

type QueryCoreContractRegistryRequest struct {
}

The request message for QueryCoreContractRegistry RPC.

func (*QueryCoreContractRegistryRequest) Descriptor

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

func (*QueryCoreContractRegistryRequest) Marshal

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

func (*QueryCoreContractRegistryRequest) MarshalTo

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

func (*QueryCoreContractRegistryRequest) MarshalToSizedBuffer

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

func (*QueryCoreContractRegistryRequest) ProtoMessage

func (*QueryCoreContractRegistryRequest) ProtoMessage()

func (*QueryCoreContractRegistryRequest) Reset

func (*QueryCoreContractRegistryRequest) Size

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

func (*QueryCoreContractRegistryRequest) String

func (*QueryCoreContractRegistryRequest) Unmarshal

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

func (*QueryCoreContractRegistryRequest) XXX_DiscardUnknown

func (m *QueryCoreContractRegistryRequest) XXX_DiscardUnknown()

func (*QueryCoreContractRegistryRequest) XXX_Marshal

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

func (*QueryCoreContractRegistryRequest) XXX_Merge

func (*QueryCoreContractRegistryRequest) XXX_Size

func (m *QueryCoreContractRegistryRequest) XXX_Size() int

func (*QueryCoreContractRegistryRequest) XXX_Unmarshal

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

type QueryCoreContractRegistryResponse

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

The response message for QueryCoreContractRegistry RPC.

func (*QueryCoreContractRegistryResponse) Descriptor

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

func (*QueryCoreContractRegistryResponse) GetAddress

func (m *QueryCoreContractRegistryResponse) GetAddress() string

func (*QueryCoreContractRegistryResponse) Marshal

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

func (*QueryCoreContractRegistryResponse) MarshalTo

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

func (*QueryCoreContractRegistryResponse) MarshalToSizedBuffer

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

func (*QueryCoreContractRegistryResponse) ProtoMessage

func (*QueryCoreContractRegistryResponse) ProtoMessage()

func (*QueryCoreContractRegistryResponse) Reset

func (*QueryCoreContractRegistryResponse) Size

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

func (*QueryCoreContractRegistryResponse) String

func (*QueryCoreContractRegistryResponse) Unmarshal

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

func (*QueryCoreContractRegistryResponse) XXX_DiscardUnknown

func (m *QueryCoreContractRegistryResponse) XXX_DiscardUnknown()

func (*QueryCoreContractRegistryResponse) XXX_Marshal

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

func (*QueryCoreContractRegistryResponse) XXX_Merge

func (*QueryCoreContractRegistryResponse) XXX_Size

func (m *QueryCoreContractRegistryResponse) XXX_Size() int

func (*QueryCoreContractRegistryResponse) XXX_Unmarshal

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

type QueryDataRequestWasmRequest

type QueryDataRequestWasmRequest struct {
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

The request message for QueryDataRequestWasm RPC.

func (*QueryDataRequestWasmRequest) Descriptor

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

func (*QueryDataRequestWasmRequest) GetHash

func (m *QueryDataRequestWasmRequest) GetHash() string

func (*QueryDataRequestWasmRequest) Marshal

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

func (*QueryDataRequestWasmRequest) MarshalTo

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

func (*QueryDataRequestWasmRequest) MarshalToSizedBuffer

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

func (*QueryDataRequestWasmRequest) ProtoMessage

func (*QueryDataRequestWasmRequest) ProtoMessage()

func (*QueryDataRequestWasmRequest) Reset

func (m *QueryDataRequestWasmRequest) Reset()

func (*QueryDataRequestWasmRequest) Size

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

func (*QueryDataRequestWasmRequest) String

func (m *QueryDataRequestWasmRequest) String() string

func (*QueryDataRequestWasmRequest) Unmarshal

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

func (*QueryDataRequestWasmRequest) XXX_DiscardUnknown

func (m *QueryDataRequestWasmRequest) XXX_DiscardUnknown()

func (*QueryDataRequestWasmRequest) XXX_Marshal

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

func (*QueryDataRequestWasmRequest) XXX_Merge

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

func (*QueryDataRequestWasmRequest) XXX_Size

func (m *QueryDataRequestWasmRequest) XXX_Size() int

func (*QueryDataRequestWasmRequest) XXX_Unmarshal

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

type QueryDataRequestWasmResponse

type QueryDataRequestWasmResponse struct {
	Wasm *DataRequestWasm `protobuf:"bytes,1,opt,name=wasm,proto3" json:"wasm,omitempty"`
}

The response message for QueryDataRequestWasm RPC.

func (*QueryDataRequestWasmResponse) Descriptor

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

func (*QueryDataRequestWasmResponse) GetWasm

func (*QueryDataRequestWasmResponse) Marshal

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

func (*QueryDataRequestWasmResponse) MarshalTo

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

func (*QueryDataRequestWasmResponse) MarshalToSizedBuffer

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

func (*QueryDataRequestWasmResponse) ProtoMessage

func (*QueryDataRequestWasmResponse) ProtoMessage()

func (*QueryDataRequestWasmResponse) Reset

func (m *QueryDataRequestWasmResponse) Reset()

func (*QueryDataRequestWasmResponse) Size

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

func (*QueryDataRequestWasmResponse) String

func (*QueryDataRequestWasmResponse) Unmarshal

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

func (*QueryDataRequestWasmResponse) XXX_DiscardUnknown

func (m *QueryDataRequestWasmResponse) XXX_DiscardUnknown()

func (*QueryDataRequestWasmResponse) XXX_Marshal

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

func (*QueryDataRequestWasmResponse) XXX_Merge

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

func (*QueryDataRequestWasmResponse) XXX_Size

func (m *QueryDataRequestWasmResponse) XXX_Size() int

func (*QueryDataRequestWasmResponse) XXX_Unmarshal

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

type QueryDataRequestWasmsRequest

type QueryDataRequestWasmsRequest struct {
}

The request message for QueryDataRequestWasms RPC.

func (*QueryDataRequestWasmsRequest) Descriptor

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

func (*QueryDataRequestWasmsRequest) Marshal

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

func (*QueryDataRequestWasmsRequest) MarshalTo

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

func (*QueryDataRequestWasmsRequest) MarshalToSizedBuffer

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

func (*QueryDataRequestWasmsRequest) ProtoMessage

func (*QueryDataRequestWasmsRequest) ProtoMessage()

func (*QueryDataRequestWasmsRequest) Reset

func (m *QueryDataRequestWasmsRequest) Reset()

func (*QueryDataRequestWasmsRequest) Size

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

func (*QueryDataRequestWasmsRequest) String

func (*QueryDataRequestWasmsRequest) Unmarshal

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

func (*QueryDataRequestWasmsRequest) XXX_DiscardUnknown

func (m *QueryDataRequestWasmsRequest) XXX_DiscardUnknown()

func (*QueryDataRequestWasmsRequest) XXX_Marshal

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

func (*QueryDataRequestWasmsRequest) XXX_Merge

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

func (*QueryDataRequestWasmsRequest) XXX_Size

func (m *QueryDataRequestWasmsRequest) XXX_Size() int

func (*QueryDataRequestWasmsRequest) XXX_Unmarshal

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

type QueryDataRequestWasmsResponse

type QueryDataRequestWasmsResponse struct {
	List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
}

The response message for QueryDataRequestWasms RPC.

func (*QueryDataRequestWasmsResponse) Descriptor

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

func (*QueryDataRequestWasmsResponse) GetList

func (m *QueryDataRequestWasmsResponse) GetList() []string

func (*QueryDataRequestWasmsResponse) Marshal

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

func (*QueryDataRequestWasmsResponse) MarshalTo

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

func (*QueryDataRequestWasmsResponse) MarshalToSizedBuffer

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

func (*QueryDataRequestWasmsResponse) ProtoMessage

func (*QueryDataRequestWasmsResponse) ProtoMessage()

func (*QueryDataRequestWasmsResponse) Reset

func (m *QueryDataRequestWasmsResponse) Reset()

func (*QueryDataRequestWasmsResponse) Size

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

func (*QueryDataRequestWasmsResponse) String

func (*QueryDataRequestWasmsResponse) Unmarshal

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

func (*QueryDataRequestWasmsResponse) XXX_DiscardUnknown

func (m *QueryDataRequestWasmsResponse) XXX_DiscardUnknown()

func (*QueryDataRequestWasmsResponse) XXX_Marshal

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

func (*QueryDataRequestWasmsResponse) XXX_Merge

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

func (*QueryDataRequestWasmsResponse) XXX_Size

func (m *QueryDataRequestWasmsResponse) XXX_Size() int

func (*QueryDataRequestWasmsResponse) XXX_Unmarshal

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

type QueryExecutorWasmRequest

type QueryExecutorWasmRequest struct {
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

The request message for QueryExecutorWasm RPC.

func (*QueryExecutorWasmRequest) Descriptor

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

func (*QueryExecutorWasmRequest) GetHash

func (m *QueryExecutorWasmRequest) GetHash() string

func (*QueryExecutorWasmRequest) Marshal

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

func (*QueryExecutorWasmRequest) MarshalTo

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

func (*QueryExecutorWasmRequest) MarshalToSizedBuffer

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

func (*QueryExecutorWasmRequest) ProtoMessage

func (*QueryExecutorWasmRequest) ProtoMessage()

func (*QueryExecutorWasmRequest) Reset

func (m *QueryExecutorWasmRequest) Reset()

func (*QueryExecutorWasmRequest) Size

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

func (*QueryExecutorWasmRequest) String

func (m *QueryExecutorWasmRequest) String() string

func (*QueryExecutorWasmRequest) Unmarshal

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

func (*QueryExecutorWasmRequest) XXX_DiscardUnknown

func (m *QueryExecutorWasmRequest) XXX_DiscardUnknown()

func (*QueryExecutorWasmRequest) XXX_Marshal

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

func (*QueryExecutorWasmRequest) XXX_Merge

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

func (*QueryExecutorWasmRequest) XXX_Size

func (m *QueryExecutorWasmRequest) XXX_Size() int

func (*QueryExecutorWasmRequest) XXX_Unmarshal

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

type QueryExecutorWasmResponse

type QueryExecutorWasmResponse struct {
	Wasm *ExecutorWasm `protobuf:"bytes,1,opt,name=wasm,proto3" json:"wasm,omitempty"`
}

The response message for QueryExecutorWasm RPC.

func (*QueryExecutorWasmResponse) Descriptor

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

func (*QueryExecutorWasmResponse) GetWasm

func (*QueryExecutorWasmResponse) Marshal

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

func (*QueryExecutorWasmResponse) MarshalTo

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

func (*QueryExecutorWasmResponse) MarshalToSizedBuffer

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

func (*QueryExecutorWasmResponse) ProtoMessage

func (*QueryExecutorWasmResponse) ProtoMessage()

func (*QueryExecutorWasmResponse) Reset

func (m *QueryExecutorWasmResponse) Reset()

func (*QueryExecutorWasmResponse) Size

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

func (*QueryExecutorWasmResponse) String

func (m *QueryExecutorWasmResponse) String() string

func (*QueryExecutorWasmResponse) Unmarshal

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

func (*QueryExecutorWasmResponse) XXX_DiscardUnknown

func (m *QueryExecutorWasmResponse) XXX_DiscardUnknown()

func (*QueryExecutorWasmResponse) XXX_Marshal

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

func (*QueryExecutorWasmResponse) XXX_Merge

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

func (*QueryExecutorWasmResponse) XXX_Size

func (m *QueryExecutorWasmResponse) XXX_Size() int

func (*QueryExecutorWasmResponse) XXX_Unmarshal

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

type QueryExecutorWasmsRequest

type QueryExecutorWasmsRequest struct {
}

The request message for QueryExecutorWasms RPC.

func (*QueryExecutorWasmsRequest) Descriptor

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

func (*QueryExecutorWasmsRequest) Marshal

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

func (*QueryExecutorWasmsRequest) MarshalTo

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

func (*QueryExecutorWasmsRequest) MarshalToSizedBuffer

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

func (*QueryExecutorWasmsRequest) ProtoMessage

func (*QueryExecutorWasmsRequest) ProtoMessage()

func (*QueryExecutorWasmsRequest) Reset

func (m *QueryExecutorWasmsRequest) Reset()

func (*QueryExecutorWasmsRequest) Size

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

func (*QueryExecutorWasmsRequest) String

func (m *QueryExecutorWasmsRequest) String() string

func (*QueryExecutorWasmsRequest) Unmarshal

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

func (*QueryExecutorWasmsRequest) XXX_DiscardUnknown

func (m *QueryExecutorWasmsRequest) XXX_DiscardUnknown()

func (*QueryExecutorWasmsRequest) XXX_Marshal

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

func (*QueryExecutorWasmsRequest) XXX_Merge

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

func (*QueryExecutorWasmsRequest) XXX_Size

func (m *QueryExecutorWasmsRequest) XXX_Size() int

func (*QueryExecutorWasmsRequest) XXX_Unmarshal

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

type QueryExecutorWasmsResponse

type QueryExecutorWasmsResponse struct {
	List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
}

The response message for QueryExecutorWasms RPC.

func (*QueryExecutorWasmsResponse) Descriptor

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

func (*QueryExecutorWasmsResponse) GetList

func (m *QueryExecutorWasmsResponse) GetList() []string

func (*QueryExecutorWasmsResponse) Marshal

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

func (*QueryExecutorWasmsResponse) MarshalTo

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

func (*QueryExecutorWasmsResponse) MarshalToSizedBuffer

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

func (*QueryExecutorWasmsResponse) ProtoMessage

func (*QueryExecutorWasmsResponse) ProtoMessage()

func (*QueryExecutorWasmsResponse) Reset

func (m *QueryExecutorWasmsResponse) Reset()

func (*QueryExecutorWasmsResponse) Size

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

func (*QueryExecutorWasmsResponse) String

func (m *QueryExecutorWasmsResponse) String() string

func (*QueryExecutorWasmsResponse) Unmarshal

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

func (*QueryExecutorWasmsResponse) XXX_DiscardUnknown

func (m *QueryExecutorWasmsResponse) XXX_DiscardUnknown()

func (*QueryExecutorWasmsResponse) XXX_Marshal

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

func (*QueryExecutorWasmsResponse) XXX_Merge

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

func (*QueryExecutorWasmsResponse) XXX_Size

func (m *QueryExecutorWasmsResponse) XXX_Size() int

func (*QueryExecutorWasmsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// DataRequestWasm returns a data request wasm given its hash.
	DataRequestWasm(context.Context, *QueryDataRequestWasmRequest) (*QueryDataRequestWasmResponse, error)
	// DataRequestWasms returns all data request wasms.
	DataRequestWasms(context.Context, *QueryDataRequestWasmsRequest) (*QueryDataRequestWasmsResponse, error)
	// ExecutorWasm returns an executor wasm given its hash.
	ExecutorWasm(context.Context, *QueryExecutorWasmRequest) (*QueryExecutorWasmResponse, error)
	// ExecutorWasms returns all executor wasms.
	ExecutorWasms(context.Context, *QueryExecutorWasmsRequest) (*QueryExecutorWasmsResponse, error)
	// CoreContractRegistry returns the Core Contract Registry address.
	CoreContractRegistry(context.Context, *QueryCoreContractRegistryRequest) (*QueryCoreContractRegistryResponse, 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) InstantiateCoreContract

func (*UnimplementedMsgServer) StoreDataRequestWasm

func (*UnimplementedMsgServer) StoreExecutorWasm

func (*UnimplementedMsgServer) UpdateParams added in v0.0.6

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) DataRequestWasm

func (*UnimplementedQueryServer) DataRequestWasms

func (*UnimplementedQueryServer) ExecutorWasm

func (*UnimplementedQueryServer) ExecutorWasms

Jump to

Keyboard shortcuts

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