service

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 20 Imported by: 2

README

service

IRIS Service (iService)

Documentation

Index

Constants

View Source
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

View Source
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

func EndBlocker(ctx sdk.Context, k Keeper)

EndBlocker handles block ending logic for service

func InitGenesis

func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState)

InitGenesis - store genesis parameters

func NewHandler

func NewHandler(k Keeper) sdk.Handler

NewHandler creates an sdk.Handler for all the service type messages

func PrepForZeroHeightGenesis

func PrepForZeroHeightGenesis(ctx sdk.Context, k Keeper)

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) Name

func (AppModule) Name() string

Name returns the service module's name.

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns an sdk.Handler for the service module.

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns the service module sdk.Querier.

func (AppModule) ProposalContents

ProposalContents doesn't return any content functions for governance proposals.

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

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) Route

func (AppModule) Route() string

Route returns the message routing key for the service module.

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 Keeper

type Keeper = keeper.Keeper

type MockToken

type MockToken = types.MockToken

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 Request

type Request = types.Request

type RequestContext

type RequestContext = types.RequestContext

type Response

type Response = types.Response

type ServiceBinding

type ServiceBinding = types.ServiceBinding

type ServiceDefinition

type ServiceDefinition = types.ServiceDefinition

type TokenI

type TokenI = types.TokenI

Directories

Path Synopsis
app
params
Package params defines the simulation parameters in the simapp.
Package params defines the simulation parameters in the simapp.
client
cli
nolint
nolint

Jump to

Keyboard shortcuts

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