types

package
v1.0.0-rc05 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the module name.
	ModuleName = "cwerrors"
	// StoreKey is the module KV storage prefix key.
	StoreKey = ModuleName
	// QuerierRoute is the querier route for the module.
	QuerierRoute = ModuleName
	// TStoreKey defines the transient store key
	TStoreKey = "t_" + ModuleName
)

Variables

View Source
var (
	ErrInvalidLengthCwerrors        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCwerrors          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCwerrors = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultCodespace            = ModuleName
	ErrContractNotFound         = errorsmod.Register(DefaultCodespace, 2, "contract with given address not found")
	ErrUnauthorized             = errorsmod.Register(DefaultCodespace, 3, "sender unauthorized to perform the action")
	ErrModuleNameMissing        = errorsmod.Register(DefaultCodespace, 4, "module name missing from sudo error")
	ErrIncorrectSubscriptionFee = errorsmod.Register(DefaultCodespace, 5, "incorrect subscription fee")
)
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 (
	// ParamsKeyPrefix is the prefix for the module parameter store.
	ParamsKeyPrefix = collections.NewPrefix(1)
	// ErrorIDKey is the prefix for the count of errors
	ErrorIDKey = collections.NewPrefix(2)
	// ContractErrorsKeyPrefix is the prefix for the collection of all error ids for a given contractzs
	ContractErrorsKeyPrefix = collections.NewPrefix(3)
	// ErrorsKeyPrefix is the prefix for the collection of all errors
	ErrorsKeyPrefix = collections.NewPrefix(4)
	// DeletionBlocksKeyPrefix is the prefix for the collection of all error ids which need to be deleted in given block
	DeletionBlocksKeyPrefix = collections.NewPrefix(5)
	// ContractSubscriptionsKeyPrefix is the prefix for the collection of all contracts with subscriptions
	ContractSubscriptionsKeyPrefix = collections.NewPrefix(6)
	// SubscriptionEndBlockKeyPrefix is the prefix for the collection of all subscriptions which end at given block
	SubscriptionEndBlockKeyPrefix = collections.NewPrefix(7)
)

Collections

View Source
var (
	DefaultErrorStoredTime    = int64(302400)                             // roughly 21 days
	DefaultSubscriptionFee    = sdk.NewInt64Coin(sdk.DefaultBondDenom, 0) // 1 ARCH (1e18 attoarch)
	DefaultSubscriptionPeriod = int64(302400)                             // roughly 21 days
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
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 (
	ErrorsForSudoCallbackKey = []byte{0x00}
)

Transient Store

View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var ModuleErrors_name = map[int32]string{
	0: "ERR_UNKNOWN",
	1: "ERR_CALLBACK_EXECUTION_FAILED",
}
View Source
var ModuleErrors_value = map[string]int32{
	"ERR_UNKNOWN":                   0,
	"ERR_CALLBACK_EXECUTION_FAILED": 1,
}

Functions

func EmitParamsUpdatedEvent

func EmitParamsUpdatedEvent(ctx sdk.Context, newParams Params)

EmitParamsUpdatedEvent emits an event when the params are updated

func EmitStoringErrorEvent

func EmitStoringErrorEvent(ctx sdk.Context, sudoError SudoError, deletionBlockHeight int64)

EmitStoringErrorEvent emits an event when an error is stored

func EmitSubscribedToErrorsEvent

func EmitSubscribedToErrorsEvent(ctx sdk.Context, sender, contractAddress string, fees sdk.Coin, subValidTill int64)

EmitSubscribedToErrorsEvent emits an event when a contract is subscribed to errors

func EmitSudoErrorCallbackFailedEvent

func EmitSudoErrorCallbackFailedEvent(ctx sdk.Context, sudoError SudoError, callbackErr string)

EmitSudoErrorCallbackFailedEvent emits an event when a callback for a sudo error fails

func GetErrorsForSudoCallStoreKey

func GetErrorsForSudoCallStoreKey(errorID uint64) []byte

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers interfaces types with the interface registry.

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

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)

Types

type BankKeeperExpected

type BankKeeperExpected interface {
	// SendCoinsFromAccountToModule sends coins from an account to a module
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
}

