gentlemint

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName              = types.ModuleName
	RouterKey               = types.RouterKey
	StoreKey                = types.StoreKey
	QuerierRoute            = types.QuerierRoute
	TypeLoadSHRMsg          = types.TypeLoadSHRMsg
	TypeLoadSHRPMsg         = types.TypeLoadSHRPMsg
	TypeBuyCentMsg          = types.TypeBuyCent
	TypeBurnSHRPMsg         = types.TypeBurnSHRPMsg
	TypeBurnSHRMsg          = types.TypeBurnSHRMsg
	TypeEnrollSHRPLoaderMsg = types.TypeEnrollSHRPLoaderMsg
	TypeRevokeSHRPLoaderMsg = types.TypeRevokeSHRPLoaderMsg
	TypeBuySHRMsg           = types.TypeBuySHRMsg
	TypeSetExchangeMsg      = types.TypeMsgSetExchange
	TypesSendSHRP           = types.TypeMsgSendSHRP
	TypeSendSHR             = types.TypeMsgSendSHR

	IdSignerPrefix = types.IdSignerPrefix
	ActiveStatus   = types.Active
	InactiveStatus = types.Inactive

	TypeEnrollIDSignersMsg = types.TypeEnrollIDSignersMsg
	TypeRevokeIDSignersMsg = types.TypeRevokeIDSignersMsg
)
View Source
const (
	ShrpLoaderPrefix = "shrploader"
)

Variables

View Source
var (
	NewKeeper         = keeper.NewKeeper
	NewQuerier        = keeper.NewQuerier
	NewMsgLoadSHR     = types.NewMsgLoadSHR
	NewMsgBurnSHRP    = types.NewMsgBurnSHRP
	NewMsgBurnSHR     = types.NewMsgBurnSHR
	NewMsgBuySHR      = types.NewMsgBuySHR
	NewMsgSetExchange = types.NewMsgSetExchange
	NewMsgSendSHRP    = types.NewMsgSendSHRP
	NewMsgSendSHR     = types.NewMsgSendSHR
	ModuleCdc         = types.ModuleCdc
	RegisterCodec     = types.RegisterCodec
	ParseCoinStr      = types.ParseCoinStr
)

Functions

func CheckAccountOperator

func CheckAccountOperator(ctx sdk.Context, address sdk.AccAddress, k Keeper) error

func InitGenesis

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

func IsAccountOperator

func IsAccountOperator(ctx sdk.Context, address sdk.AccAddress, k Keeper) bool

func IsAuthority

func IsAuthority(ctx sdk.Context, address sdk.AccAddress, k Keeper) bool

func IsDocIssuer

func IsDocIssuer(ctx sdk.Context, address sdk.AccAddress, k Keeper) bool

func IsIdSigner

func IsIdSigner(ctx sdk.Context, address sdk.AccAddress, k Keeper) bool

func IsSHRPLoader

func IsSHRPLoader(ctx sdk.Context, address sdk.AccAddress, k Keeper) bool

func IsTreasurer

func IsTreasurer(ctx sdk.Context, address sdk.AccAddress, k Keeper) bool

func NewHandler

func NewHandler(keeper Keeper) sdk.Handler

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

Types

type AccState

type AccState = types.AccState

type AppModule

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

func NewAppModule

func NewAppModule(k Keeper, ak auth.AccountKeeper, sk supply.Keeper) AppModule

NewAppModule creates a new AppModule Object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)

func (AppModule) EndBlock

func (AppModule) ExportGenesis

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

func (AppModule) InitGenesis

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

func (AppModule) Name

func (AppModule) Name() string

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

func (AppModule) Route

func (am AppModule) Route() string

type AppModuleBasic

type AppModuleBasic struct{}

app module Basics object

func (AppModuleBasic) DefaultGenesis

func (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 (AppModuleBasic) Name() string

func (AppModuleBasic) RegisterCodec

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

func (AppModuleBasic) RegisterRESTRoutes

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

Register rest routes

func (AppModuleBasic) ValidateGenesis

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

Validation check of the Genesis

type GenesisState

type GenesisState struct {
	LoaderKeys   []string `json:"loader_keys"`
	ExchangeRate string   `json:"exchange_rate"`

	Authority        string           `json:"authority"`
	Treasurer        string           `json:"treasurer"`
	IdSigners        []types.AccState `json:"id_signers"`
	DocumentIssuer   []types.AccState `json:"document_issuer"`
	AccountOperators []types.AccState `json:"account_operators"`
}

func DefaultGenesisState

func DefaultGenesisState() GenesisState

func ExportGenesis

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

func GetGenesisStateFromAppState

func GetGenesisStateFromAppState(cdc *codec.Codec, appState map[string]json.RawMessage) GenesisState

func NewGenesisState

func NewGenesisState() GenesisState

type Keeper

type Keeper = keeper.Keeper

type MsgBurnSHR

type MsgBurnSHR = types.MsgBurnSHR

type MsgBurnSHRP

type MsgBurnSHRP = types.MsgBurnSHRP

type MsgBuyCent

type MsgBuyCent = types.MsgBuyCent

type MsgBuySHR

type MsgBuySHR = types.MsgBuySHR

type MsgEnrollAccOperators

type MsgEnrollAccOperators = types.MsgEnrollAccOperators

type MsgEnrollDocIssuers

type MsgEnrollDocIssuers = types.MsgEnrollDocIssuers

type MsgEnrollIDSigners

type MsgEnrollIDSigners = types.MsgEnrollIDSigners

type MsgEnrollSHRPLoader

type MsgEnrollSHRPLoader = types.MsgEnrollSHRPLoaders

type MsgLoadSHR

type MsgLoadSHR = types.MsgLoadSHR

type MsgLoadSHRP

type MsgLoadSHRP = types.MsgLoadSHRP

type MsgRevokeAccOperators

type MsgRevokeAccOperators = types.MsgRevokeAccOperators

type MsgRevokeDocIssuers

type MsgRevokeDocIssuers = types.MsgRevokeDocIssuers

type MsgRevokeIDSigners

type MsgRevokeIDSigners = types.MsgRevokeIDSigners

type MsgRevokeSHRPLoader

type MsgRevokeSHRPLoader = types.MsgRevokeSHRPLoaders

type MsgSendSHR

type MsgSendSHR = types.MsgSendSHR

type MsgSendSHRP

type MsgSendSHRP = types.MsgSendSHRP

type MsgSetExchange

type MsgSetExchange = types.MsgSetExchange

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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