Documentation ¶
Index ¶
- Variables
- func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) (res abci.ResponseBeginBlock)
- func EndBlocker(am auth.AccountMapper, keeper pKeeper.Keeper) sdk.EndBlocker
- func GetHandler() sdk.Handler
- func MakeCodec() *wire.Codec
- type GenesisAccount
- type GenesisState
- type ShareLedgerApp
- func (app *ShareLedgerApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *ShareLedgerApp) SetupAsset(assetKey *sdk.KVStoreKey)
- func (app *ShareLedgerApp) SetupBank(am auth.AccountMapper)
- func (app *ShareLedgerApp) SetupBooking(bookingKey *sdk.KVStoreKey, assetKey *sdk.KVStoreKey, am auth.AccountMapper)
- func (app *ShareLedgerApp) SetupExchange(exchangeKey *sdk.KVStoreKey, am auth.AccountMapper)
- func (app *ShareLedgerApp) SetupPOS(posKey *sdk.KVStoreKey, am auth.AccountMapper)
- type TestShareLedgerApp
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 EndBlocker ¶
func EndBlocker(am auth.AccountMapper, keeper pKeeper.Keeper) sdk.EndBlocker
application updates every end block
func GetHandler ¶
Types ¶
type GenesisAccount ¶
type GenesisAccount struct { Address sdk.Address `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 { // contains filtered or unexported fields }
func NewShareLedgerApp ¶
func NewShareLedgerApp(logger log.Logger, db dbm.DB) *ShareLedgerApp
func (*ShareLedgerApp) InitChainer ¶
func (app *ShareLedgerApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
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 { // 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)
Click to show internal directories.
Click to hide internal directories.