types

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 30 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"
	EventTypeOverlayWasm          = "store_overlay_wasm"

	AttributeHash     = "hash"
	AttributeWasmType = "wasm_type"
)
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

	// KeyParams is the store key for the parameters.
	KeyParams = "params"
)
View Source
const DefaultMaxWasmSize uint64 = 800 * 1024
View Source
const (
	// MaxWasmSize is the maximum size of Wasm bytecode.
	MaxWasmSize = 800 * 1024
)

Variables

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// KeyPrefixDataRequest defines prefix to store Data Request Wasm binaries.
	KeyPrefixDataRequest = []byte{0x00}

	// KeyPrefixOverlay defines prefix to store Overlay Wasm binaries.
	KeyPrefixOverlay = []byte{0x01}

	// KeyPrefixDataRequestQueue defines prefix to store the queue that contains
	// the hashes of Data Request Wasm binaries.
	KeyPrefixDataRequestQueue = []byte{0x02}

	// KeyPrefixProxyContractRegistry defines prefix to store address of
	// Proxy Contract.
	KeyPrefixProxyContractRegistry = []byte{0x03}
)
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")
)
View Source
var WasmType_name = map[int32]string{
	0: "WASM_TYPE_UNSPECIFIED",
	1: "WASM_TYPE_DATA_REQUEST",
	2: "WASM_TYPE_TALLY",
	3: "WASM_TYPE_DATA_REQUEST_EXECUTOR",
	4: "WASM_TYPE_RELAYER",
}
View Source
var WasmType_value = map[string]int32{
	"WASM_TYPE_UNSPECIFIED":           0,
	"WASM_TYPE_DATA_REQUEST":          1,
	"WASM_TYPE_TALLY":                 2,
	"WASM_TYPE_DATA_REQUEST_EXECUTOR": 3,
	"WASM_TYPE_RELAYER":               4,
}

Functions

func GetDataRequestTimeKey

func GetDataRequestTimeKey(timestamp time.Time) []byte

GetDataRequestTimeKey gets the key for an item in Data Request Queue. This key is the timestamp of when the Data Request Wasm was stored.

func GetDataRequestWasmKey

func GetDataRequestWasmKey(hash []byte) []byte

func GetOverlayWasmKey

func GetOverlayWasmKey(hash []byte) []byte

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
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

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

BankKeeper defines the expected interface needed to retrieve account balances.

type EventStoreDataRequestWasm

type EventStoreDataRequestWasm struct {
	Hash     string   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	WasmType WasmType `` /* 126-byte string literal not displayed */
	Bytecode []byte   `protobuf:"bytes,3,opt,name=bytecode,proto3" json:"bytecode,omitempty"`
}

The msg for storing a data request wasm.

func (*EventStoreDataRequestWasm) Descriptor

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

func (*EventStoreDataRequestWasm) GetBytecode

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

func (*EventStoreDataRequestWasm) GetHash

func (m *EventStoreDataRequestWasm) GetHash() string

func (*EventStoreDataRequestWasm) GetWasmType

func (m *EventStoreDataRequestWasm) GetWasmType() WasmType

func (*EventStoreDataRequestWasm) Marshal

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

func (*EventStoreDataRequestWasm) MarshalTo

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

func (*EventStoreDataRequestWasm) MarshalToSizedBuffer

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

func (*EventStoreDataRequestWasm) ProtoMessage

func (*EventStoreDataRequestWasm) ProtoMessage()

func (*EventStoreDataRequestWasm) Reset

func (m *EventStoreDataRequestWasm) Reset()

func (*EventStoreDataRequestWasm) Size

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

func (*EventStoreDataRequestWasm) String

func (m *EventStoreDataRequestWasm) String() string

func (*EventStoreDataRequestWasm) Unmarshal

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

func (*EventStoreDataRequestWasm) XXX_DiscardUnknown

func (m *EventStoreDataRequestWasm) XXX_DiscardUnknown()

func (*EventStoreDataRequestWasm) XXX_Marshal

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

func (*EventStoreDataRequestWasm) XXX_Merge

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

func (*EventStoreDataRequestWasm) XXX_Size

func (m *EventStoreDataRequestWasm) XXX_Size() int

func (*EventStoreDataRequestWasm) XXX_Unmarshal

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

