Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterCodec(_ *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateGenesis(gs GenesisState) error
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetCoreContractRegistry() string
- func (m *GenesisState) GetOraclePrograms() []OracleProgram
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgInstantiateCoreContract
- func (*MsgInstantiateCoreContract) Descriptor() ([]byte, []int)
- func (m *MsgInstantiateCoreContract) GetAdmin() string
- func (m *MsgInstantiateCoreContract) GetCodeID() uint64
- func (m *MsgInstantiateCoreContract) GetFixMsg() bool
- func (m *MsgInstantiateCoreContract) GetFunds() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgInstantiateCoreContract) GetLabel() string
- func (m *MsgInstantiateCoreContract) GetMsg() github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage
- func (m *MsgInstantiateCoreContract) GetSalt() []byte
- func (m *MsgInstantiateCoreContract) GetSender() string
- func (m *MsgInstantiateCoreContract) Marshal() (dAtA []byte, err error)
- func (m *MsgInstantiateCoreContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInstantiateCoreContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInstantiateCoreContract) ProtoMessage()
- func (m *MsgInstantiateCoreContract) Reset()
- func (m *MsgInstantiateCoreContract) Size() (n int)
- func (m *MsgInstantiateCoreContract) String() string
- func (m *MsgInstantiateCoreContract) Unmarshal(dAtA []byte) error
- func (msg *MsgInstantiateCoreContract) ValidateBasic() error
- func (m *MsgInstantiateCoreContract) XXX_DiscardUnknown()
- func (m *MsgInstantiateCoreContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInstantiateCoreContract) XXX_Merge(src proto.Message)
- func (m *MsgInstantiateCoreContract) XXX_Size() int
- func (m *MsgInstantiateCoreContract) XXX_Unmarshal(b []byte) error
- type MsgInstantiateCoreContractResponse
- func (*MsgInstantiateCoreContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgInstantiateCoreContractResponse) GetContractAddress() string
- func (m *MsgInstantiateCoreContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgInstantiateCoreContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInstantiateCoreContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInstantiateCoreContractResponse) ProtoMessage()
- func (m *MsgInstantiateCoreContractResponse) Reset()
- func (m *MsgInstantiateCoreContractResponse) Size() (n int)
- func (m *MsgInstantiateCoreContractResponse) String() string
- func (m *MsgInstantiateCoreContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgInstantiateCoreContractResponse) XXX_DiscardUnknown()
- func (m *MsgInstantiateCoreContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInstantiateCoreContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgInstantiateCoreContractResponse) XXX_Size() int
- func (m *MsgInstantiateCoreContractResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgStoreOracleProgram
- func (*MsgStoreOracleProgram) Descriptor() ([]byte, []int)
- func (m *MsgStoreOracleProgram) GetSender() string
- func (m *MsgStoreOracleProgram) GetStorageFee() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgStoreOracleProgram) GetWasm() []byte
- func (m *MsgStoreOracleProgram) Marshal() (dAtA []byte, err error)
- func (m *MsgStoreOracleProgram) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStoreOracleProgram) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStoreOracleProgram) ProtoMessage()
- func (m *MsgStoreOracleProgram) Reset()
- func (m *MsgStoreOracleProgram) Size() (n int)
- func (m *MsgStoreOracleProgram) String() string
- func (m *MsgStoreOracleProgram) Unmarshal(dAtA []byte) error
- func (msg *MsgStoreOracleProgram) ValidateBasic() error
- func (m *MsgStoreOracleProgram) XXX_DiscardUnknown()
- func (m *MsgStoreOracleProgram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStoreOracleProgram) XXX_Merge(src proto.Message)
- func (m *MsgStoreOracleProgram) XXX_Size() int
- func (m *MsgStoreOracleProgram) XXX_Unmarshal(b []byte) error
- type MsgStoreOracleProgramResponse
- func (*MsgStoreOracleProgramResponse) Descriptor() ([]byte, []int)
- func (m *MsgStoreOracleProgramResponse) GetHash() string
- func (m *MsgStoreOracleProgramResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgStoreOracleProgramResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStoreOracleProgramResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStoreOracleProgramResponse) ProtoMessage()
- func (m *MsgStoreOracleProgramResponse) Reset()
- func (m *MsgStoreOracleProgramResponse) Size() (n int)
- func (m *MsgStoreOracleProgramResponse) String() string
- func (m *MsgStoreOracleProgramResponse) Unmarshal(dAtA []byte) error
- func (m *MsgStoreOracleProgramResponse) XXX_DiscardUnknown()
- func (m *MsgStoreOracleProgramResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStoreOracleProgramResponse) XXX_Merge(src proto.Message)
- func (m *MsgStoreOracleProgramResponse) XXX_Size() int
- func (m *MsgStoreOracleProgramResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type OracleProgram
- func (*OracleProgram) Descriptor() ([]byte, []int)
- func (m *OracleProgram) GetAddedAt() time.Time
- func (m *OracleProgram) GetBytecode() []byte
- func (m *OracleProgram) GetHash() []byte
- func (m *OracleProgram) Marshal() (dAtA []byte, err error)
- func (m *OracleProgram) MarshalTo(dAtA []byte) (int, error)
- func (m *OracleProgram) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OracleProgram) ProtoMessage()
- func (m *OracleProgram) Reset()
- func (m *OracleProgram) Size() (n int)
- func (m *OracleProgram) String() string
- func (m *OracleProgram) Unmarshal(dAtA []byte) error
- func (m *OracleProgram) XXX_DiscardUnknown()
- func (m *OracleProgram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OracleProgram) XXX_Merge(src proto.Message)
- func (m *OracleProgram) XXX_Size() int
- func (m *OracleProgram) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetMaxWasmSize() int64
- func (m *Params) GetWasmCostPerByte() uint64
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p *Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryCoreContractRegistryRequest
- func (*QueryCoreContractRegistryRequest) Descriptor() ([]byte, []int)
- func (m *QueryCoreContractRegistryRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCoreContractRegistryRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCoreContractRegistryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCoreContractRegistryRequest) ProtoMessage()
- func (m *QueryCoreContractRegistryRequest) Reset()
- func (m *QueryCoreContractRegistryRequest) Size() (n int)
- func (m *QueryCoreContractRegistryRequest) String() string
- func (m *QueryCoreContractRegistryRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCoreContractRegistryRequest) XXX_DiscardUnknown()
- func (m *QueryCoreContractRegistryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCoreContractRegistryRequest) XXX_Merge(src proto.Message)
- func (m *QueryCoreContractRegistryRequest) XXX_Size() int
- func (m *QueryCoreContractRegistryRequest) XXX_Unmarshal(b []byte) error
- type QueryCoreContractRegistryResponse
- func (*QueryCoreContractRegistryResponse) Descriptor() ([]byte, []int)
- func (m *QueryCoreContractRegistryResponse) GetAddress() string
- func (m *QueryCoreContractRegistryResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCoreContractRegistryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCoreContractRegistryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCoreContractRegistryResponse) ProtoMessage()
- func (m *QueryCoreContractRegistryResponse) Reset()
- func (m *QueryCoreContractRegistryResponse) Size() (n int)
- func (m *QueryCoreContractRegistryResponse) String() string
- func (m *QueryCoreContractRegistryResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCoreContractRegistryResponse) XXX_DiscardUnknown()
- func (m *QueryCoreContractRegistryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCoreContractRegistryResponse) XXX_Merge(src proto.Message)
- func (m *QueryCoreContractRegistryResponse) XXX_Size() int
- func (m *QueryCoreContractRegistryResponse) XXX_Unmarshal(b []byte) error
- type QueryOracleProgramRequest
- func (*QueryOracleProgramRequest) Descriptor() ([]byte, []int)
- func (m *QueryOracleProgramRequest) GetHash() string
- func (m *QueryOracleProgramRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOracleProgramRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOracleProgramRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOracleProgramRequest) ProtoMessage()
- func (m *QueryOracleProgramRequest) Reset()
- func (m *QueryOracleProgramRequest) Size() (n int)
- func (m *QueryOracleProgramRequest) String() string
- func (m *QueryOracleProgramRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOracleProgramRequest) XXX_DiscardUnknown()
- func (m *QueryOracleProgramRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOracleProgramRequest) XXX_Merge(src proto.Message)
- func (m *QueryOracleProgramRequest) XXX_Size() int
- func (m *QueryOracleProgramRequest) XXX_Unmarshal(b []byte) error
- type QueryOracleProgramResponse
- func (*QueryOracleProgramResponse) Descriptor() ([]byte, []int)
- func (m *QueryOracleProgramResponse) GetOracleProgram() *OracleProgram
- func (m *QueryOracleProgramResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOracleProgramResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOracleProgramResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOracleProgramResponse) ProtoMessage()
- func (m *QueryOracleProgramResponse) Reset()
- func (m *QueryOracleProgramResponse) Size() (n int)
- func (m *QueryOracleProgramResponse) String() string
- func (m *QueryOracleProgramResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOracleProgramResponse) XXX_DiscardUnknown()
- func (m *QueryOracleProgramResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOracleProgramResponse) XXX_Merge(src proto.Message)
- func (m *QueryOracleProgramResponse) XXX_Size() int
- func (m *QueryOracleProgramResponse) XXX_Unmarshal(b []byte) error
- type QueryOracleProgramsRequest
- func (*QueryOracleProgramsRequest) Descriptor() ([]byte, []int)
- func (m *QueryOracleProgramsRequest) GetPagination() *query.PageRequest
- func (m *QueryOracleProgramsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOracleProgramsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOracleProgramsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOracleProgramsRequest) ProtoMessage()
- func (m *QueryOracleProgramsRequest) Reset()
- func (m *QueryOracleProgramsRequest) Size() (n int)
- func (m *QueryOracleProgramsRequest) String() string
- func (m *QueryOracleProgramsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOracleProgramsRequest) XXX_DiscardUnknown()
- func (m *QueryOracleProgramsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOracleProgramsRequest) XXX_Merge(src proto.Message)
- func (m *QueryOracleProgramsRequest) XXX_Size() int
- func (m *QueryOracleProgramsRequest) XXX_Unmarshal(b []byte) error
- type QueryOracleProgramsResponse
- func (*QueryOracleProgramsResponse) Descriptor() ([]byte, []int)
- func (m *QueryOracleProgramsResponse) GetList() []string
- func (m *QueryOracleProgramsResponse) GetPagination() *query.PageResponse
- func (m *QueryOracleProgramsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOracleProgramsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOracleProgramsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOracleProgramsResponse) ProtoMessage()
- func (m *QueryOracleProgramsResponse) Reset()
- func (m *QueryOracleProgramsResponse) Size() (n int)
- func (m *QueryOracleProgramsResponse) String() string
- func (m *QueryOracleProgramsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOracleProgramsResponse) XXX_DiscardUnknown()
- func (m *QueryOracleProgramsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOracleProgramsResponse) XXX_Merge(src proto.Message)
- func (m *QueryOracleProgramsResponse) XXX_Size() int
- func (m *QueryOracleProgramsResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type StakingKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) InstantiateCoreContract(ctx context.Context, req *MsgInstantiateCoreContract) (*MsgInstantiateCoreContractResponse, error)
- func (*UnimplementedMsgServer) StoreOracleProgram(ctx context.Context, req *MsgStoreOracleProgram) (*MsgStoreOracleProgramResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) CoreContractRegistry(ctx context.Context, req *QueryCoreContractRegistryRequest) (*QueryCoreContractRegistryResponse, error)
- func (*UnimplementedQueryServer) OracleProgram(ctx context.Context, req *QueryOracleProgramRequest) (*QueryOracleProgramResponse, error)
- func (*UnimplementedQueryServer) OraclePrograms(ctx context.Context, req *QueryOracleProgramsRequest) (*QueryOracleProgramsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( EventTypeStoreOracleProgram = "store_oracle_program" AttributeOracleProgramHash = "oracle_program_hash" AttributeSender = "sender" )
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 )
const ( DefaultMaxWasmSize int64 = 1024 * 1024 // 1 MB DefaultWasmCostPerByte uint64 = 50000000000000 // 0,00005 SEDA )
const ( // MaxWasmSize is the maximum size of gzipped wasm bytecode that we'll accept. MaxWasmSize = 1024 * 1024 // MinWasmSize is the realistic minimum size of gzipped wasm bytecode. MinWasmSize = 20 )
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidParam = errors.Register(ModuleName, 2, "invalid param") ErrWasmAlreadyExists = errors.Register(ModuleName, 3, "wasm with the same hash already exists") ErrWasmTooLarge = errors.Register(ModuleName, 4, "wasm size is too large") ErrWasmTooSmall = errors.Register(ModuleName, 5, "wasm size is too small") ErrInvalidHexWasmHash = errors.Register(ModuleName, 6, "invalid hex-encoded wasm hash") ErrWasmNotGzipCompressed = errors.Register(ModuleName, 7, "wasm is not gzip compressed") ErrInvalidAuthority = errors.Register(ModuleName, 8, "invalid authority") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( // OracleProgramPrefix defines prefix to store oracle programs. OracleProgramPrefix = collections.NewPrefix(0) // CoreContractRegistryPrefix defines prefix to store address of // Core Contract. CoreContractRegistryPrefix = collections.NewPrefix(1) // ParamsPrefix defines prefix to store parameters of wasm-storage module. ParamsPrefix = collections.NewPrefix(2) )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthWasmStorage = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowWasmStorage = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupWasmStorage = fmt.Errorf("proto: unexpected end of group") )
var Msg_serviceDesc = _Msg_serviceDesc
var Query_serviceDesc = _Query_serviceDesc
Functions ¶
func RegisterCodec ¶
func RegisterCodec(_ *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateGenesis ¶
func ValidateGenesis(gs GenesisState) error
ValidateGenesis validates wasm-storage genesis data.
Types ¶
type BankKeeper ¶
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` OraclePrograms []OracleProgram `protobuf:"bytes,2,rep,name=oracle_programs,json=oraclePrograms,proto3" json:"oracle_programs"` CoreContractRegistry string `protobuf:"bytes,3,opt,name=core_contract_registry,json=coreContractRegistry,proto3" json:"core_contract_registry,omitempty"` }
GenesisState defines wasm-storage module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState creates a default GenesisState object.
func NewGenesisState ¶
func NewGenesisState(params Params, programs []OracleProgram, coreAddr string) GenesisState
NewGenesisState constructs a GenesisState object.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetCoreContractRegistry ¶
func (m *GenesisState) GetCoreContractRegistry() string
func (*GenesisState) GetOraclePrograms ¶
func (m *GenesisState) GetOraclePrograms() []OracleProgram
func (*GenesisState) GetParams ¶ added in v0.1.4
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) 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 { // StoreOracleProgram stores an oracle program. StoreOracleProgram(ctx context.Context, in *MsgStoreOracleProgram, opts ...grpc.CallOption) (*MsgStoreOracleProgramResponse, error) // InstantiateCoreContract instantiates the Core Contract and registers its // address. InstantiateCoreContract(ctx context.Context, in *MsgInstantiateCoreContract, opts ...grpc.CallOption) (*MsgInstantiateCoreContractResponse, error) // The UpdateParams method updates the module's parameters. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgInstantiateCoreContract ¶
type MsgInstantiateCoreContract struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"` CodeID uint64 `protobuf:"varint,3,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` Msg github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage `` /* 126-byte string literal not displayed */ Funds github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,6,rep,name=funds,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"funds"` Salt []byte `protobuf:"bytes,7,opt,name=salt,proto3" json:"salt,omitempty"` FixMsg bool `protobuf:"varint,8,opt,name=fix_msg,json=fixMsg,proto3" json:"fix_msg,omitempty"` }
The request message for the InstantiateCoreContract method.
func (*MsgInstantiateCoreContract) Descriptor ¶
func (*MsgInstantiateCoreContract) Descriptor() ([]byte, []int)
func (*MsgInstantiateCoreContract) GetAdmin ¶
func (m *MsgInstantiateCoreContract) GetAdmin() string
func (*MsgInstantiateCoreContract) GetCodeID ¶
func (m *MsgInstantiateCoreContract) GetCodeID() uint64
func (*MsgInstantiateCoreContract) GetFixMsg ¶
func (m *MsgInstantiateCoreContract) GetFixMsg() bool
func (*MsgInstantiateCoreContract) GetFunds ¶
func (m *MsgInstantiateCoreContract) GetFunds() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgInstantiateCoreContract) GetLabel ¶
func (m *MsgInstantiateCoreContract) GetLabel() string
func (*MsgInstantiateCoreContract) GetMsg ¶
func (m *MsgInstantiateCoreContract) GetMsg() github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage
func (*MsgInstantiateCoreContract) GetSalt ¶
func (m *MsgInstantiateCoreContract) GetSalt() []byte
func (*MsgInstantiateCoreContract) GetSender ¶
func (m *MsgInstantiateCoreContract) GetSender() string
func (*MsgInstantiateCoreContract) Marshal ¶
func (m *MsgInstantiateCoreContract) Marshal() (dAtA []byte, err error)
func (*MsgInstantiateCoreContract) MarshalTo ¶
func (m *MsgInstantiateCoreContract) MarshalTo(dAtA []byte) (int, error)
func (*MsgInstantiateCoreContract) MarshalToSizedBuffer ¶
func (m *MsgInstantiateCoreContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgInstantiateCoreContract) ProtoMessage ¶
func (*MsgInstantiateCoreContract) ProtoMessage()
func (*MsgInstantiateCoreContract) Reset ¶
func (m *MsgInstantiateCoreContract) Reset()
func (*MsgInstantiateCoreContract) Size ¶
func (m *MsgInstantiateCoreContract) Size() (n int)
func (*MsgInstantiateCoreContract) String ¶
func (m *MsgInstantiateCoreContract) String() string
func (*MsgInstantiateCoreContract) Unmarshal ¶
func (m *MsgInstantiateCoreContract) Unmarshal(dAtA []byte) error
func (*MsgInstantiateCoreContract) ValidateBasic ¶
func (msg *MsgInstantiateCoreContract) ValidateBasic() error
func (*MsgInstantiateCoreContract) XXX_DiscardUnknown ¶
func (m *MsgInstantiateCoreContract) XXX_DiscardUnknown()
func (*MsgInstantiateCoreContract) XXX_Marshal ¶
func (m *MsgInstantiateCoreContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgInstantiateCoreContract) XXX_Merge ¶
func (m *MsgInstantiateCoreContract) XXX_Merge(src proto.Message)
func (*MsgInstantiateCoreContract) XXX_Size ¶
func (m *MsgInstantiateCoreContract) XXX_Size() int
func (*MsgInstantiateCoreContract) XXX_Unmarshal ¶
func (m *MsgInstantiateCoreContract) XXX_Unmarshal(b []byte) error
type MsgInstantiateCoreContractResponse ¶
type MsgInstantiateCoreContractResponse struct {
ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}
The response message for the InstantiateCoreContract method.
func (*MsgInstantiateCoreContractResponse) Descriptor ¶
func (*MsgInstantiateCoreContractResponse) Descriptor() ([]byte, []int)
func (*MsgInstantiateCoreContractResponse) GetContractAddress ¶
func (m *MsgInstantiateCoreContractResponse) GetContractAddress() string
func (*MsgInstantiateCoreContractResponse) Marshal ¶
func (m *MsgInstantiateCoreContractResponse) Marshal() (dAtA []byte, err error)
func (*MsgInstantiateCoreContractResponse) MarshalTo ¶
func (m *MsgInstantiateCoreContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgInstantiateCoreContractResponse) MarshalToSizedBuffer ¶
func (m *MsgInstantiateCoreContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgInstantiateCoreContractResponse) ProtoMessage ¶
func (*MsgInstantiateCoreContractResponse) ProtoMessage()
func (*MsgInstantiateCoreContractResponse) Reset ¶
func (m *MsgInstantiateCoreContractResponse) Reset()
func (*MsgInstantiateCoreContractResponse) Size ¶
func (m *MsgInstantiateCoreContractResponse) Size() (n int)
func (*MsgInstantiateCoreContractResponse) String ¶
func (m *MsgInstantiateCoreContractResponse) String() string
func (*MsgInstantiateCoreContractResponse) Unmarshal ¶
func (m *MsgInstantiateCoreContractResponse) Unmarshal(dAtA []byte) error
func (*MsgInstantiateCoreContractResponse) XXX_DiscardUnknown ¶
func (m *MsgInstantiateCoreContractResponse) XXX_DiscardUnknown()
func (*MsgInstantiateCoreContractResponse) XXX_Marshal ¶
func (m *MsgInstantiateCoreContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgInstantiateCoreContractResponse) XXX_Merge ¶
func (m *MsgInstantiateCoreContractResponse) XXX_Merge(src proto.Message)
func (*MsgInstantiateCoreContractResponse) XXX_Size ¶
func (m *MsgInstantiateCoreContractResponse) XXX_Size() int
func (*MsgInstantiateCoreContractResponse) XXX_Unmarshal ¶
func (m *MsgInstantiateCoreContractResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // StoreOracleProgram stores an oracle program. StoreOracleProgram(context.Context, *MsgStoreOracleProgram) (*MsgStoreOracleProgramResponse, error) // InstantiateCoreContract instantiates the Core Contract and registers its // address. InstantiateCoreContract(context.Context, *MsgInstantiateCoreContract) (*MsgInstantiateCoreContractResponse, error) // The UpdateParams method updates the module's parameters. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgStoreOracleProgram ¶
type MsgStoreOracleProgram struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // The wasm program to store as gzip-compressed bytes. Wasm []byte `protobuf:"bytes,2,opt,name=wasm,proto3" json:"wasm,omitempty"` // The length of the unzipped wasm program in bytes. StorageFee github_com_cosmos_cosmos_sdk_types.Coins `` /* 135-byte string literal not displayed */ }
The request message for the StoreOracleProgram method.
func (*MsgStoreOracleProgram) Descriptor ¶
func (*MsgStoreOracleProgram) Descriptor() ([]byte, []int)
func (*MsgStoreOracleProgram) GetSender ¶
func (m *MsgStoreOracleProgram) GetSender() string
func (*MsgStoreOracleProgram) GetStorageFee ¶
func (m *MsgStoreOracleProgram) GetStorageFee() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgStoreOracleProgram) GetWasm ¶
func (m *MsgStoreOracleProgram) GetWasm() []byte
func (*MsgStoreOracleProgram) Marshal ¶
func (m *MsgStoreOracleProgram) Marshal() (dAtA []byte, err error)
func (*MsgStoreOracleProgram) MarshalTo ¶
func (m *MsgStoreOracleProgram) MarshalTo(dAtA []byte) (int, error)
func (*MsgStoreOracleProgram) MarshalToSizedBuffer ¶
func (m *MsgStoreOracleProgram) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStoreOracleProgram) ProtoMessage ¶
func (*MsgStoreOracleProgram) ProtoMessage()
func (*MsgStoreOracleProgram) Reset ¶
func (m *MsgStoreOracleProgram) Reset()
func (*MsgStoreOracleProgram) Size ¶
func (m *MsgStoreOracleProgram) Size() (n int)
func (*MsgStoreOracleProgram) String ¶
func (m *MsgStoreOracleProgram) String() string
func (*MsgStoreOracleProgram) Unmarshal ¶
func (m *MsgStoreOracleProgram) Unmarshal(dAtA []byte) error
func (*MsgStoreOracleProgram) ValidateBasic ¶
func (msg *MsgStoreOracleProgram) ValidateBasic() error
func (*MsgStoreOracleProgram) XXX_DiscardUnknown ¶
func (m *MsgStoreOracleProgram) XXX_DiscardUnknown()
func (*MsgStoreOracleProgram) XXX_Marshal ¶
func (m *MsgStoreOracleProgram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStoreOracleProgram) XXX_Merge ¶
func (m *MsgStoreOracleProgram) XXX_Merge(src proto.Message)
func (*MsgStoreOracleProgram) XXX_Size ¶
func (m *MsgStoreOracleProgram) XXX_Size() int
func (*MsgStoreOracleProgram) XXX_Unmarshal ¶
func (m *MsgStoreOracleProgram) XXX_Unmarshal(b []byte) error
type MsgStoreOracleProgramResponse ¶
type MsgStoreOracleProgramResponse struct {
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}
The response message for the StoreOracleProgram method.
func (*MsgStoreOracleProgramResponse) Descriptor ¶
func (*MsgStoreOracleProgramResponse) Descriptor() ([]byte, []int)
func (*MsgStoreOracleProgramResponse) GetHash ¶
func (m *MsgStoreOracleProgramResponse) GetHash() string
func (*MsgStoreOracleProgramResponse) Marshal ¶
func (m *MsgStoreOracleProgramResponse) Marshal() (dAtA []byte, err error)
func (*MsgStoreOracleProgramResponse) MarshalTo ¶
func (m *MsgStoreOracleProgramResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgStoreOracleProgramResponse) MarshalToSizedBuffer ¶
func (m *MsgStoreOracleProgramResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStoreOracleProgramResponse) ProtoMessage ¶
func (*MsgStoreOracleProgramResponse) ProtoMessage()
func (*MsgStoreOracleProgramResponse) Reset ¶
func (m *MsgStoreOracleProgramResponse) Reset()
func (*MsgStoreOracleProgramResponse) Size ¶
func (m *MsgStoreOracleProgramResponse) Size() (n int)
func (*MsgStoreOracleProgramResponse) String ¶
func (m *MsgStoreOracleProgramResponse) String() string
func (*MsgStoreOracleProgramResponse) Unmarshal ¶
func (m *MsgStoreOracleProgramResponse) Unmarshal(dAtA []byte) error
func (*MsgStoreOracleProgramResponse) XXX_DiscardUnknown ¶
func (m *MsgStoreOracleProgramResponse) XXX_DiscardUnknown()
func (*MsgStoreOracleProgramResponse) XXX_Marshal ¶
func (m *MsgStoreOracleProgramResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStoreOracleProgramResponse) XXX_Merge ¶
func (m *MsgStoreOracleProgramResponse) XXX_Merge(src proto.Message)
func (*MsgStoreOracleProgramResponse) XXX_Size ¶
func (m *MsgStoreOracleProgramResponse) XXX_Size() int
func (*MsgStoreOracleProgramResponse) XXX_Unmarshal ¶
func (m *MsgStoreOracleProgramResponse) 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 OracleProgram ¶
type OracleProgram struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Bytecode []byte `protobuf:"bytes,2,opt,name=bytecode,proto3" json:"bytecode,omitempty"` AddedAt time.Time `protobuf:"bytes,3,opt,name=added_at,json=addedAt,proto3,stdtime" json:"added_at"` }
OracleProgram is a wasm used for data request.
func NewOracleProgram ¶
func NewOracleProgram(bytecode []byte, addedAt time.Time) OracleProgram
NewOracleProgram constructs a new OracleProgram object given bytecode. It panics if it fails to compute hash of bytecode.
func (*OracleProgram) Descriptor ¶
func (*OracleProgram) Descriptor() ([]byte, []int)
func (*OracleProgram) GetAddedAt ¶
func (m *OracleProgram) GetAddedAt() time.Time
func (*OracleProgram) GetBytecode ¶
func (m *OracleProgram) GetBytecode() []byte
func (*OracleProgram) GetHash ¶
func (m *OracleProgram) GetHash() []byte
func (*OracleProgram) Marshal ¶
func (m *OracleProgram) Marshal() (dAtA []byte, err error)
func (*OracleProgram) MarshalToSizedBuffer ¶
func (m *OracleProgram) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OracleProgram) ProtoMessage ¶
func (*OracleProgram) ProtoMessage()
func (*OracleProgram) Reset ¶
func (m *OracleProgram) Reset()
func (*OracleProgram) Size ¶
func (m *OracleProgram) Size() (n int)
func (*OracleProgram) String ¶
func (m *OracleProgram) String() string
func (*OracleProgram) Unmarshal ¶
func (m *OracleProgram) Unmarshal(dAtA []byte) error
func (*OracleProgram) XXX_DiscardUnknown ¶
func (m *OracleProgram) XXX_DiscardUnknown()
func (*OracleProgram) XXX_Marshal ¶
func (m *OracleProgram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OracleProgram) XXX_Merge ¶
func (m *OracleProgram) XXX_Merge(src proto.Message)
func (*OracleProgram) XXX_Size ¶
func (m *OracleProgram) XXX_Size() int
func (*OracleProgram) XXX_Unmarshal ¶
func (m *OracleProgram) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // MaxWasmSize specifies the maximum allowed size of an unzipped oracle // program. MaxWasmSize int64 `protobuf:"varint,1,opt,name=max_wasm_size,json=maxWasmSize,proto3" json:"max_wasm_size,omitempty"` // WasmCostPerByte is the cost per unzipped byte of uploading an oracle program in // aseda. WasmCostPerByte uint64 `protobuf:"varint,2,opt,name=wasm_cost_per_byte,json=wasmCostPerByte,proto3" json:"wasm_cost_per_byte,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) GetMaxWasmSize ¶
func (*Params) GetWasmCostPerByte ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // OracleProgram returns an oracle program given its hash. OracleProgram(ctx context.Context, in *QueryOracleProgramRequest, opts ...grpc.CallOption) (*QueryOracleProgramResponse, error) // OraclePrograms returns all oracle programs. OraclePrograms(ctx context.Context, in *QueryOracleProgramsRequest, opts ...grpc.CallOption) (*QueryOracleProgramsResponse, error) // CoreContractRegistry returns the Core Contract Registry address. CoreContractRegistry(ctx context.Context, in *QueryCoreContractRegistryRequest, opts ...grpc.CallOption) (*QueryCoreContractRegistryResponse, error) // Params returns the total set of wasm-storage parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryCoreContractRegistryRequest ¶
type QueryCoreContractRegistryRequest struct { }
The request message for QueryCoreContractRegistry RPC.
func (*QueryCoreContractRegistryRequest) Descriptor ¶
func (*QueryCoreContractRegistryRequest) Descriptor() ([]byte, []int)
func (*QueryCoreContractRegistryRequest) Marshal ¶
func (m *QueryCoreContractRegistryRequest) Marshal() (dAtA []byte, err error)
func (*QueryCoreContractRegistryRequest) MarshalTo ¶
func (m *QueryCoreContractRegistryRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCoreContractRegistryRequest) MarshalToSizedBuffer ¶
func (m *QueryCoreContractRegistryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCoreContractRegistryRequest) ProtoMessage ¶
func (*QueryCoreContractRegistryRequest) ProtoMessage()
func (*QueryCoreContractRegistryRequest) Reset ¶
func (m *QueryCoreContractRegistryRequest) Reset()
func (*QueryCoreContractRegistryRequest) Size ¶
func (m *QueryCoreContractRegistryRequest) Size() (n int)
func (*QueryCoreContractRegistryRequest) String ¶
func (m *QueryCoreContractRegistryRequest) String() string
func (*QueryCoreContractRegistryRequest) Unmarshal ¶
func (m *QueryCoreContractRegistryRequest) Unmarshal(dAtA []byte) error
func (*QueryCoreContractRegistryRequest) XXX_DiscardUnknown ¶
func (m *QueryCoreContractRegistryRequest) XXX_DiscardUnknown()
func (*QueryCoreContractRegistryRequest) XXX_Marshal ¶
func (m *QueryCoreContractRegistryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCoreContractRegistryRequest) XXX_Merge ¶
func (m *QueryCoreContractRegistryRequest) XXX_Merge(src proto.Message)
func (*QueryCoreContractRegistryRequest) XXX_Size ¶
func (m *QueryCoreContractRegistryRequest) XXX_Size() int
func (*QueryCoreContractRegistryRequest) XXX_Unmarshal ¶
func (m *QueryCoreContractRegistryRequest) XXX_Unmarshal(b []byte) error
type QueryCoreContractRegistryResponse ¶
type QueryCoreContractRegistryResponse struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
The response message for QueryCoreContractRegistry RPC.
func (*QueryCoreContractRegistryResponse) Descriptor ¶
func (*QueryCoreContractRegistryResponse) Descriptor() ([]byte, []int)
func (*QueryCoreContractRegistryResponse) GetAddress ¶
func (m *QueryCoreContractRegistryResponse) GetAddress() string
func (*QueryCoreContractRegistryResponse) Marshal ¶
func (m *QueryCoreContractRegistryResponse) Marshal() (dAtA []byte, err error)
func (*QueryCoreContractRegistryResponse) MarshalTo ¶
func (m *QueryCoreContractRegistryResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCoreContractRegistryResponse) MarshalToSizedBuffer ¶
func (m *QueryCoreContractRegistryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCoreContractRegistryResponse) ProtoMessage ¶
func (*QueryCoreContractRegistryResponse) ProtoMessage()
func (*QueryCoreContractRegistryResponse) Reset ¶
func (m *QueryCoreContractRegistryResponse) Reset()
func (*QueryCoreContractRegistryResponse) Size ¶
func (m *QueryCoreContractRegistryResponse) Size() (n int)
func (*QueryCoreContractRegistryResponse) String ¶
func (m *QueryCoreContractRegistryResponse) String() string
func (*QueryCoreContractRegistryResponse) Unmarshal ¶
func (m *QueryCoreContractRegistryResponse) Unmarshal(dAtA []byte) error
func (*QueryCoreContractRegistryResponse) XXX_DiscardUnknown ¶
func (m *QueryCoreContractRegistryResponse) XXX_DiscardUnknown()
func (*QueryCoreContractRegistryResponse) XXX_Marshal ¶
func (m *QueryCoreContractRegistryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCoreContractRegistryResponse) XXX_Merge ¶
func (m *QueryCoreContractRegistryResponse) XXX_Merge(src proto.Message)
func (*QueryCoreContractRegistryResponse) XXX_Size ¶
func (m *QueryCoreContractRegistryResponse) XXX_Size() int
func (*QueryCoreContractRegistryResponse) XXX_Unmarshal ¶
func (m *QueryCoreContractRegistryResponse) XXX_Unmarshal(b []byte) error
type QueryOracleProgramRequest ¶
type QueryOracleProgramRequest struct {
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}
The request message for QueryOracleProgram RPC.
func (*QueryOracleProgramRequest) Descriptor ¶
func (*QueryOracleProgramRequest) Descriptor() ([]byte, []int)
func (*QueryOracleProgramRequest) GetHash ¶
func (m *QueryOracleProgramRequest) GetHash() string
func (*QueryOracleProgramRequest) Marshal ¶
func (m *QueryOracleProgramRequest) Marshal() (dAtA []byte, err error)
func (*QueryOracleProgramRequest) MarshalTo ¶
func (m *QueryOracleProgramRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOracleProgramRequest) MarshalToSizedBuffer ¶
func (m *QueryOracleProgramRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOracleProgramRequest) ProtoMessage ¶
func (*QueryOracleProgramRequest) ProtoMessage()
func (*QueryOracleProgramRequest) Reset ¶
func (m *QueryOracleProgramRequest) Reset()
func (*QueryOracleProgramRequest) Size ¶
func (m *QueryOracleProgramRequest) Size() (n int)
func (*QueryOracleProgramRequest) String ¶
func (m *QueryOracleProgramRequest) String() string
func (*QueryOracleProgramRequest) Unmarshal ¶
func (m *QueryOracleProgramRequest) Unmarshal(dAtA []byte) error
func (*QueryOracleProgramRequest) XXX_DiscardUnknown ¶
func (m *QueryOracleProgramRequest) XXX_DiscardUnknown()
func (*QueryOracleProgramRequest) XXX_Marshal ¶
func (m *QueryOracleProgramRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOracleProgramRequest) XXX_Merge ¶
func (m *QueryOracleProgramRequest) XXX_Merge(src proto.Message)
func (*QueryOracleProgramRequest) XXX_Size ¶
func (m *QueryOracleProgramRequest) XXX_Size() int
func (*QueryOracleProgramRequest) XXX_Unmarshal ¶
func (m *QueryOracleProgramRequest) XXX_Unmarshal(b []byte) error
type QueryOracleProgramResponse ¶
type QueryOracleProgramResponse struct {
OracleProgram *OracleProgram `protobuf:"bytes,1,opt,name=oracle_program,json=oracleProgram,proto3" json:"oracle_program,omitempty"`
}
The response message for QueryOracleProgram RPC.
func (*QueryOracleProgramResponse) Descriptor ¶
func (*QueryOracleProgramResponse) Descriptor() ([]byte, []int)
func (*QueryOracleProgramResponse) GetOracleProgram ¶
func (m *QueryOracleProgramResponse) GetOracleProgram() *OracleProgram
func (*QueryOracleProgramResponse) Marshal ¶
func (m *QueryOracleProgramResponse) Marshal() (dAtA []byte, err error)
func (*QueryOracleProgramResponse) MarshalTo ¶
func (m *QueryOracleProgramResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOracleProgramResponse) MarshalToSizedBuffer ¶
func (m *QueryOracleProgramResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOracleProgramResponse) ProtoMessage ¶
func (*QueryOracleProgramResponse) ProtoMessage()
func (*QueryOracleProgramResponse) Reset ¶
func (m *QueryOracleProgramResponse) Reset()
func (*QueryOracleProgramResponse) Size ¶
func (m *QueryOracleProgramResponse) Size() (n int)
func (*QueryOracleProgramResponse) String ¶
func (m *QueryOracleProgramResponse) String() string
func (*QueryOracleProgramResponse) Unmarshal ¶
func (m *QueryOracleProgramResponse) Unmarshal(dAtA []byte) error
func (*QueryOracleProgramResponse) XXX_DiscardUnknown ¶
func (m *QueryOracleProgramResponse) XXX_DiscardUnknown()
func (*QueryOracleProgramResponse) XXX_Marshal ¶
func (m *QueryOracleProgramResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOracleProgramResponse) XXX_Merge ¶
func (m *QueryOracleProgramResponse) XXX_Merge(src proto.Message)
func (*QueryOracleProgramResponse) XXX_Size ¶
func (m *QueryOracleProgramResponse) XXX_Size() int
func (*QueryOracleProgramResponse) XXX_Unmarshal ¶
func (m *QueryOracleProgramResponse) XXX_Unmarshal(b []byte) error
type QueryOracleProgramsRequest ¶
type QueryOracleProgramsRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
The request message for QueryOraclePrograms RPC.
func (*QueryOracleProgramsRequest) Descriptor ¶
func (*QueryOracleProgramsRequest) Descriptor() ([]byte, []int)
func (*QueryOracleProgramsRequest) GetPagination ¶
func (m *QueryOracleProgramsRequest) GetPagination() *query.PageRequest
func (*QueryOracleProgramsRequest) Marshal ¶
func (m *QueryOracleProgramsRequest) Marshal() (dAtA []byte, err error)
func (*QueryOracleProgramsRequest) MarshalTo ¶
func (m *QueryOracleProgramsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOracleProgramsRequest) MarshalToSizedBuffer ¶
func (m *QueryOracleProgramsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOracleProgramsRequest) ProtoMessage ¶
func (*QueryOracleProgramsRequest) ProtoMessage()
func (*QueryOracleProgramsRequest) Reset ¶
func (m *QueryOracleProgramsRequest) Reset()
func (*QueryOracleProgramsRequest) Size ¶
func (m *QueryOracleProgramsRequest) Size() (n int)
func (*QueryOracleProgramsRequest) String ¶
func (m *QueryOracleProgramsRequest) String() string
func (*QueryOracleProgramsRequest) Unmarshal ¶
func (m *QueryOracleProgramsRequest) Unmarshal(dAtA []byte) error
func (*QueryOracleProgramsRequest) XXX_DiscardUnknown ¶
func (m *QueryOracleProgramsRequest) XXX_DiscardUnknown()
func (*QueryOracleProgramsRequest) XXX_Marshal ¶
func (m *QueryOracleProgramsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOracleProgramsRequest) XXX_Merge ¶
func (m *QueryOracleProgramsRequest) XXX_Merge(src proto.Message)
func (*QueryOracleProgramsRequest) XXX_Size ¶
func (m *QueryOracleProgramsRequest) XXX_Size() int
func (*QueryOracleProgramsRequest) XXX_Unmarshal ¶
func (m *QueryOracleProgramsRequest) XXX_Unmarshal(b []byte) error
type QueryOracleProgramsResponse ¶
type QueryOracleProgramsResponse struct { List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
The response message for QueryOraclePrograms RPC.
func (*QueryOracleProgramsResponse) Descriptor ¶
func (*QueryOracleProgramsResponse) Descriptor() ([]byte, []int)
func (*QueryOracleProgramsResponse) GetList ¶
func (m *QueryOracleProgramsResponse) GetList() []string
func (*QueryOracleProgramsResponse) GetPagination ¶
func (m *QueryOracleProgramsResponse) GetPagination() *query.PageResponse
func (*QueryOracleProgramsResponse) Marshal ¶
func (m *QueryOracleProgramsResponse) Marshal() (dAtA []byte, err error)
func (*QueryOracleProgramsResponse) MarshalTo ¶
func (m *QueryOracleProgramsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOracleProgramsResponse) MarshalToSizedBuffer ¶
func (m *QueryOracleProgramsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOracleProgramsResponse) ProtoMessage ¶
func (*QueryOracleProgramsResponse) ProtoMessage()
func (*QueryOracleProgramsResponse) Reset ¶
func (m *QueryOracleProgramsResponse) Reset()
func (*QueryOracleProgramsResponse) Size ¶
func (m *QueryOracleProgramsResponse) Size() (n int)
func (*QueryOracleProgramsResponse) String ¶
func (m *QueryOracleProgramsResponse) String() string
func (*QueryOracleProgramsResponse) Unmarshal ¶
func (m *QueryOracleProgramsResponse) Unmarshal(dAtA []byte) error
func (*QueryOracleProgramsResponse) XXX_DiscardUnknown ¶
func (m *QueryOracleProgramsResponse) XXX_DiscardUnknown()
func (*QueryOracleProgramsResponse) XXX_Marshal ¶
func (m *QueryOracleProgramsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOracleProgramsResponse) XXX_Merge ¶
func (m *QueryOracleProgramsResponse) XXX_Merge(src proto.Message)
func (*QueryOracleProgramsResponse) XXX_Size ¶
func (m *QueryOracleProgramsResponse) XXX_Size() int
func (*QueryOracleProgramsResponse) XXX_Unmarshal ¶
func (m *QueryOracleProgramsResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // OracleProgram returns an oracle program given its hash. OracleProgram(context.Context, *QueryOracleProgramRequest) (*QueryOracleProgramResponse, error) // OraclePrograms returns all oracle programs. OraclePrograms(context.Context, *QueryOracleProgramsRequest) (*QueryOracleProgramsResponse, error) // CoreContractRegistry returns the Core Contract Registry address. CoreContractRegistry(context.Context, *QueryCoreContractRegistryRequest) (*QueryCoreContractRegistryResponse, error) // Params returns the total set of wasm-storage parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type StakingKeeper ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) InstantiateCoreContract ¶
func (*UnimplementedMsgServer) InstantiateCoreContract(ctx context.Context, req *MsgInstantiateCoreContract) (*MsgInstantiateCoreContractResponse, error)
func (*UnimplementedMsgServer) StoreOracleProgram ¶
func (*UnimplementedMsgServer) StoreOracleProgram(ctx context.Context, req *MsgStoreOracleProgram) (*MsgStoreOracleProgramResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v0.0.6
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) CoreContractRegistry ¶
func (*UnimplementedQueryServer) CoreContractRegistry(ctx context.Context, req *QueryCoreContractRegistryRequest) (*QueryCoreContractRegistryResponse, error)
func (*UnimplementedQueryServer) OracleProgram ¶
func (*UnimplementedQueryServer) OracleProgram(ctx context.Context, req *QueryOracleProgramRequest) (*QueryOracleProgramResponse, error)
func (*UnimplementedQueryServer) OraclePrograms ¶
func (*UnimplementedQueryServer) OraclePrograms(ctx context.Context, req *QueryOracleProgramsRequest) (*QueryOracleProgramsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)