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

      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

            application updates every begin block

            func (*CommercioNetworkApp) BlacklistedModuleAccAddrs

            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

                application updates every end block

                func (*CommercioNetworkApp) ExportAppStateAndValidators

                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

                    application update at chain initialization

                    func (*CommercioNetworkApp) LoadHeight

                    func (app *CommercioNetworkApp) LoadHeight(height int64) error

                      load a particular height

                      func (*CommercioNetworkApp) ModuleAccountAddrs

                      func (app *CommercioNetworkApp) ModuleAccountAddrs() map[string]bool

                        ModuleAccountAddrs returns all the app's module account addresses.

                        Source Files