|
4 | 4 | package types |
5 | 5 |
|
6 | 6 | import ( |
7 | | - gethtypes "github.com/ava-labs/libevm/core/types" |
| 7 | + ethtypes "github.com/ava-labs/libevm/core/types" |
8 | 8 | ) |
9 | 9 |
|
10 | 10 | // The following types are used directly as their upstream definitions. |
11 | 11 | // So we list them all here to avoid having many individual files. |
12 | 12 | type ( |
13 | | - AccessList = gethtypes.AccessList |
14 | | - AccessTuple = gethtypes.AccessTuple |
15 | | - AccessListTx = gethtypes.AccessListTx |
16 | | - Bloom = gethtypes.Bloom |
17 | | - Receipt = gethtypes.Receipt |
18 | | - Receipts = gethtypes.Receipts |
19 | | - ReceiptForStorage = gethtypes.ReceiptForStorage |
20 | | - LegacyTx = gethtypes.LegacyTx |
21 | | - DynamicFeeTx = gethtypes.DynamicFeeTx |
22 | | - BlobTx = gethtypes.BlobTx |
23 | | - BlobTxSidecar = gethtypes.BlobTxSidecar |
24 | | - Signer = gethtypes.Signer |
25 | | - HomesteadSigner = gethtypes.HomesteadSigner |
26 | | - FrontierSigner = gethtypes.FrontierSigner |
| 13 | + AccessList = ethtypes.AccessList |
| 14 | + AccessTuple = ethtypes.AccessTuple |
| 15 | + AccessListTx = ethtypes.AccessListTx |
| 16 | + Bloom = ethtypes.Bloom |
| 17 | + Receipt = ethtypes.Receipt |
| 18 | + Receipts = ethtypes.Receipts |
| 19 | + ReceiptForStorage = ethtypes.ReceiptForStorage |
| 20 | + LegacyTx = ethtypes.LegacyTx |
| 21 | + DynamicFeeTx = ethtypes.DynamicFeeTx |
| 22 | + BlobTx = ethtypes.BlobTx |
| 23 | + BlobTxSidecar = ethtypes.BlobTxSidecar |
| 24 | + Signer = ethtypes.Signer |
| 25 | + HomesteadSigner = ethtypes.HomesteadSigner |
| 26 | + FrontierSigner = ethtypes.FrontierSigner |
27 | 27 |
|
28 | | - Transaction = gethtypes.Transaction |
29 | | - Transactions = gethtypes.Transactions |
30 | | - TxByNonce = gethtypes.TxByNonce |
31 | | - TxData = gethtypes.TxData |
| 28 | + Transaction = ethtypes.Transaction |
| 29 | + Transactions = ethtypes.Transactions |
| 30 | + TxByNonce = ethtypes.TxByNonce |
| 31 | + TxData = ethtypes.TxData |
32 | 32 | ) |
33 | 33 |
|
34 | 34 | // The following constants are used directly as their upstream definitions. |
35 | 35 | const ( |
36 | | - BloomBitLength = gethtypes.BloomBitLength |
37 | | - BloomByteLength = gethtypes.BloomByteLength |
38 | | - ReceiptStatusFailed = gethtypes.ReceiptStatusFailed |
39 | | - ReceiptStatusSuccessful = gethtypes.ReceiptStatusSuccessful |
| 36 | + BloomBitLength = ethtypes.BloomBitLength |
| 37 | + BloomByteLength = ethtypes.BloomByteLength |
| 38 | + ReceiptStatusFailed = ethtypes.ReceiptStatusFailed |
| 39 | + ReceiptStatusSuccessful = ethtypes.ReceiptStatusSuccessful |
40 | 40 |
|
41 | 41 | // Transaction types. |
42 | | - LegacyTxType = gethtypes.LegacyTxType |
43 | | - AccessListTxType = gethtypes.AccessListTxType |
44 | | - DynamicFeeTxType = gethtypes.DynamicFeeTxType |
45 | | - BlobTxType = gethtypes.BlobTxType |
| 42 | + LegacyTxType = ethtypes.LegacyTxType |
| 43 | + AccessListTxType = ethtypes.AccessListTxType |
| 44 | + DynamicFeeTxType = ethtypes.DynamicFeeTxType |
| 45 | + BlobTxType = ethtypes.BlobTxType |
46 | 46 | ) |
47 | 47 |
|
48 | 48 | // The following functions are used directly as their upstream definitions. |
49 | 49 | var ( |
50 | | - BloomLookup = gethtypes.BloomLookup |
51 | | - BytesToBloom = gethtypes.BytesToBloom |
52 | | - CreateBloom = gethtypes.CreateBloom |
53 | | - NewReceipt = gethtypes.NewReceipt |
54 | | - NewContractCreation = gethtypes.NewContractCreation |
55 | | - NewTransaction = gethtypes.NewTransaction |
| 50 | + BloomLookup = ethtypes.BloomLookup |
| 51 | + BytesToBloom = ethtypes.BytesToBloom |
| 52 | + CreateBloom = ethtypes.CreateBloom |
| 53 | + NewReceipt = ethtypes.NewReceipt |
| 54 | + NewContractCreation = ethtypes.NewContractCreation |
| 55 | + NewTransaction = ethtypes.NewTransaction |
56 | 56 |
|
57 | 57 | // Signers |
58 | | - NewEIP155Signer = gethtypes.NewEIP155Signer |
59 | | - NewEIP2930Signer = gethtypes.NewEIP2930Signer |
60 | | - NewLondonSigner = gethtypes.NewLondonSigner |
61 | | - NewCancunSigner = gethtypes.NewCancunSigner |
62 | | - MakeSigner = gethtypes.MakeSigner |
63 | | - LatestSigner = gethtypes.LatestSigner |
64 | | - LatestSignerForChainID = gethtypes.LatestSignerForChainID |
65 | | - SignTx = gethtypes.SignTx |
66 | | - SignNewTx = gethtypes.SignNewTx |
67 | | - MustSignNewTx = gethtypes.MustSignNewTx |
68 | | - Sender = gethtypes.Sender |
| 58 | + NewEIP155Signer = ethtypes.NewEIP155Signer |
| 59 | + NewEIP2930Signer = ethtypes.NewEIP2930Signer |
| 60 | + NewLondonSigner = ethtypes.NewLondonSigner |
| 61 | + NewCancunSigner = ethtypes.NewCancunSigner |
| 62 | + MakeSigner = ethtypes.MakeSigner |
| 63 | + LatestSigner = ethtypes.LatestSigner |
| 64 | + LatestSignerForChainID = ethtypes.LatestSignerForChainID |
| 65 | + SignTx = ethtypes.SignTx |
| 66 | + SignNewTx = ethtypes.SignNewTx |
| 67 | + MustSignNewTx = ethtypes.MustSignNewTx |
| 68 | + Sender = ethtypes.Sender |
69 | 69 |
|
70 | 70 | // Transactions |
71 | | - NewTx = gethtypes.NewTx |
72 | | - TxDifference = gethtypes.TxDifference |
| 71 | + NewTx = ethtypes.NewTx |
| 72 | + TxDifference = ethtypes.TxDifference |
73 | 73 |
|
74 | 74 | // Errors |
75 | | - ErrTxTypeNotSupported = gethtypes.ErrTxTypeNotSupported |
76 | | - ErrGasFeeCapTooLow = gethtypes.ErrGasFeeCapTooLow |
| 75 | + ErrTxTypeNotSupported = ethtypes.ErrTxTypeNotSupported |
| 76 | + ErrGasFeeCapTooLow = ethtypes.ErrGasFeeCapTooLow |
77 | 77 | ) |
0 commit comments