type EventStoreOverlayWasm

type EventStoreOverlayWasm struct {
	Hash     string   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	WasmType WasmType `` /* 126-byte string literal not displayed */
	Bytecode []byte   `protobuf:"bytes,3,opt,name=bytecode,proto3" json:"bytecode,omitempty"`
}

The msg for storing a overlay wasm(i.e. relayer or executor)

func (*EventStoreOverlayWasm) Descriptor

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

func (*EventStoreOverlayWasm) GetBytecode

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

func (*EventStoreOverlayWasm) GetHash

func (m *EventStoreOverlayWasm) GetHash() string

func (*EventStoreOverlayWasm) GetWasmType

func (m *EventStoreOverlayWasm) GetWasmType() WasmType

func (*EventStoreOverlayWasm) Marshal

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

func (*EventStoreOverlayWasm) MarshalTo

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

func (*EventStoreOverlayWasm) MarshalToSizedBuffer

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

func (*EventStoreOverlayWasm) ProtoMessage

func (*EventStoreOverlayWasm) ProtoMessage()

func (*EventStoreOverlayWasm) Reset

func (m *EventStoreOverlayWasm) Reset()

func (*EventStoreOverlayWasm) Size

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

func (*EventStoreOverlayWasm) String

func (m *EventStoreOverlayWasm) String() string

func (*EventStoreOverlayWasm) Unmarshal

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

func (*EventStoreOverlayWasm) XXX_DiscardUnknown

func (m *EventStoreOverlayWasm) XXX_DiscardUnknown()

func (*EventStoreOverlayWasm) XXX_Marshal

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

func (*EventStoreOverlayWasm) XXX_Merge

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

func (*EventStoreOverlayWasm) XXX_Size

func (m *EventStoreOverlayWasm) XXX_Size() int

func (*EventStoreOverlayWasm) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Wasms                 []Wasm `protobuf:"bytes,1,rep,name=wasms,proto3" json:"wasms"`
	ProxyContractRegistry string `` /* 126-byte string literal not displayed */
}

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(wasms []Wasm, proxyAddr string) GenesisState

NewGenesisState constructs a GenesisState object.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetProxyContractRegistry

func (m *GenesisState) GetProxyContractRegistry() string

func (*GenesisState) GetWasms

