Versions in this module Expand all Collapse all v1 v1.1.1 Oct 29, 2019 Changes in this version + const ReceiptStatusFailed + const ReceiptStatusSuccessful + var ErrInvalidChainId = errors.New("invalid chain id for signer") + var ErrInvalidSig = errors.New("invalid transaction v, r, s values") + func CreateBloom(receipts Receipts) types.Bloom + func Sender(signer Signer, tx *Transaction) (types.Address, error) + type Action struct + Contract types.Address + Params []byte + func NewAction() *Action + func (a *Action) UnmarshalJSON(input []byte) error + func (a Action) MarshalJSON() ([]byte, error) + func (tx *Action) String() string + func (z *Action) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Action) EncodeMsg(en *msgp.Writer) (err error) + func (z *Action) MarshalMsg(b []byte) (o []byte, err error) + func (z *Action) Msgsize() (s int) + func (z *Action) UnmarshalMsg(bts []byte) (o []byte, err error) + type Actions []*Action + func (z *Actions) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Actions) UnmarshalMsg(bts []byte) (o []byte, err error) + func (z Actions) EncodeMsg(en *msgp.Writer) (err error) + func (z Actions) MarshalMsg(b []byte) (o []byte, err error) + func (z Actions) Msgsize() (s int) + type Log struct + Address types.Address + BlockHash types.Hash + BlockNumber uint64 + Data [][]byte + Index uint + Removed bool + Topics []types.Hash + TxHash types.Hash + TxIndex uint + func (l *Log) String() string + func (l *Log) UnmarshalJSON(input []byte) error + func (l Log) MarshalJSON() ([]byte, error) + func (z *Log) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Log) EncodeMsg(en *msgp.Writer) (err error) + func (z *Log) MarshalMsg(b []byte) (o []byte, err error) + func (z *Log) Msgsize() (s int) + func (z *Log) UnmarshalMsg(bts []byte) (o []byte, err error) + type LogProtocol struct + Address types.Address + Data [][]byte + Topics []types.Hash + func (z *LogProtocol) DecodeMsg(dc *msgp.Reader) (err error) + func (z *LogProtocol) EncodeMsg(en *msgp.Writer) (err error) + func (z *LogProtocol) MarshalMsg(b []byte) (o []byte, err error) + func (z *LogProtocol) Msgsize() (s int) + func (z *LogProtocol) UnmarshalMsg(bts []byte) (o []byte, err error) + type MSigner struct + func NewMSigner(chainId *big.Int) MSigner + func (s MSigner) Equal(s2 Signer) bool + func (s MSigner) Hash(tx *Transaction) types.Hash + func (s MSigner) Sender(tx *Transaction) (types.Address, error) + func (s MSigner) SignatureValues(tx *Transaction, sig []byte) (R, S, V *big.Int, err error) + type Message struct + func NewMessage(from types.Address, nonce uint64, actions Actions, checkNonce bool) Message + func (m Message) Actions() Actions + func (m Message) CheckNonce() bool + func (m Message) From() types.Address + func (m Message) Nonce() uint64 + type Receipt struct + Bloom types.Bloom + ContractAddress []types.Address + Logs []*Log + Status uint + TxHash types.Hash + func NewReceipt(failed bool) *Receipt + func (r *Receipt) String() string + func (z *Receipt) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Receipt) EncodeMsg(en *msgp.Writer) (err error) + func (z *Receipt) MarshalMsg(b []byte) (o []byte, err error) + func (z *Receipt) Msgsize() (s int) + func (z *Receipt) UnmarshalMsg(bts []byte) (o []byte, err error) + type ReceiptProtocol struct + Bloom types.Bloom + Logs []*LogProtocol + Status uint + func (z *ReceiptProtocol) DecodeMsg(dc *msgp.Reader) (err error) + func (z *ReceiptProtocol) EncodeMsg(en *msgp.Writer) (err error) + func (z *ReceiptProtocol) MarshalMsg(b []byte) (o []byte, err error) + func (z *ReceiptProtocol) Msgsize() (s int) + func (z *ReceiptProtocol) UnmarshalMsg(bts []byte) (o []byte, err error) + type ReceiptProtocols []*ReceiptProtocol + func (z *ReceiptProtocols) DecodeMsg(dc *msgp.Reader) (err error) + func (z *ReceiptProtocols) UnmarshalMsg(bts []byte) (o []byte, err error) + func (z ReceiptProtocols) EncodeMsg(en *msgp.Writer) (err error) + func (z ReceiptProtocols) MarshalMsg(b []byte) (o []byte, err error) + func (z ReceiptProtocols) Msgsize() (s int) + type Receipts []*Receipt + func (r Receipts) GetMsgp(i int) []byte + func (r Receipts) Len() int + func (z *Receipts) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Receipts) UnmarshalMsg(bts []byte) (o []byte, err error) + func (z Receipts) EncodeMsg(en *msgp.Writer) (err error) + func (z Receipts) MarshalMsg(b []byte) (o []byte, err error) + func (z Receipts) Msgsize() (s int) + type Receipts_s struct + Receipts_s []ReceiptProtocols + func (z *Receipts_s) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Receipts_s) EncodeMsg(en *msgp.Writer) (err error) + func (z *Receipts_s) MarshalMsg(b []byte) (o []byte, err error) + func (z *Receipts_s) Msgsize() (s int) + func (z *Receipts_s) UnmarshalMsg(bts []byte) (o []byte, err error) + type Signer interface + Equal func(Signer) bool + Hash func(tx *Transaction) types.Hash + Sender func(tx *Transaction) (types.Address, error) + SignatureValues func(tx *Transaction, sig []byte) (r, s, v *big.Int, err error) + func MakeSigner(config *params.ChainConfig, blockNumber *big.Int) Signer + type Transaction struct + Data Txdata + func NewTransaction(nonce uint64, actions Actions) *Transaction + func SignTx(tx *Transaction, s Signer, prv *ecdsa.PrivateKey) (*Transaction, error) + func (this *Transaction) PrintVSR() + func (tx *Transaction) Actions() Actions + func (tx *Transaction) ChainId() *big.Int + func (tx *Transaction) CheckNonce() bool + func (tx *Transaction) Hash() types.Hash + func (tx *Transaction) MarshalJSON() ([]byte, error) + func (tx *Transaction) Nonce() uint64 + func (tx *Transaction) ParsePriority() + func (tx *Transaction) Priority() *big.Int + func (tx *Transaction) Protected() bool + func (tx *Transaction) RawSignatureValues() (*big.Int, *big.Int, *big.Int) + func (tx *Transaction) SetPriority(newPriority *big.Int) + func (tx *Transaction) Size() common.StorageSize + func (tx *Transaction) String() string + func (tx *Transaction) UnmarshalJSON(input []byte) error + func (tx *Transaction) WithSignature(signer Signer, sig []byte) (*Transaction, error) + func (z *Transaction) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Transaction) EncodeMsg(en *msgp.Writer) (err error) + func (z *Transaction) MarshalMsg(b []byte) (o []byte, err error) + func (z *Transaction) Msgsize() (s int) + func (z *Transaction) UnmarshalMsg(bts []byte) (o []byte, err error) + type Transactions []*Transaction + func TxDifference(a, b Transactions) (keep Transactions) + func (s Transactions) GetMsgp(i int) []byte + func (s Transactions) Len() int + func (s Transactions) Swap(i, j int) + func (z *Transactions) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Transactions) UnmarshalMsg(bts []byte) (o []byte, err error) + func (z Transactions) EncodeMsg(en *msgp.Writer) (err error) + func (z Transactions) MarshalMsg(b []byte) (o []byte, err error) + func (z Transactions) Msgsize() (s int) + type TransactionsByPriorityAndNonce struct + func NewTransactionsByPriorityAndNonce(signer Signer, txs map[types.Address]Transactions, txsReward *Transaction) *TransactionsByPriorityAndNonce + func (t *TransactionsByPriorityAndNonce) Length() int + func (t *TransactionsByPriorityAndNonce) Peek() *Transaction + func (t *TransactionsByPriorityAndNonce) Pop() + func (t *TransactionsByPriorityAndNonce) Shift() + type TxByNonce Transactions + func (s TxByNonce) Len() int + func (s TxByNonce) Less(i, j int) bool + func (s TxByNonce) Swap(i, j int) + func (z *TxByNonce) DecodeMsg(dc *msgp.Reader) (err error) + func (z *TxByNonce) UnmarshalMsg(bts []byte) (o []byte, err error) + func (z TxByNonce) EncodeMsg(en *msgp.Writer) (err error) + func (z TxByNonce) MarshalMsg(b []byte) (o []byte, err error) + func (z TxByNonce) Msgsize() (s int) + type TxByPriority Transactions + func (s *TxByPriority) Pop() interface{} + func (s *TxByPriority) Push(x interface{}) + func (s TxByPriority) Len() int + func (s TxByPriority) Less(i, j int) bool + func (s TxByPriority) Swap(i, j int) + func (z *TxByPriority) DecodeMsg(dc *msgp.Reader) (err error) + func (z *TxByPriority) UnmarshalMsg(bts []byte) (o []byte, err error) + func (z TxByPriority) EncodeMsg(en *msgp.Writer) (err error) + func (z TxByPriority) MarshalMsg(b []byte) (o []byte, err error) + func (z TxByPriority) Msgsize() (s int) + type TxHeader struct + Nonce uint64 + func (t *TxHeader) UnmarshalJSON(input []byte) error + func (t TxHeader) MarshalJSON() ([]byte, error) + func (z *TxHeader) DecodeMsg(dc *msgp.Reader) (err error) + func (z *TxHeader) UnmarshalMsg(bts []byte) (o []byte, err error) + func (z TxHeader) EncodeMsg(en *msgp.Writer) (err error) + func (z TxHeader) MarshalMsg(b []byte) (o []byte, err error) + func (z TxHeader) Msgsize() (s int) + type Txdata struct + Acts Actions + H TxHeader + Hash *types.Hash + R *types.BigInt + S *types.BigInt + V *types.BigInt + func (t *Txdata) UnmarshalJSON(input []byte) error + func (t Txdata) MarshalJSON() ([]byte, error) + func (z *Txdata) DecodeMsg(dc *msgp.Reader) (err error) + func (z *Txdata) EncodeMsg(en *msgp.Writer) (err error) + func (z *Txdata) MarshalMsg(b []byte) (o []byte, err error) + func (z *Txdata) Msgsize() (s int) + func (z *Txdata) UnmarshalMsg(bts []byte) (o []byte, err error)