BankKeeperExpected is a subset of the expected bank keeper

type GenesisState

type GenesisState struct {
	// params defines all the module parameters.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// errors defines all the sudo errors currently registered.
	Errors []SudoError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors"`
}

GenesisState defines the cwerrors module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesisState returns a default genesis state.

func NewGenesisState

func NewGenesisState(
	params Params,
) *GenesisState

NewGenesisState creates a new GenesisState object.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetErrors

func (m *GenesisState) GetErrors() []SudoError

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (g GenesisState) Validate() error

Validate perform object fields validation.

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 ModuleErrors

type ModuleErrors int32

ModuleErrors defines the module level error codes

const (
	// ERR_UNKNOWN is the default error code
	ModuleErrors_ERR_UNKNOWN ModuleErrors = 0
	// ERR_CALLBACK_EXECUTION_FAILED is the error code for when the error callback fails
	ModuleErrors_ERR_CALLBACK_EXECUTION_FAILED ModuleErrors = 1
)

func (ModuleErrors) EnumDescriptor

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

func (ModuleErrors) String

func (x ModuleErrors) String() string

type MsgClient

type MsgClient interface {
	// SubscribeToError defines an operation which will register a contract for a
	// sudo callback on errors
	SubscribeToError(ctx context.Context, in *MsgSubscribeToError, opts ...grpc.CallOption) (*MsgSubscribeToErrorResponse, 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 MsgServer

type MsgServer interface {
	// SubscribeToError defines an operation which will register a contract for a
	// sudo callback on errors
	SubscribeToError(context.Context, *MsgSubscribeToError) (*MsgSubscribeToErrorResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSubscribeToError

type MsgSubscribeToError struct {
	// sender is the address of who is registering the contarcts for callback on
	// error
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// contract is the address of the contract that will be called on error
	ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// fee is the subscription fee for the feature (current no fee is charged for
	// this feature)
	Fee types.Coin `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee"`
}

MsgSubscribeToError is the Msg/SubscribeToError request type.

func (*MsgSubscribeToError) Descriptor

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

func (*MsgSubscribeToError) GetContractAddress

func (m *MsgSubscribeToError) GetContractAddress() string

func (*MsgSubscribeToError) GetFee

func (m *MsgSubscribeToError) GetFee() types.Coin

func (*MsgSubscribeToError) GetSender

func (m *MsgSubscribeToError) GetSender() string

func (MsgSubscribeToError) GetSigners

func (m MsgSubscribeToError) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgSubscribeToError) Marshal

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

func (*MsgSubscribeToError) MarshalTo

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

func (*MsgSubscribeToError) MarshalToSizedBuffer

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

func (*MsgSubscribeToError) ProtoMessage

func (*MsgSubscribeToError) ProtoMessage()

func (*MsgSubscribeToError) Reset

func (m *MsgSubscribeToError) Reset()

func (*MsgSubscribeToError) Size

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

func (*MsgSubscribeToError) String

func (m *MsgSubscribeToError) String() string

func (*MsgSubscribeToError) Unmarshal

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

func (MsgSubscribeToError) ValidateBasic

func (m MsgSubscribeToError) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgSubscribeToError) XXX_DiscardUnknown

func (m *MsgSubscribeToError) XXX_DiscardUnknown()

func (*MsgSubscribeToError) XXX_Marshal

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

func (*MsgSubscribeToError) XXX_Merge

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

func (*MsgSubscribeToError) XXX_Size

func (m *MsgSubscribeToError) XXX_Size() int

func (*MsgSubscribeToError) XXX_Unmarshal

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

type MsgSubscribeToErrorResponse

type MsgSubscribeToErrorResponse struct {
	// subscription_valid_till is the block height till which the subscription is
	// valid
	SubscriptionValidTill int64 `` /* 127-byte string literal not displayed */
}

MsgSubscribeToErrorResponse defines the response structure for executing a MsgSubscribeToError message.

func (*MsgSubscribeToErrorResponse) Descriptor

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

func (*MsgSubscribeToErrorResponse) GetSubscriptionValidTill

func (m *MsgSubscribeToErrorResponse) GetSubscriptionValidTill() int64

func (*MsgSubscribeToErrorResponse) Marshal

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

func (*MsgSubscribeToErrorResponse) MarshalTo

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

func (*MsgSubscribeToErrorResponse) MarshalToSizedBuffer

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

func (*MsgSubscribeToErrorResponse) ProtoMessage

func (*MsgSubscribeToErrorResponse) ProtoMessage()

func (*MsgSubscribeToErrorResponse) Reset

func (m *MsgSubscribeToErrorResponse) Reset()

func (*MsgSubscribeToErrorResponse) Size

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

func (*MsgSubscribeToErrorResponse) String

func (m *MsgSubscribeToErrorResponse) String() string

func (*MsgSubscribeToErrorResponse) Unmarshal

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

func (*MsgSubscribeToErrorResponse) XXX_DiscardUnknown

func (m *MsgSubscribeToErrorResponse) XXX_DiscardUnknown()

func (*MsgSubscribeToErrorResponse) XXX_Marshal

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

func (*MsgSubscribeToErrorResponse) XXX_Merge

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

func (*MsgSubscribeToErrorResponse) XXX_Size

func (m *MsgSubscribeToErrorResponse) XXX_Size() int

func (*MsgSubscribeToErrorResponse) XXX_Unmarshal

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

type Params

type Params struct {
	// error_stored_time is the block height until which error is stored
	ErrorStoredTime int64 `protobuf:"varint,1,opt,name=error_stored_time,json=errorStoredTime,proto3" json:"error_stored_time,omitempty"`
	// subsciption_fee is the fee required to subscribe to error callbacks
	SubscriptionFee types.Coin `protobuf:"bytes,2,opt,name=subscription_fee,json=subscriptionFee,proto3" json:"subscription_fee"`
	// subscription_period is the period for which the subscription is valid
	SubscriptionPeriod int64 `protobuf:"varint,3,opt,name=subscription_period,json=subscriptionPeriod,proto3" json:"subscription_period,omitempty"`
}

Params defines the set of parameters for the cwerrors module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func NewParams

func NewParams(
	errorStoredTime int64,
	subscriptionFee sdk.Coin,
	subscriptionPeriod int64,
) Params

NewParams creates a new Params instance.

func (*Params) Descriptor

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

func (*Params) GetErrorStoredTime

func (m *Params) GetErrorStoredTime() int64

func (*Params) GetSubscriptionFee

func (m *Params) GetSubscriptionFee() types.Coin

func (*Params) GetSubscriptionPeriod

func (m *Params) GetSubscriptionPeriod() int64

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate perform object fields validation.

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 ParamsUpdatedEvent

type ParamsUpdatedEvent struct {
	// new_params are the new parameters for the module
	NewParams Params `protobuf:"bytes,1,opt,name=new_params,json=newParams,proto3" json:"new_params"`
}

ParamsUpdatedEvent defines the event which is thrown when the module parameters are updated

func (*ParamsUpdatedEvent) Descriptor

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

func (*ParamsUpdatedEvent) GetNewParams

func (m *ParamsUpdatedEvent) GetNewParams() Params

func (*ParamsUpdatedEvent) Marshal

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

func (*ParamsUpdatedEvent) MarshalTo

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

func (*ParamsUpdatedEvent) MarshalToSizedBuffer

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

func (*ParamsUpdatedEvent) ProtoMessage

func (*ParamsUpdatedEvent) ProtoMessage()

func (*ParamsUpdatedEvent) Reset

func (m *ParamsUpdatedEvent) Reset()

func (*ParamsUpdatedEvent) Size

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

func (*ParamsUpdatedEvent) String

func (m *ParamsUpdatedEvent) String() string

func (*ParamsUpdatedEvent) Unmarshal

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

func (*ParamsUpdatedEvent) XXX_DiscardUnknown

func (m *ParamsUpdatedEvent) XXX_DiscardUnknown()

func (*ParamsUpdatedEvent) XXX_Marshal

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

func (*ParamsUpdatedEvent) XXX_Merge

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

func (*ParamsUpdatedEvent) XXX_Size

func (m *ParamsUpdatedEvent) XXX_Size() int

func (*ParamsUpdatedEvent) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Params queries all the module parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Errors queries all the errors for a given contract.
	Errors(ctx context.Context, in *QueryErrorsRequest, opts ...grpc.CallOption) (*QueryErrorsResponse, error)
	// IsSubscribed queries if a contract is subscribed to sudo error callbacks.
	IsSubscribed(ctx context.Context, in *QueryIsSubscribedRequest, opts ...grpc.CallOption) (*QueryIsSubscribedResponse, 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 QueryErrorsRequest

type QueryErrorsRequest struct {
	// contract_address is the address of the contract whose errors to query for
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

QueryErrorsRequest is the request for Query.Errors.

func (*QueryErrorsRequest) Descriptor

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

func (*QueryErrorsRequest) GetContractAddress

func (m *QueryErrorsRequest) GetContractAddress() string

func (*QueryErrorsRequest) Marshal

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

func (*QueryErrorsRequest) MarshalTo

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

func (*QueryErrorsRequest) MarshalToSizedBuffer

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

func (*QueryErrorsRequest) ProtoMessage

func (*QueryErrorsRequest) ProtoMessage()

func (*QueryErrorsRequest) Reset

func (m *QueryErrorsRequest) Reset()

func (*QueryErrorsRequest) Size

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

func (*QueryErrorsRequest) String

func (m *QueryErrorsRequest) String() string

func (*QueryErrorsRequest) Unmarshal

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

func (*QueryErrorsRequest) XXX_DiscardUnknown

func (m *QueryErrorsRequest) XXX_DiscardUnknown()

func (*QueryErrorsRequest) XXX_Marshal

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

func (*QueryErrorsRequest) XXX_Merge

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

func (*QueryErrorsRequest) XXX_Size

func (m *QueryErrorsRequest) XXX_Size() int

func (*QueryErrorsRequest) XXX_Unmarshal

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

type QueryErrorsResponse

type QueryErrorsResponse struct {
	// errors defines all the contract errors which will be returned
	Errors []SudoError `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors"`
}

QueryErrorsResponse is the response for Query.Errors.

func (*QueryErrorsResponse) Descriptor

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

func (*QueryErrorsResponse) GetErrors

func (m *QueryErrorsResponse) GetErrors() []SudoError

func (*QueryErrorsResponse) Marshal

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

func (*QueryErrorsResponse) MarshalTo

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

func (*QueryErrorsResponse) MarshalToSizedBuffer

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

func (*QueryErrorsResponse) ProtoMessage

func (*QueryErrorsResponse) ProtoMessage()

func (*QueryErrorsResponse) Reset

func (m *QueryErrorsResponse) Reset()

func (*QueryErrorsResponse) Size

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

func (*QueryErrorsResponse) String

func (m *QueryErrorsResponse) String() string

func (*QueryErrorsResponse) Unmarshal

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

func (*QueryErrorsResponse) XXX_DiscardUnknown

func (m *QueryErrorsResponse) XXX_DiscardUnknown()

func (*QueryErrorsResponse) XXX_Marshal

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

func (*QueryErrorsResponse) XXX_Merge

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

func (*QueryErrorsResponse) XXX_Size

func (m *QueryErrorsResponse) XXX_Size() int

func (*QueryErrorsResponse) XXX_Unmarshal

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

type QueryIsSubscribedRequest

type QueryIsSubscribedRequest struct {
	// contract_address is the address of the contract to query if subscribed
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

QueryIsSubscribedRequest is the request for Query.IsSubscribed.

func (*QueryIsSubscribedRequest) Descriptor

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

func (*QueryIsSubscribedRequest) GetContractAddress

func (m *QueryIsSubscribedRequest) GetContractAddress() string

func (*QueryIsSubscribedRequest) Marshal

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

func (*QueryIsSubscribedRequest) MarshalTo

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

func (*QueryIsSubscribedRequest) MarshalToSizedBuffer

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

func (*QueryIsSubscribedRequest) ProtoMessage

func (*QueryIsSubscribedRequest) ProtoMessage()

func (*QueryIsSubscribedRequest) Reset

func (m *QueryIsSubscribedRequest) Reset()

func (*QueryIsSubscribedRequest) Size

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

func (*QueryIsSubscribedRequest) String

func (m *QueryIsSubscribedRequest) String() string

func (*QueryIsSubscribedRequest) Unmarshal

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

func (*QueryIsSubscribedRequest) XXX_DiscardUnknown

func (m *QueryIsSubscribedRequest) XXX_DiscardUnknown()

func (*QueryIsSubscribedRequest) XXX_Marshal

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

func (*QueryIsSubscribedRequest) XXX_Merge

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

func (*QueryIsSubscribedRequest) XXX_Size

func (m *QueryIsSubscribedRequest) XXX_Size() int

func (*QueryIsSubscribedRequest) XXX_Unmarshal

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

type QueryIsSubscribedResponse

type QueryIsSubscribedResponse struct {
	// subscribed defines if the contract is subscribed to sudo error callbacks
	Subscribed bool `protobuf:"varint,1,opt,name=subscribed,proto3" json:"subscribed,omitempty"`
	// subscription_valid_till defines the block height till which the
	// subscription is valid
	SubscriptionValidTill int64 `` /* 127-byte string literal not displayed */
}

QueryIsSubscribedResponse is the response for Query.IsSubscribed.

func (*QueryIsSubscribedResponse) Descriptor

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

func (*QueryIsSubscribedResponse) GetSubscribed

func (m *QueryIsSubscribedResponse) GetSubscribed() bool

func (*QueryIsSubscribedResponse) GetSubscriptionValidTill

func (m *QueryIsSubscribedResponse) GetSubscriptionValidTill() int64

func (*QueryIsSubscribedResponse) Marshal

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

func (*QueryIsSubscribedResponse) MarshalTo

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

func (*QueryIsSubscribedResponse) MarshalToSizedBuffer

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

func (*QueryIsSubscribedResponse) ProtoMessage

func (*QueryIsSubscribedResponse) ProtoMessage()

func (*QueryIsSubscribedResponse) Reset

func (m *QueryIsSubscribedResponse) Reset()

func (*QueryIsSubscribedResponse) Size

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

func (*QueryIsSubscribedResponse) String

func (m *QueryIsSubscribedResponse) String() string

func (*QueryIsSubscribedResponse) Unmarshal

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

func (*QueryIsSubscribedResponse) XXX_DiscardUnknown

func (m *QueryIsSubscribedResponse) XXX_DiscardUnknown()

func (*QueryIsSubscribedResponse) XXX_Marshal

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

func (*QueryIsSubscribedResponse) XXX_Merge

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

func (*QueryIsSubscribedResponse) XXX_Size

func (m *QueryIsSubscribedResponse) XXX_Size() int

func (*QueryIsSubscribedResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request for Query.Params.

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 all the module parameters.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the response for Query.Params.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Params queries all the module parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Errors queries all the errors for a given contract.
	Errors(context.Context, *QueryErrorsRequest) (*QueryErrorsResponse, error)
	// IsSubscribed queries if a contract is subscribed to sudo error callbacks.
	IsSubscribed(context.Context, *QueryIsSubscribedRequest) (*QueryIsSubscribedResponse, error)
}

QueryServer is the server API for Query service.

type StoringErrorEvent

type StoringErrorEvent struct {
	// error is the error which is stored
	Error SudoError `protobuf:"bytes,1,opt,name=error,proto3" json:"error"`
	// deletion_block_height is the block height at which the error will be pruned
	// from the state
	DeletionBlockHeight int64 `protobuf:"varint,2,opt,name=deletion_block_height,json=deletionBlockHeight,proto3" json:"deletion_block_height,omitempty"`
}

StoringErrorEvent defines the event which is thrown when an error is stored

func (*StoringErrorEvent) Descriptor

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

func (*StoringErrorEvent) GetDeletionBlockHeight

func (m *StoringErrorEvent) GetDeletionBlockHeight() int64

func (*StoringErrorEvent) GetError

func (m *StoringErrorEvent) GetError() SudoError

func (*StoringErrorEvent) Marshal

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

func (*StoringErrorEvent) MarshalTo

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

func (*StoringErrorEvent) MarshalToSizedBuffer

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

func (*StoringErrorEvent) ProtoMessage

func (*StoringErrorEvent) ProtoMessage()

func (*StoringErrorEvent) Reset

func (m *StoringErrorEvent) Reset()

func (*StoringErrorEvent) Size

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

func (*StoringErrorEvent) String

func (m *StoringErrorEvent) String() string

func (*StoringErrorEvent) Unmarshal

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

func (*StoringErrorEvent) XXX_DiscardUnknown

func (m *StoringErrorEvent) XXX_DiscardUnknown()

func (*StoringErrorEvent) XXX_Marshal

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

func (*StoringErrorEvent) XXX_Merge

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

func (*StoringErrorEvent) XXX_Size

func (m *StoringErrorEvent) XXX_Size() int

func (*StoringErrorEvent) XXX_Unmarshal

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

type SubscribedToErrorsEvent

type SubscribedToErrorsEvent struct {
	// sender is the address which initiated the subscription
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// contract_address is the address of the contract which is subscribed to
	// errors
	ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// fees_paid is the fees paid for the subscription
	FeesPaid types.Coin `protobuf:"bytes,3,opt,name=fees_paid,json=feesPaid,proto3" json:"fees_paid"`
	// subscription_valid_till is the block height till which the subscription is
	// valid
	SubscriptionValidTill int64 `` /* 127-byte string literal not displayed */
}

SubscribedToErrorsEvent defines the event which is thrown when a contract subscribes to errors

func (*SubscribedToErrorsEvent) Descriptor

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

func (*SubscribedToErrorsEvent) GetContractAddress

func (m *SubscribedToErrorsEvent) GetContractAddress() string

func (*SubscribedToErrorsEvent) GetFeesPaid

func (m *SubscribedToErrorsEvent) GetFeesPaid() types.Coin

func (*SubscribedToErrorsEvent) GetSender

func (m *SubscribedToErrorsEvent) GetSender() string

func (*SubscribedToErrorsEvent) GetSubscriptionValidTill

func (m *SubscribedToErrorsEvent) GetSubscriptionValidTill() int64

func (*SubscribedToErrorsEvent) Marshal

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

func (*SubscribedToErrorsEvent) MarshalTo

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

func (*SubscribedToErrorsEvent) MarshalToSizedBuffer

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

func (*SubscribedToErrorsEvent) ProtoMessage

func (*SubscribedToErrorsEvent) ProtoMessage()

func (*SubscribedToErrorsEvent) Reset

func (m *SubscribedToErrorsEvent) Reset()

func (*SubscribedToErrorsEvent) Size

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

func (*SubscribedToErrorsEvent) String

func (m *SubscribedToErrorsEvent) String() string

func (*SubscribedToErrorsEvent) Unmarshal

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

func (*SubscribedToErrorsEvent) XXX_DiscardUnknown

func (m *SubscribedToErrorsEvent) XXX_DiscardUnknown()

func (*SubscribedToErrorsEvent) XXX_Marshal

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

func (*SubscribedToErrorsEvent) XXX_Merge

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

func (*SubscribedToErrorsEvent) XXX_Size

func (m *SubscribedToErrorsEvent) XXX_Size() int

func (*SubscribedToErrorsEvent) XXX_Unmarshal

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

type SudoError

type SudoError struct {
	// module_name is the name of the module throwing the error
	ModuleName string `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"`
	// error_code is the module level error code
	ErrorCode int32 `protobuf:"varint,2,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
	// contract_address is the address of the contract which will receive the
	// error callback
	ContractAddress string `protobuf:"bytes,3,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// input_payload is any input which caused the error
	InputPayload string `protobuf:"bytes,4,opt,name=input_payload,json=inputPayload,proto3" json:"input_payload,omitempty"`
	// error_message is the error message
	ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
}

SudoError defines the sudo message for the error callback

func (SudoError) Bytes

func (s SudoError) Bytes() []byte

Bytes returns the json encoding of the sudo callback which is sent to the contract

func (*SudoError) Descriptor

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

func (*SudoError) GetContractAddress

func (m *SudoError) GetContractAddress() string

func (*SudoError) GetErrorCode

func (m *SudoError) GetErrorCode() int32

func (*SudoError) GetErrorMessage

func (m *SudoError) GetErrorMessage() string

func (*SudoError) GetInputPayload

func (m *SudoError) GetInputPayload() string

func (*SudoError) GetModuleName

func (m *SudoError) GetModuleName() string

func (*SudoError) Marshal

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

func (*SudoError) MarshalTo

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

func (*SudoError) MarshalToSizedBuffer

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

func (*SudoError) ProtoMessage

func (*SudoError) ProtoMessage()

func (*SudoError) Reset

func (m *SudoError) Reset()

func (*SudoError) Size

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

func (*SudoError) String

func (m *SudoError) String() string

func (*SudoError) Unmarshal

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

func (SudoError) Validate

func (s SudoError) Validate() error

Validate perform object fields validation.

func (*SudoError) XXX_DiscardUnknown

func (m *SudoError) XXX_DiscardUnknown()

func (*SudoError) XXX_Marshal

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

func (*SudoError) XXX_Merge

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

func (*SudoError) XXX_Size

func (m *SudoError) XXX_Size() int

func (*SudoError) XXX_Unmarshal

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

type SudoErrorCallbackFailedEvent

type SudoErrorCallbackFailedEvent struct {
	// error is the error for which the callback is executed
	Error SudoError `protobuf:"bytes,1,opt,name=error,proto3" json:"error"`
	// callback_error_message is the error message of why the callback failed
	CallbackErrorMessage string `protobuf:"bytes,2,opt,name=callback_error_message,json=callbackErrorMessage,proto3" json:"callback_error_message,omitempty"`
}

SudoErrorCallbackFailedEvent defines the event which is thrown when a sudo error callback fails

func (*SudoErrorCallbackFailedEvent) Descriptor

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

func (*SudoErrorCallbackFailedEvent) GetCallbackErrorMessage

func (m *SudoErrorCallbackFailedEvent) GetCallbackErrorMessage() string

func (*SudoErrorCallbackFailedEvent) GetError

func (*SudoErrorCallbackFailedEvent) Marshal

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

func (*SudoErrorCallbackFailedEvent) MarshalTo

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

func (*SudoErrorCallbackFailedEvent) MarshalToSizedBuffer

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

func (*SudoErrorCallbackFailedEvent) ProtoMessage

func (*SudoErrorCallbackFailedEvent) ProtoMessage()

func (*SudoErrorCallbackFailedEvent) Reset

func (m *SudoErrorCallbackFailedEvent) Reset()

func (*SudoErrorCallbackFailedEvent) Size

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

func (*SudoErrorCallbackFailedEvent) String

func (*SudoErrorCallbackFailedEvent) Unmarshal

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

func (*SudoErrorCallbackFailedEvent) XXX_DiscardUnknown

func (m *SudoErrorCallbackFailedEvent) XXX_DiscardUnknown()

func (*SudoErrorCallbackFailedEvent) XXX_Marshal

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

func (*SudoErrorCallbackFailedEvent) XXX_Merge

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

func (*SudoErrorCallbackFailedEvent) XXX_Size

func (m *SudoErrorCallbackFailedEvent) XXX_Size() int

func (*SudoErrorCallbackFailedEvent) XXX_Unmarshal

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

type SudoMsg

type SudoMsg struct {
	// Error is the endpoint name at the contract which is called
	Error *SudoError `json:"error,omitempty"`
}

SudoMsg is message sent to a contract. This is encoded as JSON input to the contract when executing the callback

func NewSudoMsg

func NewSudoMsg(sudoErr SudoError) SudoMsg

NewSudoMsg creates a new SudoMsg instance.

func (SudoMsg) Bytes

func (s SudoMsg) Bytes() []byte

Bytes returns the sudo message as JSON bytes

func (SudoMsg) String

func (s SudoMsg) String() string

String returns the sudo message as JSON string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) SubscribeToError

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Errors

func (*UnimplementedQueryServer) IsSubscribed

func (*UnimplementedQueryServer) Params

type WasmKeeperExpected

type WasmKeeperExpected interface {
	// HasContractInfo returns true if the contract exists
	HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool
	// Sudo executes a contract message as a sudoer
	Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error)
	// GetContractInfo returns the contract info
	GetContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) *wasmdtypes.ContractInfo
}

WasmKeeperExpected is a subset of the expected wasm keeper

Jump to

Keyboard shortcuts

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