Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func EmitParamsUpdatedEvent(ctx sdk.Context, newParams Params)
- func EmitStoringErrorEvent(ctx sdk.Context, sudoError SudoError, deletionBlockHeight int64)
- func EmitSubscribedToErrorsEvent(ctx sdk.Context, sender, contractAddress string, fees sdk.Coin, ...)
- func EmitSudoErrorCallbackFailedEvent(ctx sdk.Context, sudoError SudoError, callbackErr string)
- func GetErrorsForSudoCallStoreKey(errorID uint64) []byte
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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)
- type BankKeeperExpected
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetErrors() []SudoError
- 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 (g GenesisState) Validate() 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 ModuleErrors
- type MsgClient
- type MsgServer
- type MsgSubscribeToError
- func (*MsgSubscribeToError) Descriptor() ([]byte, []int)
- func (m *MsgSubscribeToError) GetContractAddress() string
- func (m *MsgSubscribeToError) GetFee() types.Coin
- func (m *MsgSubscribeToError) GetSender() string
- func (m MsgSubscribeToError) GetSigners() []sdk.AccAddress
- func (m *MsgSubscribeToError) Marshal() (dAtA []byte, err error)
- func (m *MsgSubscribeToError) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSubscribeToError) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSubscribeToError) ProtoMessage()
- func (m *MsgSubscribeToError) Reset()
- func (m *MsgSubscribeToError) Size() (n int)
- func (m *MsgSubscribeToError) String() string
- func (m *MsgSubscribeToError) Unmarshal(dAtA []byte) error
- func (m MsgSubscribeToError) ValidateBasic() error
- func (m *MsgSubscribeToError) XXX_DiscardUnknown()
- func (m *MsgSubscribeToError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSubscribeToError) XXX_Merge(src proto.Message)
- func (m *MsgSubscribeToError) XXX_Size() int
- func (m *MsgSubscribeToError) XXX_Unmarshal(b []byte) error
- type MsgSubscribeToErrorResponse
- func (*MsgSubscribeToErrorResponse) Descriptor() ([]byte, []int)
- func (m *MsgSubscribeToErrorResponse) GetSubscriptionValidTill() int64
- func (m *MsgSubscribeToErrorResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSubscribeToErrorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSubscribeToErrorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSubscribeToErrorResponse) ProtoMessage()
- func (m *MsgSubscribeToErrorResponse) Reset()
- func (m *MsgSubscribeToErrorResponse) Size() (n int)
- func (m *MsgSubscribeToErrorResponse) String() string
- func (m *MsgSubscribeToErrorResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSubscribeToErrorResponse) XXX_DiscardUnknown()
- func (m *MsgSubscribeToErrorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSubscribeToErrorResponse) XXX_Merge(src proto.Message)
- func (m *MsgSubscribeToErrorResponse) XXX_Size() int
- func (m *MsgSubscribeToErrorResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetErrorStoredTime() int64
- func (m *Params) GetSubscriptionFee() types.Coin
- func (m *Params) GetSubscriptionPeriod() int64
- 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 ParamsUpdatedEvent
- func (*ParamsUpdatedEvent) Descriptor() ([]byte, []int)
- func (m *ParamsUpdatedEvent) GetNewParams() Params
- func (m *ParamsUpdatedEvent) Marshal() (dAtA []byte, err error)
- func (m *ParamsUpdatedEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *ParamsUpdatedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ParamsUpdatedEvent) ProtoMessage()
- func (m *ParamsUpdatedEvent) Reset()
- func (m *ParamsUpdatedEvent) Size() (n int)
- func (m *ParamsUpdatedEvent) String() string
- func (m *ParamsUpdatedEvent) Unmarshal(dAtA []byte) error
- func (m *ParamsUpdatedEvent) XXX_DiscardUnknown()
- func (m *ParamsUpdatedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ParamsUpdatedEvent) XXX_Merge(src proto.Message)
- func (m *ParamsUpdatedEvent) XXX_Size() int
- func (m *ParamsUpdatedEvent) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryErrorsRequest
- func (*QueryErrorsRequest) Descriptor() ([]byte, []int)
- func (m *QueryErrorsRequest) GetContractAddress() string
- func (m *QueryErrorsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryErrorsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryErrorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryErrorsRequest) ProtoMessage()
- func (m *QueryErrorsRequest) Reset()
- func (m *QueryErrorsRequest) Size() (n int)
- func (m *QueryErrorsRequest) String() string
- func (m *QueryErrorsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryErrorsRequest) XXX_DiscardUnknown()
- func (m *QueryErrorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryErrorsRequest) XXX_Merge(src proto.Message)
- func (m *QueryErrorsRequest) XXX_Size() int
- func (m *QueryErrorsRequest) XXX_Unmarshal(b []byte) error
- type QueryErrorsResponse
- func (*QueryErrorsResponse) Descriptor() ([]byte, []int)
- func (m *QueryErrorsResponse) GetErrors() []SudoError
- func (m *QueryErrorsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryErrorsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryErrorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryErrorsResponse) ProtoMessage()
- func (m *QueryErrorsResponse) Reset()
- func (m *QueryErrorsResponse) Size() (n int)
- func (m *QueryErrorsResponse) String() string
- func (m *QueryErrorsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryErrorsResponse) XXX_DiscardUnknown()
- func (m *QueryErrorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryErrorsResponse) XXX_Merge(src proto.Message)
- func (m *QueryErrorsResponse) XXX_Size() int
- func (m *QueryErrorsResponse) XXX_Unmarshal(b []byte) error
- type QueryIsSubscribedRequest
- func (*QueryIsSubscribedRequest) Descriptor() ([]byte, []int)
- func (m *QueryIsSubscribedRequest) GetContractAddress() string
- func (m *QueryIsSubscribedRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryIsSubscribedRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryIsSubscribedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryIsSubscribedRequest) ProtoMessage()
- func (m *QueryIsSubscribedRequest) Reset()
- func (m *QueryIsSubscribedRequest) Size() (n int)
- func (m *QueryIsSubscribedRequest) String() string
- func (m *QueryIsSubscribedRequest) Unmarshal(dAtA []byte) error
- func (m *QueryIsSubscribedRequest) XXX_DiscardUnknown()
- func (m *QueryIsSubscribedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryIsSubscribedRequest) XXX_Merge(src proto.Message)
- func (m *QueryIsSubscribedRequest) XXX_Size() int
- func (m *QueryIsSubscribedRequest) XXX_Unmarshal(b []byte) error
- type QueryIsSubscribedResponse
- func (*QueryIsSubscribedResponse) Descriptor() ([]byte, []int)
- func (m *QueryIsSubscribedResponse) GetSubscribed() bool
- func (m *QueryIsSubscribedResponse) GetSubscriptionValidTill() int64
- func (m *QueryIsSubscribedResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryIsSubscribedResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryIsSubscribedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryIsSubscribedResponse) ProtoMessage()
- func (m *QueryIsSubscribedResponse) Reset()
- func (m *QueryIsSubscribedResponse) Size() (n int)
- func (m *QueryIsSubscribedResponse) String() string
- func (m *QueryIsSubscribedResponse) Unmarshal(dAtA []byte) error
- func (m *QueryIsSubscribedResponse) XXX_DiscardUnknown()
- func (m *QueryIsSubscribedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryIsSubscribedResponse) XXX_Merge(src proto.Message)
- func (m *QueryIsSubscribedResponse) XXX_Size() int
- func (m *QueryIsSubscribedResponse) 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 StoringErrorEvent
- func (*StoringErrorEvent) Descriptor() ([]byte, []int)
- func (m *StoringErrorEvent) GetDeletionBlockHeight() int64
- func (m *StoringErrorEvent) GetError() SudoError
- func (m *StoringErrorEvent) Marshal() (dAtA []byte, err error)
- func (m *StoringErrorEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *StoringErrorEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StoringErrorEvent) ProtoMessage()
- func (m *StoringErrorEvent) Reset()
- func (m *StoringErrorEvent) Size() (n int)
- func (m *StoringErrorEvent) String() string
- func (m *StoringErrorEvent) Unmarshal(dAtA []byte) error
- func (m *StoringErrorEvent) XXX_DiscardUnknown()
- func (m *StoringErrorEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StoringErrorEvent) XXX_Merge(src proto.Message)
- func (m *StoringErrorEvent) XXX_Size() int
- func (m *StoringErrorEvent) XXX_Unmarshal(b []byte) error
- type SubscribedToErrorsEvent
- func (*SubscribedToErrorsEvent) Descriptor() ([]byte, []int)
- func (m *SubscribedToErrorsEvent) GetContractAddress() string
- func (m *SubscribedToErrorsEvent) GetFeesPaid() types.Coin
- func (m *SubscribedToErrorsEvent) GetSender() string
- func (m *SubscribedToErrorsEvent) GetSubscriptionValidTill() int64
- func (m *SubscribedToErrorsEvent) Marshal() (dAtA []byte, err error)
- func (m *SubscribedToErrorsEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *SubscribedToErrorsEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubscribedToErrorsEvent) ProtoMessage()
- func (m *SubscribedToErrorsEvent) Reset()
- func (m *SubscribedToErrorsEvent) Size() (n int)
- func (m *SubscribedToErrorsEvent) String() string
- func (m *SubscribedToErrorsEvent) Unmarshal(dAtA []byte) error
- func (m *SubscribedToErrorsEvent) XXX_DiscardUnknown()
- func (m *SubscribedToErrorsEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubscribedToErrorsEvent) XXX_Merge(src proto.Message)
- func (m *SubscribedToErrorsEvent) XXX_Size() int
- func (m *SubscribedToErrorsEvent) XXX_Unmarshal(b []byte) error
- type SudoError
- func (s SudoError) Bytes() []byte
- func (*SudoError) Descriptor() ([]byte, []int)
- func (m *SudoError) GetContractAddress() string
- func (m *SudoError) GetErrorCode() int32
- func (m *SudoError) GetErrorMessage() string
- func (m *SudoError) GetInputPayload() string
- func (m *SudoError) GetModuleName() string
- func (m *SudoError) Marshal() (dAtA []byte, err error)
- func (m *SudoError) MarshalTo(dAtA []byte) (int, error)
- func (m *SudoError) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SudoError) ProtoMessage()
- func (m *SudoError) Reset()
- func (m *SudoError) Size() (n int)
- func (m *SudoError) String() string
- func (m *SudoError) Unmarshal(dAtA []byte) error
- func (s SudoError) Validate() error
- func (m *SudoError) XXX_DiscardUnknown()
- func (m *SudoError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SudoError) XXX_Merge(src proto.Message)
- func (m *SudoError) XXX_Size() int
- func (m *SudoError) XXX_Unmarshal(b []byte) error
- type SudoErrorCallbackFailedEvent
- func (*SudoErrorCallbackFailedEvent) Descriptor() ([]byte, []int)
- func (m *SudoErrorCallbackFailedEvent) GetCallbackErrorMessage() string
- func (m *SudoErrorCallbackFailedEvent) GetError() SudoError
- func (m *SudoErrorCallbackFailedEvent) Marshal() (dAtA []byte, err error)
- func (m *SudoErrorCallbackFailedEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *SudoErrorCallbackFailedEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SudoErrorCallbackFailedEvent) ProtoMessage()
- func (m *SudoErrorCallbackFailedEvent) Reset()
- func (m *SudoErrorCallbackFailedEvent) Size() (n int)
- func (m *SudoErrorCallbackFailedEvent) String() string
- func (m *SudoErrorCallbackFailedEvent) Unmarshal(dAtA []byte) error
- func (m *SudoErrorCallbackFailedEvent) XXX_DiscardUnknown()
- func (m *SudoErrorCallbackFailedEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SudoErrorCallbackFailedEvent) XXX_Merge(src proto.Message)
- func (m *SudoErrorCallbackFailedEvent) XXX_Size() int
- func (m *SudoErrorCallbackFailedEvent) XXX_Unmarshal(b []byte) error
- type SudoMsg
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Errors(ctx context.Context, req *QueryErrorsRequest) (*QueryErrorsResponse, error)
- func (*UnimplementedQueryServer) IsSubscribed(ctx context.Context, req *QueryIsSubscribedRequest) (*QueryIsSubscribedResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- type WasmKeeperExpected
Constants ¶
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 ¶
var ( ErrInvalidLengthCwerrors = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCwerrors = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCwerrors = fmt.Errorf("proto: unexpected end of group") )
var ( DefaultCodespace = ModuleName ErrContractNotFound = errorsmod.Register(DefaultCodespace, 2, "contract with given address not found") ErrModuleNameMissing = errorsmod.Register(DefaultCodespace, 4, "module name missing from sudo error") ErrIncorrectSubscriptionFee = errorsmod.Register(DefaultCodespace, 5, "incorrect subscription fee") )
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
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 ( // 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
var ( DefaultErrorStoredTime = int64(302400) // roughly 21 days DefaultSubscriptionFee = sdk.NewInt64Coin(sdk.DefaultBondDenom, 0) // 1 ARCH (1e18 attoarch) DefaultSubscriptionPeriod = int64(302400) // roughly 21 days )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
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 (
ErrorsForSudoCallbackKey = []byte{0x00}
)
Transient Store
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var ModuleErrors_name = map[int32]string{
0: "ERR_UNKNOWN",
1: "ERR_CALLBACK_EXECUTION_FAILED",
}
var ModuleErrors_value = map[string]int32{
"ERR_UNKNOWN": 0,
"ERR_CALLBACK_EXECUTION_FAILED": 1,
}
Functions ¶
func EmitParamsUpdatedEvent ¶
EmitParamsUpdatedEvent emits an event when the params are updated
func EmitStoringErrorEvent ¶
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 ¶
EmitSudoErrorCallbackFailedEvent emits an event when a callback for a sudo error fails
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 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)
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) 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 (*Params) Descriptor ¶
func (*Params) GetErrorStoredTime ¶
func (*Params) GetSubscriptionFee ¶
func (*Params) GetSubscriptionPeriod ¶
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 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 ¶
Bytes returns the json encoding of the sudo callback which is sent to the contract
func (*SudoError) Descriptor ¶
func (*SudoError) GetContractAddress ¶
func (*SudoError) GetErrorCode ¶
func (*SudoError) GetErrorMessage ¶
func (*SudoError) GetInputPayload ¶
func (*SudoError) GetModuleName ¶
func (*SudoError) MarshalToSizedBuffer ¶
func (*SudoError) ProtoMessage ¶
func (*SudoError) ProtoMessage()
func (*SudoError) XXX_DiscardUnknown ¶
func (m *SudoError) XXX_DiscardUnknown()
func (*SudoError) XXX_Marshal ¶
func (*SudoError) XXX_Unmarshal ¶
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 (m *SudoErrorCallbackFailedEvent) GetError() SudoError
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 (m *SudoErrorCallbackFailedEvent) String() 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 ¶
NewSudoMsg creates a new SudoMsg instance.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) SubscribeToError ¶
func (*UnimplementedMsgServer) SubscribeToError(ctx context.Context, req *MsgSubscribeToError) (*MsgSubscribeToErrorResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Errors ¶
func (*UnimplementedQueryServer) Errors(ctx context.Context, req *QueryErrorsRequest) (*QueryErrorsResponse, error)
func (*UnimplementedQueryServer) IsSubscribed ¶
func (*UnimplementedQueryServer) IsSubscribed(ctx context.Context, req *QueryIsSubscribedRequest) (*QueryIsSubscribedResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
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