types

package
v0.0.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 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
)
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(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateGenesis

func ValidateGenesis(gs GenesisState) error

ValidateGenesis validates wasm-storage genesis data.

Types

type AccountKeeper

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

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

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.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"`
}

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"`
}

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 */
}

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 {
	StoreDataRequestWasm(ctx context.Context, in *MsgStoreDataRequestWasm, opts ...grpc.CallOption) (*MsgStoreDataRequestWasmResponse, error)
	StoreOverlayWasm(ctx context.Context, in *MsgStoreOverlayWasm, opts ...grpc.CallOption) (*MsgStoreOverlayWasmResponse, error)
	InstantiateAndRegisterProxyContract(ctx context.Context, in *MsgInstantiateAndRegisterProxyContract, opts ...grpc.CallOption) (*MsgInstantiateAndRegisterProxyContractResponse, 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"`
}

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

func (msg MsgInstantiateAndRegisterProxyContract) GetSignBytes() []byte

func (MsgInstantiateAndRegisterProxyContract) GetSigners

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"`
}

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

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 `protobuf:"varint,3,opt,name=wasmType,proto3,enum=sedachain.wasm_storage.v1.WasmType" json:"wasmType,omitempty"`
}

func (*MsgStoreDataRequestWasm) Descriptor

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

func (*MsgStoreDataRequestWasm) GetSender

func (m *MsgStoreDataRequestWasm) GetSender() string

func (MsgStoreDataRequestWasm) GetSignBytes

func (msg MsgStoreDataRequestWasm) GetSignBytes() []byte

func (MsgStoreDataRequestWasm) GetSigners

func (msg MsgStoreDataRequestWasm) GetSigners() []sdk.AccAddress

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"`
}

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 `protobuf:"varint,3,opt,name=wasmType,proto3,enum=sedachain.wasm_storage.v1.WasmType" json:"wasmType,omitempty"`
}

func (*MsgStoreOverlayWasm) Descriptor

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

func (*MsgStoreOverlayWasm) GetSender

func (m *MsgStoreOverlayWasm) GetSender() string

func (MsgStoreOverlayWasm) GetSignBytes

func (msg MsgStoreOverlayWasm) GetSignBytes() []byte

func (MsgStoreOverlayWasm) GetSigners

func (msg MsgStoreOverlayWasm) GetSigners() []sdk.AccAddress

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"`
}

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 Params

type Params struct {
	MaxWasmSize uint64 `protobuf:"varint,1,opt,name=max_wasm_size,json=maxWasmSize,proto3" json:"max_wasm_size,omitempty"`
}

func DefaultParams

func DefaultParams() Params

DefaultParams returns default wasm-storage module parameters.

func (*Params) Descriptor

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

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(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(ctx context.Context, in *QueryOverlayWasmsRequest, opts ...grpc.CallOption) (*QueryOverlayWasmsResponse, error)
	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"`
}

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"`
}

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 {
}

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"`
}

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"`
}

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"`
}

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 {
}

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"`
}

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 {
}

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"`
}

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(context.Context, *QueryDataRequestWasmsRequest) (*QueryDataRequestWasmsResponse, error)
	// OverlayWasm returns Overlay Wasm given its hash.
	OverlayWasm(context.Context, *QueryOverlayWasmRequest) (*QueryOverlayWasmResponse, error)
	OverlayWasms(context.Context, *QueryOverlayWasmsRequest) (*QueryOverlayWasmsResponse, error)
	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

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  `protobuf:"varint,3,opt,name=wasmType,proto3,enum=sedachain.wasm_storage.v1.WasmType" json:"wasmType,omitempty"`
	AddedAt  time.Time `protobuf:"bytes,4,opt,name=added_at,json=addedAt,proto3,stdtime" json:"added_at"`
}

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
const (
	WasmTypeNil                 WasmType = 0
	WasmTypeDataRequest         WasmType = 1
	WasmTypeTally               WasmType = 2
	WasmTypeDataRequestExecutor WasmType = 3
	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