Documentation ¶
Index ¶
- Constants
- Variables
- func CheckAccountOperator(ctx sdk.Context, address sdk.AccAddress, k Keeper) error
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
- func IsAccountOperator(ctx sdk.Context, address sdk.AccAddress, k Keeper) bool
- func IsAuthority(ctx sdk.Context, address sdk.AccAddress, k Keeper) bool
- func IsDocIssuer(ctx sdk.Context, address sdk.AccAddress, k Keeper) bool
- func IsIdSigner(ctx sdk.Context, address sdk.AccAddress, k Keeper) bool
- func IsSHRPLoader(ctx sdk.Context, address sdk.AccAddress, k Keeper) bool
- func IsTreasurer(ctx sdk.Context, address sdk.AccAddress, k Keeper) bool
- func NewHandler(keeper Keeper) sdk.Handler
- func ValidateGenesis(data GenesisState) error
- type AccState
- type AppModule
- func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (am AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() 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(bz json.RawMessage) error
- type GenesisState
- type Keeper
- type MsgBurnSHR
- type MsgBurnSHRP
- type MsgBuyCent
- type MsgBuySHR
- type MsgEnrollAccOperators
- type MsgEnrollDocIssuers
- type MsgEnrollIDSigners
- type MsgEnrollSHRPLoader
- type MsgLoadSHR
- type MsgLoadSHRP
- type MsgRevokeAccOperators
- type MsgRevokeDocIssuers
- type MsgRevokeIDSigners
- type MsgRevokeSHRPLoader
- type MsgSendSHR
- type MsgSendSHRP
- type MsgSetExchange
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 InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
func IsAccountOperator ¶
func IsAuthority ¶
func IsDocIssuer ¶
func IsIdSigner ¶
func IsSHRPLoader ¶
func IsTreasurer ¶
func NewHandler ¶
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
func NewAppModule ¶
NewAppModule creates a new AppModule Object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
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) NewHandler ¶
func (AppModule) NewQuerierHandler ¶
func (AppModule) QuerierRoute ¶
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
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 MsgBurnSHR ¶
type MsgBurnSHR = types.MsgBurnSHR
type MsgBurnSHRP ¶
type MsgBurnSHRP = types.MsgBurnSHRP
type MsgBuyCent ¶
type MsgBuyCent = types.MsgBuyCent
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.