Documentation ¶
Index ¶
- Constants
- Variables
- func EndBlocker(ctx sdk.Context, k 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 (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONMarshaler) json.RawMessage
- func (AppModule) GenerateGenesisState(simState *module.SimulationState)
- func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONMarshaler, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent
- func (AppModule) QuerierRoute() string
- func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
- func (AppModule) Route() string
- func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis(cdc codec.JSONMarshaler) 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(cdc codec.JSONMarshaler, bz json.RawMessage) error
- type GenesisState
- type Keeper
- type MockToken
- type MockTokenKeeper
- type MsgBindService
- type MsgCallService
- type MsgDefineService
- type MsgDisableServiceBinding
- type MsgEnableServiceBinding
- type MsgKillRequestContext
- type MsgPauseRequestContext
- type MsgRefundServiceDeposit
- type MsgRespondService
- type MsgSetWithdrawAddress
- type MsgStartRequestContext
- type MsgUpdateRequestContext
- type MsgUpdateServiceBinding
- type MsgWithdrawEarnedFees
- type QueryBindingParams
- type QueryBindingsParams
- type QueryDefinitionParams
- type QueryWithdrawAddressParams
- type Request
- type RequestContext
- type Response
- type ServiceBinding
- type ServiceDefinition
- type TokenI
Constants ¶
const ( ModuleName = types.ModuleName StoreKey = types.StoreKey QuerierRoute = types.QuerierRoute RouterKey = types.RouterKey DefaultParamspace = types.DefaultParamspace DepositAccName = types.DepositAccName RequestAccName = types.RequestAccName QueryDefinition = types.QueryDefinition QueryBinding = types.QueryBinding QueryBindings = types.QueryBindings QueryWithdrawAddress = types.QueryWithdrawAddress EventTypeCreateContext = types.EventTypeCreateContext EventTypePauseContext = types.EventTypePauseContext EventTypeCompleteContext = types.EventTypeCompleteContext EventTypeNewBatch = types.EventTypeNewBatch EventTypeNewBatchRequest = types.EventTypeNewBatchRequest EventTypeCompleteBatch = types.EventTypeCompleteBatch AttributeValueCategory = types.AttributeValueCategory AttributeKeyAuthor = types.AttributeKeyAuthor AttributeKeyServiceName = types.AttributeKeyServiceName AttributeKeyProvider = types.AttributeKeyProvider AttributeKeyConsumer = types.AttributeKeyConsumer AttributeKeyRequestContextID = types.AttributeKeyRequestContextID AttributeKeyRequestID = types.AttributeKeyRequestID AttributeKeyServiceFee = types.AttributeKeyServiceFee AttributeKeyRequestHeight = types.AttributeKeyRequestHeight AttributeKeyExpirationHeight = types.AttributeKeyExpirationHeight AttributeKeySlashedCoins = types.AttributeKeySlashedCoins RUNNING = types.RUNNING PAUSED = types.PAUSED COMPLETED = types.COMPLETED BATCHRUNNING = types.BATCHRUNNING BATCHCOMPLETED = types.BATCHCOMPLETED )
Variables ¶
var ( NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier ModuleCdc = types.ModuleCdc RegisterCodec = types.RegisterCodec DefaultGenesisState = types.DefaultGenesisState ValidateGenesis = types.ValidateGenesis NewGenesisState = types.NewGenesisState )
Functions ¶
func EndBlocker ¶
EndBlocker handles block ending logic for service
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState)
InitGenesis - store genesis parameters
func NewHandler ¶
NewHandler creates an sdk.Handler for all the service type messages
func PrepForZeroHeightGenesis ¶
PrepForZeroHeightGenesis refunds the deposits, service fees and earned fees
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements an application module for the service module.
func NewAppModule ¶
func NewAppModule(keeper Keeper, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper) AppModule
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
BeginBlock returns the begin blocker for the service module.
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, req 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, cdc codec.JSONMarshaler) json.RawMessage
ExportGenesis returns the exported genesis state as raw bytes for the service module.
func (AppModule) GenerateGenesisState ¶
func (AppModule) GenerateGenesisState(simState *module.SimulationState)
GenerateGenesisState creates a randomized GenState of the service module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONMarshaler, 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) ProposalContents ¶
func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalContent
ProposalContents doesn't return any content functions for governance proposals.
func (AppModule) QuerierRoute ¶
QuerierRoute returns the service module's querier route name.
func (AppModule) RandomizedParams ¶
func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange
RandomizedParams creates randomized service param changes for the simulator.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers the service module invariants.
func (AppModule) RegisterStoreDecoder ¶
func (am AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)
RegisterStoreDecoder registers a decoder for service module's types
func (AppModule) WeightedOperations ¶
func (am AppModule) WeightedOperations(simState module.SimulationState) []simtypes.WeightedOperation
WeightedOperations returns the all the staking module operations with their respective weights.
type AppModuleBasic ¶
type AppModuleBasic struct {
// contains filtered or unexported fields
}
AppModuleBasic defines the basic application module used by the service module.
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONMarshaler) 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 the 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(cdc codec.JSONMarshaler, bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the service module.
type GenesisState ¶
type GenesisState = types.GenesisState
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState
ExportGenesis - output genesis parameters
type MockTokenKeeper ¶
type MockTokenKeeper = keeper.MockTokenKeeper
type MsgBindService ¶
type MsgBindService = types.MsgBindService
type MsgCallService ¶
type MsgCallService = types.MsgCallService
type MsgDefineService ¶
type MsgDefineService = types.MsgDefineService
type MsgDisableServiceBinding ¶
type MsgDisableServiceBinding = types.MsgDisableServiceBinding
type MsgEnableServiceBinding ¶
type MsgEnableServiceBinding = types.MsgEnableServiceBinding
type MsgKillRequestContext ¶
type MsgKillRequestContext = types.MsgKillRequestContext
type MsgPauseRequestContext ¶
type MsgPauseRequestContext = types.MsgPauseRequestContext
type MsgRefundServiceDeposit ¶
type MsgRefundServiceDeposit = types.MsgRefundServiceDeposit
type MsgRespondService ¶
type MsgRespondService = types.MsgRespondService
type MsgSetWithdrawAddress ¶
type MsgSetWithdrawAddress = types.MsgSetWithdrawAddress
type MsgStartRequestContext ¶
type MsgStartRequestContext = types.MsgStartRequestContext
type MsgUpdateRequestContext ¶
type MsgUpdateRequestContext = types.MsgUpdateRequestContext
type MsgUpdateServiceBinding ¶
type MsgUpdateServiceBinding = types.MsgUpdateServiceBinding
type MsgWithdrawEarnedFees ¶
type MsgWithdrawEarnedFees = types.MsgWithdrawEarnedFees
type QueryBindingParams ¶
type QueryBindingParams = types.QueryBindingParams
type QueryBindingsParams ¶
type QueryBindingsParams = types.QueryBindingsParams
type QueryDefinitionParams ¶
type QueryDefinitionParams = types.QueryDefinitionParams
type QueryWithdrawAddressParams ¶
type QueryWithdrawAddressParams = types.QueryWithdrawAddressParams
type RequestContext ¶
type RequestContext = types.RequestContext
type ServiceBinding ¶
type ServiceBinding = types.ServiceBinding
type ServiceDefinition ¶
type ServiceDefinition = types.ServiceDefinition