service

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: Apache-2.0 Imports: 17 Imported by: 2

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

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

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

func EndBlocker(ctx sdk.Context, keeper Keeper)

EndBlocker handles block ending logic

func InitGenesis

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

InitGenesis - store genesis parameters

func NewHandler

func NewHandler(k Keeper) sdk.Handler

NewHandler returns a handler for all the "service" type messages

func PrepForZeroHeightGenesis

func PrepForZeroHeightGenesis(ctx sdk.Context, k Keeper)

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

func NewAppModule(keeper Keeper) AppModule

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

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

func (AppModule) QuerierRoute() string

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.

func (AppModule) Route

func (AppModule) Route() string

Route returns the message routing key for the service module.

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 Keeper

type Keeper = keeper.Keeper

type Level

type Level = types.Level

type MessagingType

type MessagingType = types.MessagingType

type MethodProperty

type MethodProperty = types.MethodProperty

type Metrics

type Metrics = types.Metrics

type MsgSvcBind

type MsgSvcBind = types.MsgSvcBind

type MsgSvcBindingUpdate

type MsgSvcBindingUpdate = types.MsgSvcBindingUpdate

type MsgSvcDef

type MsgSvcDef = types.MsgSvcDef

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 Params

type Params = types.Params

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 SvcDef

type SvcDef = types.SvcDef

type SvcRequest

type SvcRequest = types.SvcRequest

type SvcResponse

type SvcResponse = types.SvcResponse

Directories

Path Synopsis
client
cli
internal

Jump to

Keyboard shortcuts

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