app

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 39 Imported by: 1

Documentation

Index

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

default home directories for expected binaries

Functions

func MakeCodec

func MakeCodec() *codec.Codec

custom tx codec

func SetAddressPrefixes

func SetAddressPrefixes()

Types

type CommercioNetworkApp added in v1.1.0

type CommercioNetworkApp struct {
	*bam.BaseApp
	// contains filtered or unexported fields
}

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

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

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

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.

Jump to

Keyboard shortcuts

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