app

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultCLIHome = os.ExpandEnv("$HOME/.shareledgercli")
)

Functions

func BeginBlocker

func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) (res abci.ResponseBeginBlock)

func GetHandler

func GetHandler() sdk.Handler

func MakeCodec

func MakeCodec() *amino.Codec

Types

type GenesisAccount

type GenesisAccount struct {
	Address sdk.AccAddress `json:"address"`
	Coins   types.Coins    `json:"coins"`
}

GenesisAccount doesn't need pubkey or sequence

func NewGenesisAccount

func NewGenesisAccount(acc *auth.SHRAccount) GenesisAccount

func (*GenesisAccount) ToSHRAccount

func (ga *GenesisAccount) ToSHRAccount() (acc *auth.SHRAccount)

convert GenesisAccount to auth.BaseAccount

type GenesisState

type GenesisState struct {
	Accounts  []GenesisAccount `json:"accounts"`
	StakeData pos.GenesisState `json:"stake"`
}

State to Unmarshal

func GenerateGenesisState

func GenerateGenesisState(pubKey types.PubKeySecp256k1) GenesisState

func (*GenesisState) ToJSON

func (gs *GenesisState) ToJSON() []byte

type ShareLedgerApp

type ShareLedgerApp struct {
	*bapp.BaseApp
	// contains filtered or unexported fields
}

func NewShareLedgerApp

func NewShareLedgerApp(logger log.Logger, db dbm.DB) *ShareLedgerApp

func (*ShareLedgerApp) InitChainer

func (*ShareLedgerApp) SetupAsset

func (app *ShareLedgerApp) SetupAsset(assetKey *sdk.KVStoreKey)

func (*ShareLedgerApp) SetupBank

func (app *ShareLedgerApp) SetupBank(am auth.AccountMapper)

func (*ShareLedgerApp) SetupBooking

func (app *ShareLedgerApp) SetupBooking(bookingKey *sdk.KVStoreKey,
	assetKey *sdk.KVStoreKey, am auth.AccountMapper)

func (*ShareLedgerApp) SetupExchange

func (app *ShareLedgerApp) SetupExchange(exchangeKey *sdk.KVStoreKey, am auth.AccountMapper)

func (*ShareLedgerApp) SetupPOS

func (app *ShareLedgerApp) SetupPOS(posKey *sdk.KVStoreKey,
	am auth.AccountMapper)

type TestShareLedgerApp

type TestShareLedgerApp struct {
	*bapp.BaseApp
	// contains filtered or unexported fields
}

func NewTestShareLedgerApp

func NewTestShareLedgerApp(logger log.Logger, db dbm.DB) *TestShareLedgerApp

func (*TestShareLedgerApp) SetupBank

func (app *TestShareLedgerApp) SetupBank(am auth.AccountMapper)

Jump to

Keyboard shortcuts

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