func (m *GenesisState) GetWasms() []Wasm

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 {
	// The StoreDataRequestWasm method stores a dr wasm in the wasm-storage
	// module.
	StoreDataRequestWasm(ctx context.Context, in *MsgStoreDataRequestWasm, opts ...grpc.CallOption) (*MsgStoreDataRequestWasmResponse, error)
	// The StoreOverlayWasm method stores an overlay wasm in the wasm-storage
	// module.
	StoreOverlayWasm(ctx context.Context, in *MsgStoreOverlayWasm, opts ...grpc.CallOption) (*MsgStoreOverlayWasmResponse, error)
	// The InstantiateAndRegisterProxyContract method instantiates the proxy
	// contract and registers it's address.
	InstantiateAndRegisterProxyContract(ctx context.Context, in *MsgInstantiateAndRegisterProxyContract, opts ...grpc.CallOption) (*MsgInstantiateAndRegisterProxyContractResponse, 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 MsgInstantiateAndRegisterProxyContract

type MsgInstantiateAndRegisterProxyContract 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 InstantiateAndRegisterProxyContract method.

func (*MsgInstantiateAndRegisterProxyContract) Descriptor

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

func (*MsgInstantiateAndRegisterProxyContract) GetAdmin

func (*MsgInstantiateAndRegisterProxyContract) GetCodeID

func (*MsgInstantiateAndRegisterProxyContract) GetFixMsg

func (*MsgInstantiateAndRegisterProxyContract) GetFunds

func (*MsgInstantiateAndRegisterProxyContract) GetLabel

func (*MsgInstantiateAndRegisterProxyContract) GetMsg

func (*MsgInstantiateAndRegisterProxyContract) GetSalt

func (*MsgInstantiateAndRegisterProxyContract) GetSender

func (*MsgInstantiateAndRegisterProxyContract) Marshal

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

func (*MsgInstantiateAndRegisterProxyContract) MarshalTo

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

func (*MsgInstantiateAndRegisterProxyContract) MarshalToSizedBuffer

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

func (*MsgInstantiateAndRegisterProxyContract) ProtoMessage

func (*MsgInstantiateAndRegisterProxyContract) Reset

func (MsgInstantiateAndRegisterProxyContract) Route

func (*MsgInstantiateAndRegisterProxyContract) Size

func (*MsgInstantiateAndRegisterProxyContract) String

func (MsgInstantiateAndRegisterProxyContract) Type

func (*MsgInstantiateAndRegisterProxyContract) Unmarshal

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

func (MsgInstantiateAndRegisterProxyContract) ValidateBasic

func (msg MsgInstantiateAndRegisterProxyContract) ValidateBasic() error

func (*MsgInstantiateAndRegisterProxyContract) XXX_DiscardUnknown

func (m *MsgInstantiateAndRegisterProxyContract) XXX_DiscardUnknown()

func (*MsgInstantiateAndRegisterProxyContract) XXX_Marshal

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

func (*MsgInstantiateAndRegisterProxyContract) XXX_Merge

func (*MsgInstantiateAndRegisterProxyContract) XXX_Size

func (*MsgInstantiateAndRegisterProxyContract) XXX_Unmarshal

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

type MsgInstantiateAndRegisterProxyContractResponse

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

The response message for the InstantiateAndRegisterProxyContract method.

func (*MsgInstantiateAndRegisterProxyContractResponse) Descriptor

func (*MsgInstantiateAndRegisterProxyContractResponse) GetContractAddress

func (*MsgInstantiateAndRegisterProxyContractResponse) Marshal

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

func (*MsgInstantiateAndRegisterProxyContractResponse) MarshalTo

func (*MsgInstantiateAndRegisterProxyContractResponse) MarshalToSizedBuffer

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

func (*MsgInstantiateAndRegisterProxyContractResponse) ProtoMessage

func (*MsgInstantiateAndRegisterProxyContractResponse) Reset

func (*MsgInstantiateAndRegisterProxyContractResponse) Size

func (*MsgInstantiateAndRegisterProxyContractResponse) String

func (*MsgInstantiateAndRegisterProxyContractResponse) Unmarshal

func (*MsgInstantiateAndRegisterProxyContractResponse) XXX_DiscardUnknown

func (m *MsgInstantiateAndRegisterProxyContractResponse) XXX_DiscardUnknown()

func (*MsgInstantiateAndRegisterProxyContractResponse) XXX_Marshal

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

func (*MsgInstantiateAndRegisterProxyContractResponse) XXX_Merge

func (*MsgInstantiateAndRegisterProxyContractResponse) XXX_Size

func (*MsgInstantiateAndRegisterProxyContractResponse) XXX_Unmarshal

type MsgServer

type MsgServer interface {
	// The StoreDataRequestWasm method stores a dr wasm in the wasm-storage
	// module.
	StoreDataRequestWasm(context.Context, *MsgStoreDataRequestWasm) (*MsgStoreDataRequestWasmResponse, error)
	// The StoreOverlayWasm method stores an overlay wasm in the wasm-storage
	// module.
	StoreOverlayWasm(context.Context, *MsgStoreOverlayWasm) (*MsgStoreOverlayWasmResponse, error)
	// The InstantiateAndRegisterProxyContract method instantiates the proxy
	// contract and registers it's address.
	InstantiateAndRegisterProxyContract(context.Context, *MsgInstantiateAndRegisterProxyContract) (*MsgInstantiateAndRegisterProxyContractResponse, 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"`
	WasmType WasmType `` /* 126-byte string literal not displayed */
}

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

func (m *MsgStoreDataRequestWasm) GetWasmType() WasmType

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

func (msg MsgStoreDataRequestWasm) Route() string

func (*MsgStoreDataRequestWasm) Size

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

func (*MsgStoreDataRequestWasm) String

func (m *MsgStoreDataRequestWasm) String() string

func (MsgStoreDataRequestWasm) Type

func (msg MsgStoreDataRequestWasm) Type() 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 MsgStoreOverlayWasm

type MsgStoreOverlayWasm 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"`
	WasmType WasmType `` /* 126-byte string literal not displayed */
}

The request message for the StoreOverlayWasm method.

func (*MsgStoreOverlayWasm) Descriptor

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

func (*MsgStoreOverlayWasm) GetSender

func (m *MsgStoreOverlayWasm) GetSender() string

func (*MsgStoreOverlayWasm) GetWasm

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

func (*MsgStoreOverlayWasm) GetWasmType

func (m *MsgStoreOverlayWasm) GetWasmType() WasmType

func (*MsgStoreOverlayWasm) Marshal

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

func (*MsgStoreOverlayWasm) MarshalTo

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

func (*MsgStoreOverlayWasm) MarshalToSizedBuffer

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

func (*MsgStoreOverlayWasm) ProtoMessage

func (*MsgStoreOverlayWasm) ProtoMessage()

func (*MsgStoreOverlayWasm) Reset

func (m *MsgStoreOverlayWasm) Reset()

func (MsgStoreOverlayWasm) Route

func (msg MsgStoreOverlayWasm) Route() string

func (*MsgStoreOverlayWasm) Size

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

func (*MsgStoreOverlayWasm) String

func (m *MsgStoreOverlayWasm) String() string

func (MsgStoreOverlayWasm) Type

func (msg MsgStoreOverlayWasm) Type() string

func (*MsgStoreOverlayWasm) Unmarshal

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

func (MsgStoreOverlayWasm) ValidateBasic

func (msg MsgStoreOverlayWasm) ValidateBasic() error

func (*MsgStoreOverlayWasm) XXX_DiscardUnknown

func (m *MsgStoreOverlayWasm) XXX_DiscardUnknown()

func (*MsgStoreOverlayWasm) XXX_Marshal

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

func (*MsgStoreOverlayWasm) XXX_Merge

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

func (*MsgStoreOverlayWasm) XXX_Size

func (m *MsgStoreOverlayWasm) XXX_Size() int

func (*MsgStoreOverlayWasm) XXX_Unmarshal

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

type MsgStoreOverlayWasmResponse

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

The response message for the StoreOverlayWasm method.

func (*MsgStoreOverlayWasmResponse) Descriptor

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

func (*MsgStoreOverlayWasmResponse) GetHash

func (m *MsgStoreOverlayWasmResponse) GetHash() string

func (*MsgStoreOverlayWasmResponse) Marshal

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

func (*MsgStoreOverlayWasmResponse) MarshalTo

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

func (*MsgStoreOverlayWasmResponse) MarshalToSizedBuffer

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

func (*MsgStoreOverlayWasmResponse) ProtoMessage

func (*MsgStoreOverlayWasmResponse) ProtoMessage()

func (*MsgStoreOverlayWasmResponse) Reset

func (m *MsgStoreOverlayWasmResponse) Reset()

func (*MsgStoreOverlayWasmResponse) Size

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

func (*MsgStoreOverlayWasmResponse) String

func (m *MsgStoreOverlayWasmResponse) String() string

func (*MsgStoreOverlayWasmResponse) Unmarshal

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

func (*MsgStoreOverlayWasmResponse) XXX_DiscardUnknown

func (m *MsgStoreOverlayWasmResponse) XXX_DiscardUnknown()

func (*MsgStoreOverlayWasmResponse) XXX_Marshal

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

func (*MsgStoreOverlayWasmResponse) XXX_Merge

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

func (*MsgStoreOverlayWasmResponse) XXX_Size

func (m *MsgStoreOverlayWasmResponse) XXX_Size() int

func (*MsgStoreOverlayWasmResponse) XXX_Unmarshal

func (m *MsgStoreOverlayWasmResponse) 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 uint64 `protobuf:"varint,1,opt,name=max_wasm_size,json=maxWasmSize,proto3" json:"max_wasm_size,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() uint64

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

func (p Params) ValidateBasic() error

ValidateBasic performs basic validation on 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 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)
	// OverlayWasm returns Overlay Wasm given its hash.
	OverlayWasm(ctx context.Context, in *QueryOverlayWasmRequest, opts ...grpc.CallOption) (*QueryOverlayWasmResponse, error)
	// OverlayWasms returns all Overlay Wasms.
	OverlayWasms(ctx context.Context, in *QueryOverlayWasmsRequest, opts ...grpc.CallOption) (*QueryOverlayWasmsResponse, error)
	// ProxyContractRegistry returns the Proxy Contract Registry address.
	ProxyContractRegistry(ctx context.Context, in *QueryProxyContractRegistryRequest, opts ...grpc.CallOption) (*QueryProxyContractRegistryResponse, 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 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 *Wasm `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 (m *QueryDataRequestWasmResponse) GetWasm() *Wasm

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 {
	HashTypePairs []string `protobuf:"bytes,1,rep,name=hash_type_pairs,json=hashTypePairs,proto3" json:"hash_type_pairs,omitempty"`
}

The response message for QueryDataRequestWasms RPC.

func (*QueryDataRequestWasmsResponse) Descriptor

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

func (*QueryDataRequestWasmsResponse) GetHashTypePairs

func (m *QueryDataRequestWasmsResponse) GetHashTypePairs() []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 QueryOverlayWasmRequest

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

The request message for QueryOverlayWasm RPC.

func (*QueryOverlayWasmRequest) Descriptor

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

func (*QueryOverlayWasmRequest) GetHash

func (m *QueryOverlayWasmRequest) GetHash() string

func (*QueryOverlayWasmRequest) Marshal

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

func (*QueryOverlayWasmRequest) MarshalTo

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

func (*QueryOverlayWasmRequest) MarshalToSizedBuffer

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

func (*QueryOverlayWasmRequest) ProtoMessage

func (*QueryOverlayWasmRequest) ProtoMessage()

func (*QueryOverlayWasmRequest) Reset

func (m *QueryOverlayWasmRequest) Reset()

func (*QueryOverlayWasmRequest) Size

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

func (*QueryOverlayWasmRequest) String

func (m *QueryOverlayWasmRequest) String() string

func (*QueryOverlayWasmRequest) Unmarshal

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

func (*QueryOverlayWasmRequest) XXX_DiscardUnknown

func (m *QueryOverlayWasmRequest) XXX_DiscardUnknown()

func (*QueryOverlayWasmRequest) XXX_Marshal

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

func (*QueryOverlayWasmRequest) XXX_Merge

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

func (*QueryOverlayWasmRequest) XXX_Size

func (m *QueryOverlayWasmRequest) XXX_Size() int

func (*QueryOverlayWasmRequest) XXX_Unmarshal

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

type QueryOverlayWasmResponse

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

The response message for QueryOverlayWasm RPC.

func (*QueryOverlayWasmResponse) Descriptor

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

func (*QueryOverlayWasmResponse) GetWasm

func (m *QueryOverlayWasmResponse) GetWasm() *Wasm

func (*QueryOverlayWasmResponse) Marshal

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

func (*QueryOverlayWasmResponse) MarshalTo

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

func (*QueryOverlayWasmResponse) MarshalToSizedBuffer

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

func (*QueryOverlayWasmResponse) ProtoMessage

func (*QueryOverlayWasmResponse) ProtoMessage()

func (*QueryOverlayWasmResponse) Reset

func (m *QueryOverlayWasmResponse) Reset()

func (*QueryOverlayWasmResponse) Size

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

func (*QueryOverlayWasmResponse) String

func (m *QueryOverlayWasmResponse) String() string

func (*QueryOverlayWasmResponse) Unmarshal

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

func (*QueryOverlayWasmResponse) XXX_DiscardUnknown

func (m *QueryOverlayWasmResponse) XXX_DiscardUnknown()

func (*QueryOverlayWasmResponse) XXX_Marshal

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

func (*QueryOverlayWasmResponse) XXX_Merge

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

func (*QueryOverlayWasmResponse) XXX_Size

func (m *QueryOverlayWasmResponse) XXX_Size() int

func (*QueryOverlayWasmResponse) XXX_Unmarshal

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

type QueryOverlayWasmsRequest

type QueryOverlayWasmsRequest struct {
}

The request message for QueryOverlayWasms RPC.

func (*QueryOverlayWasmsRequest) Descriptor

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

func (*QueryOverlayWasmsRequest) Marshal

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

func (*QueryOverlayWasmsRequest) MarshalTo

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

func (*QueryOverlayWasmsRequest) MarshalToSizedBuffer

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

func (*QueryOverlayWasmsRequest) ProtoMessage

func (*QueryOverlayWasmsRequest) ProtoMessage()

func (*QueryOverlayWasmsRequest) Reset

func (m *QueryOverlayWasmsRequest) Reset()

func (*QueryOverlayWasmsRequest) Size

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

func (*QueryOverlayWasmsRequest) String

func (m *QueryOverlayWasmsRequest) String() string

func (*QueryOverlayWasmsRequest) Unmarshal

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

func (*QueryOverlayWasmsRequest) XXX_DiscardUnknown

func (m *QueryOverlayWasmsRequest) XXX_DiscardUnknown()

func (*QueryOverlayWasmsRequest) XXX_Marshal

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

func (*QueryOverlayWasmsRequest) XXX_Merge

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

func (*QueryOverlayWasmsRequest) XXX_Size

func (m *QueryOverlayWasmsRequest) XXX_Size() int

func (*QueryOverlayWasmsRequest) XXX_Unmarshal

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

type QueryOverlayWasmsResponse

type QueryOverlayWasmsResponse struct {
	HashTypePairs []string `protobuf:"bytes,1,rep,name=hash_type_pairs,json=hashTypePairs,proto3" json:"hash_type_pairs,omitempty"`
}

The response message for QueryOverlayWasms RPC.

func (*QueryOverlayWasmsResponse) Descriptor

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

func (*QueryOverlayWasmsResponse) GetHashTypePairs

func (m *QueryOverlayWasmsResponse) GetHashTypePairs() []string

func (*QueryOverlayWasmsResponse) Marshal

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

func (*QueryOverlayWasmsResponse) MarshalTo

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

func (*QueryOverlayWasmsResponse) MarshalToSizedBuffer

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

func (*QueryOverlayWasmsResponse) ProtoMessage

func (*QueryOverlayWasmsResponse) ProtoMessage()

func (*QueryOverlayWasmsResponse) Reset

func (m *QueryOverlayWasmsResponse) Reset()

func (*QueryOverlayWasmsResponse) Size

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

func (*QueryOverlayWasmsResponse) String

func (m *QueryOverlayWasmsResponse) String() string

func (*QueryOverlayWasmsResponse) Unmarshal

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

func (*QueryOverlayWasmsResponse) XXX_DiscardUnknown

func (m *QueryOverlayWasmsResponse) XXX_DiscardUnknown()

func (*QueryOverlayWasmsResponse) XXX_Marshal

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

func (*QueryOverlayWasmsResponse) XXX_Merge

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

func (*QueryOverlayWasmsResponse) XXX_Size

func (m *QueryOverlayWasmsResponse) XXX_Size() int

func (*QueryOverlayWasmsResponse) XXX_Unmarshal

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

type QueryProxyContractRegistryRequest

type QueryProxyContractRegistryRequest struct {
}

The request message for QueryProxyContractRegistry RPC.

func (*QueryProxyContractRegistryRequest) Descriptor

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

func (*QueryProxyContractRegistryRequest) Marshal

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

func (*QueryProxyContractRegistryRequest) MarshalTo

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

func (*QueryProxyContractRegistryRequest) MarshalToSizedBuffer

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

func (*QueryProxyContractRegistryRequest) ProtoMessage

func (*QueryProxyContractRegistryRequest) ProtoMessage()

func (*QueryProxyContractRegistryRequest) Reset

func (*QueryProxyContractRegistryRequest) Size

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

func (*QueryProxyContractRegistryRequest) String

func (*QueryProxyContractRegistryRequest) Unmarshal

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

func (*QueryProxyContractRegistryRequest) XXX_DiscardUnknown

func (m *QueryProxyContractRegistryRequest) XXX_DiscardUnknown()

func (*QueryProxyContractRegistryRequest) XXX_Marshal

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

func (*QueryProxyContractRegistryRequest) XXX_Merge

func (*QueryProxyContractRegistryRequest) XXX_Size

func (m *QueryProxyContractRegistryRequest) XXX_Size() int

func (*QueryProxyContractRegistryRequest) XXX_Unmarshal

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

type QueryProxyContractRegistryResponse

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

The response message for QueryProxyContractRegistry RPC.

func (*QueryProxyContractRegistryResponse) Descriptor

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

func (*QueryProxyContractRegistryResponse) GetAddress

func (*QueryProxyContractRegistryResponse) Marshal

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

func (*QueryProxyContractRegistryResponse) MarshalTo

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

func (*QueryProxyContractRegistryResponse) MarshalToSizedBuffer

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

func (*QueryProxyContractRegistryResponse) ProtoMessage

func (*QueryProxyContractRegistryResponse) ProtoMessage()

func (*QueryProxyContractRegistryResponse) Reset

func (*QueryProxyContractRegistryResponse) Size

func (*QueryProxyContractRegistryResponse) String

func (*QueryProxyContractRegistryResponse) Unmarshal

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

func (*QueryProxyContractRegistryResponse) XXX_DiscardUnknown

func (m *QueryProxyContractRegistryResponse) XXX_DiscardUnknown()

func (*QueryProxyContractRegistryResponse) XXX_Marshal

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

func (*QueryProxyContractRegistryResponse) XXX_Merge

func (*QueryProxyContractRegistryResponse) XXX_Size

func (*QueryProxyContractRegistryResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// DataRequestWasm returns Data Request Wasm given its hash.
	DataRequestWasm(context.Context, *QueryDataRequestWasmRequest) (*QueryDataRequestWasmResponse, error)
	// DataRequestWasms returns all Data Request Wasms.
	DataRequestWasms(context.Context, *QueryDataRequestWasmsRequest) (*QueryDataRequestWasmsResponse, error)
	// OverlayWasm returns Overlay Wasm given its hash.
	OverlayWasm(context.Context, *QueryOverlayWasmRequest) (*QueryOverlayWasmResponse, error)
	// OverlayWasms returns all Overlay Wasms.
	OverlayWasms(context.Context, *QueryOverlayWasmsRequest) (*QueryOverlayWasmsResponse, error)
	// ProxyContractRegistry returns the Proxy Contract Registry address.
	ProxyContractRegistry(context.Context, *QueryProxyContractRegistryRequest) (*QueryProxyContractRegistryResponse, 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) StoreDataRequestWasm

func (*UnimplementedMsgServer) StoreOverlayWasm

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

func (*UnimplementedQueryServer) OverlayWasms

type Wasm

type Wasm 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"`
	WasmType WasmType  `` /* 126-byte string literal not displayed */
	AddedAt  time.Time `protobuf:"bytes,4,opt,name=added_at,json=addedAt,proto3,stdtime" json:"added_at"`
}

A Wasm msg.

func NewWasm

func NewWasm(bytecode []byte, wasmType WasmType, addedAt time.Time) *Wasm

NewWasm constructs a new Wasm object given bytecode and Wasm type. It panics if it fails to compute hash of bytecode.

func (*Wasm) Descriptor

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

func (*Wasm) GetAddedAt

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

func (*Wasm) GetBytecode

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

func (*Wasm) GetHash

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

func (*Wasm) GetWasmType

func (m *Wasm) GetWasmType() WasmType

func (*Wasm) Marshal

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

func (*Wasm) MarshalTo

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

func (*Wasm) MarshalToSizedBuffer

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

func (*Wasm) ProtoMessage

func (*Wasm) ProtoMessage()

func (*Wasm) Reset

func (m *Wasm) Reset()

func (*Wasm) Size

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

func (*Wasm) String

func (m *Wasm) String() string

func (*Wasm) Unmarshal

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

func (*Wasm) XXX_DiscardUnknown

func (m *Wasm) XXX_DiscardUnknown()

func (*Wasm) XXX_Marshal

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

func (*Wasm) XXX_Merge

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

func (*Wasm) XXX_Size

func (m *Wasm) XXX_Size() int

func (*Wasm) XXX_Unmarshal

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

type WasmType

type WasmType int32

WasmType is an enum for the type of wasm.

const (
	// An unspecified kind of wasm.
	WasmTypeNil WasmType = 0
	// A wasm that is a data request.
	WasmTypeDataRequest WasmType = 1
	// A wasm that is a DR tally.
	WasmTypeTally WasmType = 2
	// A wasm that is an overlay executor.
	WasmTypeDataRequestExecutor WasmType = 3
	// A wasm that is an overlay relayer.
	WasmTypeRelayer WasmType = 4
)

func WasmTypeFromString

func WasmTypeFromString(s string) WasmType

func (WasmType) EnumDescriptor

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

func (WasmType) String

func (x WasmType) String() string

Jump to

Keyboard shortcuts

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