Documentation ¶
Index ¶
- Constants
- Variables
- func MakeCodec() *codec.Codec
- func SetAddressPrefixes()
- type CommercioNetworkApp
- func (app *CommercioNetworkApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *CommercioNetworkApp) BlacklistedModuleAccAddrs() map[string]bool
- func (app *CommercioNetworkApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *CommercioNetworkApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *CommercioNetworkApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *CommercioNetworkApp) LoadHeight(height int64) error
- func (app *CommercioNetworkApp) ModuleAccountAddrs() map[string]bool
Constants ¶
View Source
const ( DefaultBondDenom = "ucommercio" StableCreditsDenom = "uccc" // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address Bech32MainPrefix = "did:com:" // PrefixValidator is the prefix for validator keys PrefixValidator = "val" // PrefixConsensus is the prefix for consensus keys PrefixConsensus = "cons" // PrefixPublic is the prefix for public keys PrefixPublic = "pub" // PrefixOperator is the prefix for operator keys PrefixOperator = "oper" // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address Bech32PrefixAccAddr = Bech32MainPrefix // Bech32PrefixAccPub defines the Bech32 prefix of an account's public key Bech32PrefixAccPub = Bech32MainPrefix + PrefixPublic // Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address Bech32PrefixValAddr = Bech32MainPrefix + PrefixValidator + PrefixOperator // Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key Bech32PrefixValPub = Bech32MainPrefix + PrefixValidator + PrefixOperator + PrefixPublic // Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address Bech32PrefixConsAddr = Bech32MainPrefix + PrefixValidator + PrefixConsensus // Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key Bech32PrefixConsPub = Bech32MainPrefix + PrefixValidator + PrefixConsensus + PrefixPublic )
Variables ¶
View Source
var ( DefaultCLIHome = os.ExpandEnv("$HOME/.cncli") DefaultNodeHome = os.ExpandEnv("$HOME/.cnd") ModuleBasics = module.NewBasicManager( genutil.AppModuleBasic{}, auth.AppModuleBasic{}, staking.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic(paramsclient.ProposalHandler, distr.ProposalHandler), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, supply.AppModuleBasic{}, customcrisis.NewAppModuleBasic(DefaultBondDenom), customgov.NewAppModuleBasic(DefaultBondDenom), customstaking.NewAppModuleBasic(DefaultBondDenom), custombank.NewAppModuleBasic(bank.AppModuleBasic{}), docs.AppModuleBasic{}, government.AppModuleBasic{}, id.AppModuleBasic{}, memberships.NewAppModuleBasic(StableCreditsDenom), commerciomint.NewAppModuleBasic(StableCreditsDenom), pricefeed.AppModuleBasic{}, vbr.AppModuleBasic{}, ) )
default home directories for expected binaries
Functions ¶
func SetAddressPrefixes ¶
func SetAddressPrefixes()
Types ¶
type CommercioNetworkApp ¶ added in v1.1.0
Extended ABCI application
func NewCommercioNetworkApp ¶
func NewCommercioNetworkApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, invCheckPeriod uint, baseAppOptions ...func(*bam.BaseApp)) *CommercioNetworkApp
NewCommercioNetworkApp returns a reference to an initialized CommercioNetworkApp.
func (*CommercioNetworkApp) BeginBlocker ¶ added in v1.1.0
func (app *CommercioNetworkApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
application updates every begin block
func (*CommercioNetworkApp) BlacklistedModuleAccAddrs ¶ added in v1.3.2
func (app *CommercioNetworkApp) BlacklistedModuleAccAddrs() map[string]bool
BlacklistedModuleAccAddrs returns all the app's module account addresses that are black listed from received tokens from the users.
func (*CommercioNetworkApp) EndBlocker ¶ added in v1.1.0
func (app *CommercioNetworkApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
application updates every end block
func (*CommercioNetworkApp) ExportAppStateAndValidators ¶ added in v1.1.0
func (app *CommercioNetworkApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) ( appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
export the state of gaia for a genesis file
func (*CommercioNetworkApp) InitChainer ¶ added in v1.1.0
func (app *CommercioNetworkApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
application update at chain initialization
func (*CommercioNetworkApp) LoadHeight ¶ added in v1.1.0
func (app *CommercioNetworkApp) LoadHeight(height int64) error
load a particular height
func (*CommercioNetworkApp) ModuleAccountAddrs ¶ added in v1.1.0
func (app *CommercioNetworkApp) ModuleAccountAddrs() map[string]bool
ModuleAccountAddrs returns all the app's module account addresses.
Click to show internal directories.
Click to hide internal directories.