Documentation
¶
Overview ¶
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/bianjieai/irita/modules/service/internal/keeper ALIASGEN: github.com/bianjieai/irita/modules/service/internal/types
Index ¶
- Constants
- Variables
- func EndBlocker(ctx sdk.Context, keeper Keeper)
- func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState)
- func NewHandler(k Keeper) sdk.Handler
- func PrepForZeroHeightGenesis(ctx sdk.Context, k Keeper)
- type AppModule
- func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type AppModuleSimulation
- type BindingType
- type DefinitionOutput
- type FeesOutput
- type GenesisState
- type IncomingFee
- type Keeper
- type Level
- type MessagingType
- type MethodProperty
- type Metrics
- type MsgSvcBind
- type MsgSvcBindingUpdate
- type MsgSvcDef
- type MsgSvcDisable
- type MsgSvcEnable
- type MsgSvcRefundDeposit
- type MsgSvcRefundFees
- type MsgSvcRequest
- type MsgSvcResponse
- type MsgSvcWithdrawFees
- type MsgSvcWithdrawTax
- type OutputCachedEnum
- type OutputPrivacyEnum
- type Params
- type QueryBindingParams
- type QueryBindingsParams
- type QueryDefinitionParams
- type QueryFeesParams
- type QueryRequestsParams
- type QueryResponseParams
- type ReturnedFee
- type SvcBinding
- type SvcDef
- type SvcRequest
- type SvcResponse
Constants ¶
const ( Global = types.Global Local = types.Local NoPrivacy = types.NoPrivacy PubKeyEncryption = types.PubKeyEncryption OffChainCached = types.OffChainCached NoCached = types.NoCached Unicast = types.Unicast Multicast = types.Multicast EventTypeRequestSvc = types.EventTypeRequestSvc EventTypeRespondSvc = types.EventTypeRespondSvc EventTypeSvcCallTimeout = types.EventTypeSvcCallTimeout AttributeKeyProvider = types.AttributeKeyProvider AttributeKeyConsumer = types.AttributeKeyConsumer AttributeKeyRequestID = types.AttributeKeyRequestID AttributeKeyServiceFee = types.AttributeKeyServiceFee AttributeKeySlashCoins = types.AttributeKeySlashCoins AttributeValueCategory = types.AttributeValueCategory ModuleName = types.ModuleName StoreKey = types.StoreKey QuerierRoute = types.QuerierRoute RouterKey = types.RouterKey DefaultParamspace = types.DefaultParamspace DepositAccName = types.DepositAccName RequestAccName = types.RequestAccName TaxAccName = types.TaxAccName MetricsSubsystem = types.MetricsSubsystem TypeMsgSvcDef = types.TypeMsgSvcDef TypeMsgSvcBind = types.TypeMsgSvcBind TypeMsgSvcBindingUpdate = types.TypeMsgSvcBindingUpdate TypeMsgSvcDisable = types.TypeMsgSvcDisable TypeMsgSvcEnable = types.TypeMsgSvcEnable TypeMsgSvcRefundDeposit = types.TypeMsgSvcRefundDeposit TypeMsgSvcRequest = types.TypeMsgSvcRequest TypeMsgSvcResponse = types.TypeMsgSvcResponse TypeMsgSvcRefundFees = types.TypeMsgSvcRefundFees TypeMsgSvcWithdrawFees = types.TypeMsgSvcWithdrawFees TypeMsgSvcWithdrawTax = types.TypeMsgSvcWithdrawTax MaxNameLength = types.MaxNameLength MaxChainIDLength = types.MaxChainIDLength MaxDescriptionLength = types.MaxDescriptionLength MaxTagCount = types.MaxTagCount MaxTagLength = types.MaxTagLength QueryDefinition = types.QueryDefinition QueryBinding = types.QueryBinding QueryBindings = types.QueryBindings QueryRequests = types.QueryRequests QueryResponse = types.QueryResponse QueryFees = types.QueryFees )
Variables ¶
var ( // functions aliases NewKeeper = keeper.NewKeeper ParamKeyTable = keeper.ParamKeyTable NewQuerier = keeper.NewQuerier NewSvcBinding = types.NewSvcBinding SvcBindingEqual = types.SvcBindingEqual BindingTypeFromString = types.BindingTypeFromString RegisterCodec = types.RegisterCodec NewSvcDef = types.NewSvcDef MessagingTypeFromString = types.MessagingTypeFromString OutputCachedEnumFromString = types.OutputCachedEnumFromString OutputPrivacyEnumFromString = types.OutputPrivacyEnumFromString ErrInvalidOutputPrivacyEnum = types.ErrInvalidOutputPrivacyEnum ErrInvalidOutputCachedEnum = types.ErrInvalidOutputCachedEnum ErrInvalidServiceName = types.ErrInvalidServiceName ErrSvcBindingExists = types.ErrSvcBindingExists ErrInvalidPriceCount = types.ErrInvalidPriceCount ErrRefundDeposit = types.ErrRefundDeposit ErrLtMinProviderDeposit = types.ErrLtMinProviderDeposit ErrLtServiceFee = types.ErrLtServiceFee ErrNotMatchingProvider = types.ErrNotMatchingProvider ErrNotMatchingReqChainID = types.ErrNotMatchingReqChainID NewGenesisState = types.NewGenesisState DefaultGenesisState = types.DefaultGenesisState ValidateGenesis = types.ValidateGenesis NewSvcRequest = types.NewSvcRequest ConvertRequestID = types.ConvertRequestID NewSvcResponse = types.NewSvcResponse NewReturnedFee = types.NewReturnedFee NewIncomingFee = types.NewIncomingFee GetServiceDefinitionKey = types.GetServiceDefinitionKey GetMethodPropertyKey = types.GetMethodPropertyKey GetMethodsSubspaceKey = types.GetMethodsSubspaceKey GetServiceBindingKey = types.GetServiceBindingKey GetBindingsSubspaceKey = types.GetBindingsSubspaceKey GetRequestKey = types.GetRequestKey GetActiveRequestKey = types.GetActiveRequestKey GetSubActiveRequestKey = types.GetSubActiveRequestKey GetResponseKey = types.GetResponseKey GetRequestsByExpirationIndexKeyByReq = types.GetRequestsByExpirationIndexKeyByReq GetRequestsByExpirationIndexKey = types.GetRequestsByExpirationIndexKey GetRequestsByExpirationPrefix = types.GetRequestsByExpirationPrefix GetReturnedFeeKey = types.GetReturnedFeeKey GetIncomingFeeKey = types.GetIncomingFeeKey PrometheusMetrics = types.PrometheusMetrics NopMetrics = types.NopMetrics NewMsgSvcDef = types.NewMsgSvcDef NewMsgSvcBind = types.NewMsgSvcBind NewMsgSvcBindingUpdate = types.NewMsgSvcBindingUpdate NewMsgSvcDisable = types.NewMsgSvcDisable NewMsgSvcEnable = types.NewMsgSvcEnable NewMsgSvcRefundDeposit = types.NewMsgSvcRefundDeposit NewMsgSvcRequest = types.NewMsgSvcRequest NewMsgSvcResponse = types.NewMsgSvcResponse NewMsgSvcRefundFees = types.NewMsgSvcRefundFees NewMsgSvcWithdrawFees = types.NewMsgSvcWithdrawFees NewMsgSvcWithdrawTax = types.NewMsgSvcWithdrawTax NewParams = types.NewParams DefaultParams = types.DefaultParams MustUnmarshalParams = types.MustUnmarshalParams UnmarshalParams = types.UnmarshalParams MethodToMethodProperty = types.MethodToMethodProperty // variable aliases ModuleCdc = types.ModuleCdc ServiceDefinitionKey = types.ServiceDefinitionKey MethodPropertyKey = types.MethodPropertyKey BindingPropertyKey = types.BindingPropertyKey RequestKey = types.RequestKey ResponseKey = types.ResponseKey RequestsByExpirationIndexKey = types.RequestsByExpirationIndexKey IntraTxCounterKey = types.IntraTxCounterKey ActiveRequestKey = types.ActiveRequestKey ReturnedFeeKey = types.ReturnedFeeKey IncomingFeeKey = types.IncomingFeeKey ServiceFeeTaxKey = types.ServiceFeeTaxKey ServiceSlashFractionKey = types.ServiceSlashFractionKey DefaultMaxRequestTimeout = types.DefaultMaxRequestTimeout DefaultMinDepositMultiple = types.DefaultMinDepositMultiple DefaultServiceFeeTax = types.DefaultServiceFeeTax DefaultSlashFraction = types.DefaultSlashFraction DefaultComplaintRetrospect = types.DefaultComplaintRetrospect DefaultArbitrationTimeLimit = types.DefaultArbitrationTimeLimit DefaultTxSizeLimit = types.DefaultTxSizeLimit MinRequestTimeout = types.MinRequestTimeout MinDepositMultiple = types.MinDepositMultiple MaxDepositMultiple = types.MaxDepositMultiple MaxServiceFeeTax = types.MaxServiceFeeTax MaxSlashFraction = types.MaxSlashFraction MinComplaintRetrospect = types.MinComplaintRetrospect MaxComplaintRetrospect = types.MaxComplaintRetrospect MinArbitrationTimeLimit = types.MinArbitrationTimeLimit MaxArbitrationTimeLimit = types.MaxArbitrationTimeLimit MinTxSizeLimit = types.MinTxSizeLimit MaxTxSizeLimit = types.MaxTxSizeLimit KeyMaxRequestTimeout = types.KeyMaxRequestTimeout KeyMinDepositMultiple = types.KeyMinDepositMultiple KeyServiceFeeTax = types.KeyServiceFeeTax KeySlashFraction = types.KeySlashFraction KeyComplaintRetrospect = types.KeyComplaintRetrospect KeyArbitrationTimeLimit = types.KeyArbitrationTimeLimit KeyTxSizeLimit = types.KeyTxSizeLimit )
Functions ¶
func EndBlocker ¶
EndBlocker handles block ending logic
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState)
InitGenesis - store genesis parameters
func NewHandler ¶
NewHandler returns a handler for all the "service" type messages
func PrepForZeroHeightGenesis ¶
PrepForZeroHeightGenesis refunds all deposits, service fees, returned fees and incoming fees
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic AppModuleSimulation // contains filtered or unexported fields }
AppModule implements an application module for the service module.
func NewAppModule ¶
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
BeginBlock returns the begin blocker for the service module.
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock returns the end blocker for the service module. It returns no validator updates.
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis returns the exported genesis state as raw bytes for the service module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the service module. It returns no validator updates.
func (AppModule) NewHandler ¶
NewHandler returns an sdk.Handler for the service module.
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns the service module sdk.Querier.
func (AppModule) QuerierRoute ¶
QuerierRoute returns the service module's querier route name.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers the service module invariants.
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the service module.
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the service module.
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd returns no root query command for the service module.
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd returns the root tx command for the service module.
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name returns the service module's name.
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec registers the service module's types for the given codec.
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes registers the REST routes for the service module.
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the service module.
type AppModuleSimulation ¶
type AppModuleSimulation struct{}
AppModuleSimulation defines the module simulation functions used by the service module.
func (AppModuleSimulation) GenerateGenesisState ¶
func (AppModuleSimulation) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the service module.
func (AppModuleSimulation) RandomizedParams ¶
func (AppModuleSimulation) RandomizedParams(r *rand.Rand) []sim.ParamChange
RandomizedParams creates randomized service param changes for the simulator.
func (AppModuleSimulation) RegisterStoreDecoder ¶
func (AppModuleSimulation) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for service module's types
type BindingType ¶
type BindingType = types.BindingType
type DefinitionOutput ¶
type DefinitionOutput = types.DefinitionOutput
type FeesOutput ¶
type FeesOutput = types.FeesOutput
type GenesisState ¶
type GenesisState = types.GenesisState
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState
ExportGenesis - output genesis parameters
type IncomingFee ¶
type IncomingFee = types.IncomingFee
type MessagingType ¶
type MessagingType = types.MessagingType
type MethodProperty ¶
type MethodProperty = types.MethodProperty
type MsgSvcBind ¶
type MsgSvcBind = types.MsgSvcBind
type MsgSvcBindingUpdate ¶
type MsgSvcBindingUpdate = types.MsgSvcBindingUpdate
type MsgSvcDisable ¶
type MsgSvcDisable = types.MsgSvcDisable
type MsgSvcEnable ¶
type MsgSvcEnable = types.MsgSvcEnable
type MsgSvcRefundDeposit ¶
type MsgSvcRefundDeposit = types.MsgSvcRefundDeposit
type MsgSvcRefundFees ¶
type MsgSvcRefundFees = types.MsgSvcRefundFees
type MsgSvcRequest ¶
type MsgSvcRequest = types.MsgSvcRequest
type MsgSvcResponse ¶
type MsgSvcResponse = types.MsgSvcResponse
type MsgSvcWithdrawFees ¶
type MsgSvcWithdrawFees = types.MsgSvcWithdrawFees
type MsgSvcWithdrawTax ¶
type MsgSvcWithdrawTax = types.MsgSvcWithdrawTax
type OutputCachedEnum ¶
type OutputCachedEnum = types.OutputCachedEnum
type OutputPrivacyEnum ¶
type OutputPrivacyEnum = types.OutputPrivacyEnum
type QueryBindingParams ¶
type QueryBindingParams = types.QueryBindingParams
type QueryBindingsParams ¶
type QueryBindingsParams = types.QueryBindingsParams
type QueryDefinitionParams ¶
type QueryDefinitionParams = types.QueryDefinitionParams
type QueryFeesParams ¶
type QueryFeesParams = types.QueryFeesParams
type QueryRequestsParams ¶
type QueryRequestsParams = types.QueryRequestsParams
type QueryResponseParams ¶
type QueryResponseParams = types.QueryResponseParams
type ReturnedFee ¶
type ReturnedFee = types.ReturnedFee
type SvcBinding ¶
type SvcBinding = types.SvcBinding
type SvcRequest ¶
type SvcRequest = types.SvcRequest
type SvcResponse ¶
type SvcResponse = types.SvcResponse