Versions in this module Expand all Collapse all v0 v0.7.1 Oct 12, 2017 v0.7.0 Oct 11, 2017 Changes in this version + const ByteCredit + const ByteSend + const CostCredit + const CostSend + const NameCoin + const TypeCredit + const TypeSend + func ChainAddr(addr sdk.Actor) sdk.Actor + func ErrInsufficientCredit() errors.TMError + func ErrInsufficientFunds() errors.TMError + func ErrInvalidAddress() errors.TMError + func ErrInvalidCoins() errors.TMError + func ErrNoAccount() errors.TMError + func ErrNoInputs() errors.TMError + func ErrNoOutputs() errors.TMError + func IsAddressErr(err error) bool + func IsCoinErr(err error) bool + func IsInputErr(err error) bool + func IsInsufficientCreditErr(err error) bool + func IsInsufficientFundsErr(err error) bool + func IsInvalidAddressErr(err error) bool + func IsInvalidCoinsErr(err error) bool + func IsNoAccountErr(err error) bool + func IsNoInputsErr(err error) bool + func IsNoOutputsErr(err error) bool + func IsOutputErr(err error) bool + func NewCreditTx(debitor sdk.Actor, credit Coins) sdk.Tx + func NewSendOneTx(sender, recipient sdk.Actor, amount Coins) sdk.Tx + func NewSendTx(in []TxInput, out []TxOutput) sdk.Tx + type Account struct + Coins Coins + Credit Coins + func GetAccount(store state.SimpleDB, addr sdk.Actor) (Account, error) + type AccountWithKey struct + Key crypto.PrivKey + Sequence uint32 + func NewAccountWithKey(coins Coins) *AccountWithKey + func (a *AccountWithKey) Actor() sdk.Actor + func (a *AccountWithKey) Address() []byte + func (a *AccountWithKey) MakeOption() string + func (a *AccountWithKey) NextSequence() uint32 + type Coin struct + Amount int64 + Denom string + func ParseCoin(str string) (Coin, error) + func (coin Coin) IsGTE(other Coin) bool + func (coin Coin) IsZero() bool + func (coin Coin) String() string + type Coins []Coin + func ChangeCoins(store state.SimpleDB, addr sdk.Actor, coins Coins) (Coins, error) + func CheckCoins(store state.SimpleDB, addr sdk.Actor, coins Coins) (Coins, error) + func ParseCoins(str string) (Coins, error) + func (coins Coins) IsEqual(coinsB Coins) bool + func (coins Coins) IsGTE(coinsB Coins) bool + func (coins Coins) IsNonnegative() bool + func (coins Coins) IsPositive() bool + func (coins Coins) IsValid() bool + func (coins Coins) IsZero() bool + func (coins Coins) Len() int + func (coins Coins) Less(i, j int) bool + func (coins Coins) Minus(coinsB Coins) Coins + func (coins Coins) Negative() Coins + func (coins Coins) Plus(coinsB Coins) Coins + func (coins Coins) Sort() + func (coins Coins) String() string + func (coins Coins) Swap(i, j int) + type CreditTx struct + Credit Coins + Debitor sdk.Actor + func (tx CreditTx) ValidateBasic() error + func (tx CreditTx) Wrap() sdk.Tx + type GenesisAccount struct + Address data.Bytes + Balance Coins + PubKey crypto.PubKey + func (g GenesisAccount) GetAddr() ([]byte, error) + func (g GenesisAccount) ToAccount() Account + type Handler struct + func NewHandler() Handler + func (Handler) AssertDispatcher() + func (Handler) Name() string + func (h Handler) CheckTx(ctx sdk.Context, store state.SimpleDB, tx sdk.Tx, _ sdk.Checker) (res sdk.CheckResult, err error) + func (h Handler) DeliverTx(ctx sdk.Context, store state.SimpleDB, tx sdk.Tx, cb sdk.Deliver) (res sdk.DeliverResult, err error) + func (h Handler) InitState(l log.Logger, store state.SimpleDB, module, key, value string, ...) (log string, err error) + type HandlerInfo struct + Issuer sdk.Actor + type SendTx struct + Inputs []TxInput + Outputs []TxOutput + func (tx SendTx) String() string + func (tx SendTx) ValidateBasic() error + func (tx SendTx) Wrap() sdk.Tx + type TxInput struct + Address sdk.Actor + Coins Coins + func NewTxInput(addr sdk.Actor, coins Coins) TxInput + func (txIn TxInput) String() string + func (txIn TxInput) ValidateBasic() error + type TxOutput struct + Address sdk.Actor + Coins Coins + func NewTxOutput(addr sdk.Actor, coins Coins) TxOutput + func (txOut TxOutput) String() string + func (txOut TxOutput) ValidateBasic() error