@@ -14,25 +14,41 @@ type FEVMTransaction struct {
14
14
15
15
// Height message was executed at.
16
16
Height int64 `pg:",pk,notnull,use_zero"`
17
-
18
- Hash string `pg:",pk,notnull"`
19
- ChainID uint64 `pg:",use_zero"`
20
- Nonce uint64 `pg:",use_zero"`
21
- BlockHash string `pg:",notnull"`
22
- BlockNumber uint64 `pg:",use_zero"`
23
- TransactionIndex uint64 `pg:",use_zero"`
24
- From string `pg:",notnull"`
25
- To string `pg:",notnull"`
26
- Value string `pg:",notnull"`
27
- Type uint64 `pg:",use_zero"`
28
- Input string `pg:",notnull"`
29
- Gas uint64 `pg:",use_zero"`
30
- MaxFeePerGas string `pg:"type:numeric,notnull"`
17
+ // Hash of transaction.
18
+ Hash string `pg:",pk,notnull"`
19
+ // EVM network id.
20
+ ChainID uint64 `pg:",use_zero"`
21
+ // A sequentially incrementing counter which indicates the transaction number from the account.
22
+ Nonce uint64 `pg:",use_zero"`
23
+ // Hash of the block where this transaction was in.
24
+ BlockHash string `pg:",notnull"`
25
+ // Block number where this transaction was in.
26
+ BlockNumber uint64 `pg:",use_zero"`
27
+ // Integer of the transactions index position in the block.
28
+ TransactionIndex uint64 `pg:",use_zero"`
29
+ // ETH Address of the sender.
30
+ From string `pg:",notnull"`
31
+ // ETH Address of the receiver.
32
+ To string `pg:",notnull"`
33
+ // Amount of FIL to transfer from sender to recipient.
34
+ Value string `pg:",notnull"`
35
+ // Type of transactions.
36
+ Type uint64 `pg:",use_zero"`
37
+ // The data sent along with the transaction.
38
+ Input string `pg:",notnull"`
39
+ // Gas provided by the sender.
40
+ Gas uint64 `pg:",use_zero"`
41
+ // The maximum fee per unit of gas willing to be paid for the transaction.
42
+ MaxFeePerGas string `pg:"type:numeric,notnull"`
43
+ // The maximum price of the consumed gas to be included as a tip to the validator.
31
44
MaxPriorityFeePerGas string `pg:"type:numeric,notnull"`
32
45
AccessList string `pg:",type:jsonb"`
33
- V string `pg:",notnull"`
34
- R string `pg:",notnull"`
35
- S string `pg:",notnull"`
46
+ // Transaction’s signature. Recovery Identifier.
47
+ V string `pg:",notnull"`
48
+ // Transaction’s signature. Outputs of an ECDSA signature.
49
+ R string `pg:",notnull"`
50
+ // Transaction’s signature. Outputs of an ECDSA signature.
51
+ S string `pg:",notnull"`
36
52
}
37
53
38
54
func (f * FEVMTransaction ) Persist (ctx context.Context , s model.StorageBatch , version model.Version ) error {
0 commit comments