github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/app/rpc/pendingtx/types.go (about) 1 package pendingtx 2 3 import ( 4 "github.com/ethereum/go-ethereum/common" 5 "github.com/ethereum/go-ethereum/common/hexutil" 6 ) 7 8 type PendingMsg struct { 9 Topic string `json:"topic"` 10 Source interface{} `json:"source"` 11 Data *PendingTx `json:"data"` 12 } 13 14 type PendingTx struct { 15 From string `json:"from"` 16 Gas hexutil.Uint64 `json:"gas"` 17 GasPrice *hexutil.Big `json:"gasPrice"` 18 Hash common.Hash `json:"hash"` 19 Input string `json:"input"` 20 Nonce hexutil.Uint64 `json:"nonce"` 21 To *common.Address `json:"to"` 22 Value *hexutil.Big `json:"value"` 23 } 24 25 type RmPendingMsg struct { 26 Topic string `json:"topic"` 27 Source interface{} `json:"source"` 28 Data *RmPendingTx `json:"data"` 29 } 30 31 type RmPendingTx struct { 32 From string `json:"from"` 33 Hash string `json:"hash"` 34 Nonce string `json:"nonce"` 35 Delete bool `json:"delete"` 36 Reason int `json:"reason"` 37 }