compliance

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName           = types.ModuleName
	RouterKey            = types.RouterKey
	StoreKey             = types.StoreKey
	Certified            = types.Certified
	Revoked              = types.Revoked
	CodeAlreadyCertifyed = types.CodeAlreadyCertifyed
)

Variables

View Source
var (
	NewKeeper                = keeper.NewKeeper
	NewQuerier               = keeper.NewQuerier
	NewMsgCertifyModel       = types.NewMsgCertifyModel
	NewMsgRevokeModel        = types.NewMsgRevokeModel
	ModuleCdc                = types.ModuleCdc
	RegisterCodec            = types.RegisterCodec
	CodeCertified            = types.CodeCertified
	CodeRevoked              = types.CodeRevoked
	ZigbeeCertificationType  = types.ZigbeeCertificationType
	MatterCertificationType  = types.MatterCertificationType
	CertificationTypesList   = types.CertificationTypesList
	IsValidCertificationType = types.IsValidCertificationType
)

Functions

func InitGenesis

func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) []abci.ValidatorUpdate

func NewHandler

func NewHandler(keeper keeper.Keeper, modelKeeper model.Keeper,
	compliancetestKeeper compliancetest.Keeper, authKeeper auth.Keeper) sdk.Handler

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

func NewAppModule

func NewAppModule(keeper Keeper, modelKeeper model.Keeper,
	compliancetestKeeper compliancetest.Keeper, authKeeper auth.Keeper) AppModule

func (AppModule) BeginBlock

func (a AppModule) BeginBlock(sdk.Context, abci.RequestBeginBlock)

func (AppModule) EndBlock

func (AppModule) ExportGenesis

func (a AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

func (AppModule) InitGenesis

func (a AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

func (AppModule) NewHandler

func (a AppModule) NewHandler() sdk.Handler

func (AppModule) NewQuerierHandler

func (a AppModule) NewQuerierHandler() sdk.Querier

func (AppModule) QuerierRoute

func (a AppModule) QuerierRoute() string

func (AppModule) RegisterInvariants

func (a AppModule) RegisterInvariants(sdk.InvariantRegistry)

func (AppModule) Route

func (a AppModule) Route() string

type AppModuleBasic

type AppModuleBasic struct{}

app module Basics object.

func (AppModuleBasic) DefaultGenesis

func (a AppModuleBasic) DefaultGenesis() json.RawMessage

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

Get the root query command of this module.

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

Get the root tx command of this module.

func (AppModuleBasic) Name

func (a AppModuleBasic) Name() string

func (AppModuleBasic) RegisterCodec

func (a AppModuleBasic) RegisterCodec(cdc *codec.Codec)

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)

Register rest routes.

func (AppModuleBasic) ValidateGenesis

func (a AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

type CertificationType

type CertificationType = types.CertificationType

type ComplianceInfo

type ComplianceInfo = types.ComplianceInfo

type ComplianceInfoInState

type ComplianceInfoInState = types.ComplianceInfoInState

type ComplianceInfoKey

type ComplianceInfoKey = types.ComplianceInfoKey

type ComplianceState

type ComplianceState = types.ComplianceState

type GenesisState

type GenesisState struct {
	ComplianceInfoRecords []ComplianceInfo `json:"compliance_model_records"`
}

func DefaultGenesisState

func DefaultGenesisState() GenesisState

func ExportGenesis

func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState

func NewGenesisState

func NewGenesisState() GenesisState

type Keeper

type Keeper = keeper.Keeper

type MsgCertifyModel

type MsgCertifyModel = types.MsgCertifyModel

type MsgRevokeModel

type MsgRevokeModel = types.MsgRevokeModel

type TestSetup

type TestSetup struct {
	Cdc                  *amino.Codec
	Ctx                  sdk.Context
	CompliancetKeeper    Keeper
	CompliancetestKeeper compliancetest.Keeper

	ModelKeeper         model.Keeper
	Handler             sdk.Handler
	Querier             sdk.Querier
	CertificationCenter sdk.AccAddress
	CertificationTypes  []CertificationType
	// contains filtered or unexported fields
}

func Setup

func Setup() TestSetup

Directories

Path Synopsis
client
cli
internal

Jump to

Keyboard shortcuts

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