Versions in this module Expand all Collapse all v0 v0.17.1 Sep 6, 2017 v0.17.0 Sep 4, 2017 v0.16.3 Apr 25, 2017 v0.16.2 Apr 20, 2017 v0.16.1 Apr 4, 2017 v0.16.0 Feb 28, 2017 v0.12.1 Jul 4, 2017 v0.12.0 Nov 14, 2016 Changes in this version + const EventDataTypeCall + const EventDataTypeFork + const EventDataTypeLog + const EventDataTypeNewBlock + const EventDataTypeNewBlockHeader + const EventDataTypeRoundState + const EventDataTypeTx + const EventDataTypeVote + const TxTypeBond + const TxTypeCall + const TxTypeDupeout + const TxTypeName + const TxTypePermissions + const TxTypeRebond + const TxTypeSend + const TxTypeUnbond + var ErrTxDuplicateAddress = errors.New("Error duplicate address") + var ErrTxInsufficientFunds = errors.New("Error insufficient funds") + var ErrTxInsufficientGasPrice = errors.New("Error insufficient gas price") + var ErrTxInvalidAddress = errors.New("Error invalid address") + var ErrTxInvalidAmount = errors.New("Error invalid amount") + var ErrTxInvalidPubKey = errors.New("Error invalid pubkey") + var ErrTxInvalidSignature = errors.New("Error invalid signature") + var ErrTxPermissionDenied = errors.New("Error permission denied") + var ErrTxUnknownPubKey = errors.New("Error unknown pubkey") + var MaxDataLength = 1 << 16 + var MaxNameLength = 64 + var MinNameRegistrationPeriod int = 5 + var NameBlockCostMultiplier int64 = 1 + var NameByteCostMultiplier int64 = 1 + func EncodeTx(tx Tx) ([]byte, error) + func EventStringAccCall(addr []byte) string + func EventStringAccInput(addr []byte) string + func EventStringAccOutput(addr []byte) string + func EventStringBond() string + func EventStringCompleteProposal() string + func EventStringDupeout() string + func EventStringFork() string + func EventStringLock() string + func EventStringLogEvent(addr []byte) string + func EventStringNameReg(name string) string + func EventStringNewBlock() string + func EventStringNewRound() string + func EventStringPermissions(name string) string + func EventStringPolka() string + func EventStringRebond() string + func EventStringRelock() string + func EventStringTimeoutPropose() string + func EventStringTimeoutWait() string + func EventStringUnbond() string + func EventStringUnlock() string + func EventStringVote() string + func NameBaseCost(name, data string) int64 + func NameCostPerBlock(baseCost int64) int64 + func NewContractAddress(caller []byte, nonce int) []byte + func TxHash(chainID string, tx Tx) []byte + type AccountGetter interface + GetAccount func(addr []byte) *acm.Account + type BondTx struct + Inputs []*TxInput + PubKey crypto.PubKeyEd25519 + Signature crypto.SignatureEd25519 + UnbondTo []*TxOutput + func NewBondTx(pubkey crypto.PubKey) (*BondTx, error) + func (tx *BondTx) AddInput(st AccountGetter, pubkey crypto.PubKey, amt int64) error + func (tx *BondTx) AddInputWithNonce(pubkey crypto.PubKey, amt int64, nonce int) error + func (tx *BondTx) AddOutput(addr []byte, amt int64) error + func (tx *BondTx) SignBond(chainID string, privAccount *acm.PrivAccount) error + func (tx *BondTx) SignInput(chainID string, i int, privAccount *acm.PrivAccount) error + func (tx *BondTx) String() string + func (tx *BondTx) WriteSignBytes(chainID string, w io.Writer, n *int, err *error) + type CallData struct + Callee []byte + Caller []byte + Data []byte + Gas int64 + Value int64 + type CallTx struct + Address []byte + Data []byte + Fee int64 + GasLimit int64 + Input *TxInput + func NewCallTx(st AccountGetter, from crypto.PubKey, to, data []byte, ...) (*CallTx, error) + func NewCallTxWithNonce(from crypto.PubKey, to, data []byte, amt, gasLimit, fee int64, nonce int) *CallTx + func (tx *CallTx) Sign(chainID string, privAccount *acm.PrivAccount) + func (tx *CallTx) String() string + func (tx *CallTx) WriteSignBytes(chainID string, w io.Writer, n *int, err *error) + type DupeoutTx struct + Address []byte + VoteA tendermint_types.Vote + VoteB tendermint_types.Vote + func (tx *DupeoutTx) String() string + func (tx *DupeoutTx) WriteSignBytes(chainID string, w io.Writer, n *int, err *error) + type ErrTxInvalidSequence struct + Expected int + Got int + func (e ErrTxInvalidSequence) Error() string + type ErrTxInvalidString struct + Msg string + func (e ErrTxInvalidString) Error() string + type EventData interface + AssertIsEventData func() + type EventDataCall struct + CallData *CallData + Exception string + Origin []byte + Return []byte + TxID []byte + func (_ EventDataCall) AssertIsEventData() + type EventDataLog struct + Address Word256 + Data []byte + Height int64 + Topics []Word256 + func (_ EventDataLog) AssertIsEventData() + type EventDataNewBlock struct + Block *tm_types.Block + func (_ EventDataNewBlock) AssertIsEventData() + type EventDataNewBlockHeader struct + Header *tm_types.Header + func (_ EventDataNewBlockHeader) AssertIsEventData() + type EventDataRoundState struct + CommitTime time.Time + CurrentTime time.Time + Height int + LockedBlock *tm_types.Block + LockedRound int + POLRound int + Proposal *tm_types.Proposal + ProposalBlock *tm_types.Block + Round int + StartTime time.Time + Step string + func (_ EventDataRoundState) AssertIsEventData() + type EventDataTx struct + Exception string + Return []byte + Tx Tx + func (_ EventDataTx) AssertIsEventData() + type EventDataVote struct + Address []byte + Index int + Vote *tm_types.Vote + func (_ EventDataVote) AssertIsEventData() + type NameTx struct + Data string + Fee int64 + Input *TxInput + Name string + func NewNameTx(st AccountGetter, from crypto.PubKey, name, data string, amt, fee int64) (*NameTx, error) + func NewNameTxWithNonce(from crypto.PubKey, name, data string, amt, fee int64, nonce int) *NameTx + func (tx *NameTx) Sign(chainID string, privAccount *acm.PrivAccount) + func (tx *NameTx) String() string + func (tx *NameTx) ValidateStrings() error + func (tx *NameTx) WriteSignBytes(chainID string, w io.Writer, n *int, err *error) + type PermissionsTx struct + Input *TxInput + PermArgs ptypes.PermArgs + func NewPermissionsTx(st AccountGetter, from crypto.PubKey, args ptypes.PermArgs) (*PermissionsTx, error) + func NewPermissionsTxWithNonce(from crypto.PubKey, args ptypes.PermArgs, nonce int) *PermissionsTx + func (tx *PermissionsTx) Sign(chainID string, privAccount *acm.PrivAccount) + func (tx *PermissionsTx) String() string + func (tx *PermissionsTx) WriteSignBytes(chainID string, w io.Writer, n *int, err *error) + type RebondTx struct + Address []byte + Height int + Signature crypto.SignatureEd25519 + func NewRebondTx(addr []byte, height int) *RebondTx + func (tx *RebondTx) Sign(chainID string, privAccount *acm.PrivAccount) + func (tx *RebondTx) String() string + func (tx *RebondTx) WriteSignBytes(chainID string, w io.Writer, n *int, err *error) + type Receipt struct + ContractAddr []byte + CreatesContract uint8 + TxHash []byte + func GenerateReceipt(chainId string, tx Tx) Receipt + type ResultListNames struct + BlockHeight int + Names []*core_types.NameRegEntry + type SendTx struct + Inputs []*TxInput + Outputs []*TxOutput + func NewSendTx() *SendTx + func (tx *SendTx) AddInput(st AccountGetter, pubkey crypto.PubKey, amt int64) error + func (tx *SendTx) AddInputWithNonce(pubkey crypto.PubKey, amt int64, nonce int) error + func (tx *SendTx) AddOutput(addr []byte, amt int64) error + func (tx *SendTx) SignInput(chainID string, i int, privAccount *acm.PrivAccount) error + func (tx *SendTx) String() string + func (tx *SendTx) WriteSignBytes(chainID string, w io.Writer, n *int, err *error) + type Tx interface + WriteSignBytes func(chainID string, w io.Writer, n *int, err *error) + func DecodeTx(txBytes []byte) (Tx, error) + type TxInput struct + Address []byte + Amount int64 + PubKey crypto.PubKey + Sequence int + Signature crypto.Signature + func (txIn *TxInput) String() string + func (txIn *TxInput) ValidateBasic() error + func (txIn *TxInput) WriteSignBytes(w io.Writer, n *int, err *error) + type TxOutput struct + Address []byte + Amount int64 + func (txOut *TxOutput) String() string + func (txOut *TxOutput) ValidateBasic() error + func (txOut *TxOutput) WriteSignBytes(w io.Writer, n *int, err *error) + type UnbondTx struct + Address []byte + Height int + Signature crypto.SignatureEd25519 + func NewUnbondTx(addr []byte, height int) *UnbondTx + func (tx *UnbondTx) Sign(chainID string, privAccount *acm.PrivAccount) + func (tx *UnbondTx) String() string + func (tx *UnbondTx) WriteSignBytes(chainID string, w io.Writer, n *int, err *error) + type UnconfirmedTxs struct + Txs []Tx v0.12.0-rc3 Oct 11, 2016