viem 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/actions/getContract.js.map +1 -1
- package/dist/cjs/actions/public/call.js +3 -2
- package/dist/cjs/actions/public/call.js.map +1 -1
- package/dist/cjs/actions/public/estimateGas.js +3 -2
- package/dist/cjs/actions/public/estimateGas.js.map +1 -1
- package/dist/cjs/actions/public/getBlock.js +1 -1
- package/dist/cjs/actions/public/getBlock.js.map +1 -1
- package/dist/cjs/actions/public/getTransaction.js +1 -1
- package/dist/cjs/actions/public/getTransaction.js.map +1 -1
- package/dist/cjs/actions/public/getTransactionReceipt.js +2 -1
- package/dist/cjs/actions/public/getTransactionReceipt.js.map +1 -1
- package/dist/cjs/actions/public/watchBlocks.js +1 -1
- package/dist/cjs/actions/public/watchBlocks.js.map +1 -1
- package/dist/cjs/actions/test/sendUnsignedTransaction.js +3 -2
- package/dist/cjs/actions/test/sendUnsignedTransaction.js.map +1 -1
- package/dist/cjs/actions/wallet/sendTransaction.js +2 -2
- package/dist/cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/dist/cjs/actions/wallet/writeContract.js.map +1 -1
- package/dist/cjs/chains/formatters/celo.js.map +1 -1
- package/dist/cjs/chains/formatters/optimism.js +3 -4
- package/dist/cjs/chains/formatters/optimism.js.map +1 -1
- package/dist/cjs/errors/version.js +1 -1
- package/dist/cjs/index.js +5 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/utils/formatters/block.js +1 -1
- package/dist/cjs/utils/formatters/block.js.map +1 -1
- package/dist/cjs/utils/formatters/extract.js +3 -3
- package/dist/cjs/utils/formatters/extract.js.map +1 -1
- package/dist/cjs/utils/formatters/formatter.js +14 -11
- package/dist/cjs/utils/formatters/formatter.js.map +1 -1
- package/dist/cjs/utils/formatters/transaction.js +1 -1
- package/dist/cjs/utils/formatters/transaction.js.map +1 -1
- package/dist/cjs/utils/formatters/transactionReceipt.js +1 -1
- package/dist/cjs/utils/formatters/transactionReceipt.js.map +1 -1
- package/dist/cjs/utils/formatters/transactionRequest.js +1 -1
- package/dist/cjs/utils/formatters/transactionRequest.js.map +1 -1
- package/dist/cjs/utils/index.js +4 -2
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/esm/actions/getContract.js.map +1 -1
- package/dist/esm/actions/public/call.js +3 -2
- package/dist/esm/actions/public/call.js.map +1 -1
- package/dist/esm/actions/public/estimateGas.js +3 -2
- package/dist/esm/actions/public/estimateGas.js.map +1 -1
- package/dist/esm/actions/public/getBlock.js +1 -1
- package/dist/esm/actions/public/getBlock.js.map +1 -1
- package/dist/esm/actions/public/getTransaction.js +1 -1
- package/dist/esm/actions/public/getTransaction.js.map +1 -1
- package/dist/esm/actions/public/getTransactionReceipt.js +2 -1
- package/dist/esm/actions/public/getTransactionReceipt.js.map +1 -1
- package/dist/esm/actions/public/watchBlocks.js +1 -1
- package/dist/esm/actions/public/watchBlocks.js.map +1 -1
- package/dist/esm/actions/test/sendUnsignedTransaction.js +3 -2
- package/dist/esm/actions/test/sendUnsignedTransaction.js.map +1 -1
- package/dist/esm/actions/wallet/sendTransaction.js +2 -2
- package/dist/esm/actions/wallet/sendTransaction.js.map +1 -1
- package/dist/esm/actions/wallet/writeContract.js.map +1 -1
- package/dist/esm/chains/formatters/celo.js +1 -0
- package/dist/esm/chains/formatters/celo.js.map +1 -1
- package/dist/esm/chains/formatters/optimism.js +3 -3
- package/dist/esm/chains/formatters/optimism.js.map +1 -1
- package/dist/esm/errors/version.js +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/formatters/block.js +1 -1
- package/dist/esm/utils/formatters/block.js.map +1 -1
- package/dist/esm/utils/formatters/extract.js +3 -3
- package/dist/esm/utils/formatters/extract.js.map +1 -1
- package/dist/esm/utils/formatters/formatter.js +14 -11
- package/dist/esm/utils/formatters/formatter.js.map +1 -1
- package/dist/esm/utils/formatters/transaction.js +1 -2
- package/dist/esm/utils/formatters/transaction.js.map +1 -1
- package/dist/esm/utils/formatters/transactionReceipt.js +1 -1
- package/dist/esm/utils/formatters/transactionReceipt.js.map +1 -1
- package/dist/esm/utils/formatters/transactionRequest.js +1 -1
- package/dist/esm/utils/formatters/transactionRequest.js.map +1 -1
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/types/actions/public/call.d.ts.map +1 -1
- package/dist/types/actions/public/estimateContractGas.d.ts +1 -1
- package/dist/types/actions/public/estimateContractGas.d.ts.map +1 -1
- package/dist/types/actions/public/estimateGas.d.ts.map +1 -1
- package/dist/types/actions/public/getTransaction.d.ts.map +1 -1
- package/dist/types/actions/public/getTransactionReceipt.d.ts.map +1 -1
- package/dist/types/actions/public/simulateContract.d.ts +1 -1
- package/dist/types/actions/public/simulateContract.d.ts.map +1 -1
- package/dist/types/actions/public/watchBlocks.d.ts.map +1 -1
- package/dist/types/actions/test/sendUnsignedTransaction.d.ts.map +1 -1
- package/dist/types/actions/wallet/sendTransaction.d.ts +2 -1
- package/dist/types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/dist/types/actions/wallet/writeContract.d.ts +1 -1
- package/dist/types/actions/wallet/writeContract.d.ts.map +1 -1
- package/dist/types/chains/formatters/celo.d.ts +200 -188
- package/dist/types/chains/formatters/celo.d.ts.map +1 -1
- package/dist/types/chains/formatters/optimism.d.ts +250 -250
- package/dist/types/chains/formatters/optimism.d.ts.map +1 -1
- package/dist/types/chains/index.d.ts +2180 -2148
- package/dist/types/chains/index.d.ts.map +1 -1
- package/dist/types/errors/version.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/formatter.d.ts +10 -7
- package/dist/types/types/formatter.d.ts.map +1 -1
- package/dist/types/types/serializer.d.ts +1 -1
- package/dist/types/types/serializer.d.ts.map +1 -1
- package/dist/types/utils/formatters/block.d.ts +4 -1
- package/dist/types/utils/formatters/block.d.ts.map +1 -1
- package/dist/types/utils/formatters/extract.d.ts +2 -2
- package/dist/types/utils/formatters/extract.d.ts.map +1 -1
- package/dist/types/utils/formatters/formatter.d.ts +5 -2
- package/dist/types/utils/formatters/formatter.d.ts.map +1 -1
- package/dist/types/utils/formatters/transaction.d.ts +5 -2
- package/dist/types/utils/formatters/transaction.d.ts.map +1 -1
- package/dist/types/utils/formatters/transactionReceipt.d.ts +4 -1
- package/dist/types/utils/formatters/transactionReceipt.d.ts.map +1 -1
- package/dist/types/utils/formatters/transactionRequest.d.ts +4 -1
- package/dist/types/utils/formatters/transactionRequest.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/actions/getContract.ts +1 -1
- package/src/actions/public/call.ts +3 -2
- package/src/actions/public/estimateContractGas.ts +1 -1
- package/src/actions/public/estimateGas.ts +4 -3
- package/src/actions/public/getBlock.ts +1 -1
- package/src/actions/public/getTransaction.ts +2 -1
- package/src/actions/public/getTransactionReceipt.ts +2 -1
- package/src/actions/public/simulateContract.ts +1 -1
- package/src/actions/public/watchBlocks.ts +2 -1
- package/src/actions/test/sendUnsignedTransaction.ts +3 -2
- package/src/actions/wallet/sendTransaction.ts +9 -3
- package/src/actions/wallet/writeContract.ts +11 -1
- package/src/chains/formatters/celo.ts +2 -1
- package/src/chains/formatters/optimism.ts +9 -6
- package/src/errors/version.ts +1 -1
- package/src/index.ts +1 -0
- package/src/types/formatter.ts +10 -9
- package/src/types/serializer.ts +1 -1
- package/src/utils/formatters/block.ts +1 -1
- package/src/utils/formatters/extract.ts +3 -3
- package/src/utils/formatters/formatter.ts +17 -13
- package/src/utils/formatters/transaction.ts +4 -2
- package/src/utils/formatters/transactionReceipt.ts +1 -0
- package/src/utils/formatters/transactionRequest.ts +1 -0
- package/src/utils/index.ts +1 -0
@@ -7,7 +7,7 @@ type RpcTransaction = RpcTransaction_ & {
|
|
7
7
|
mint?: undefined;
|
8
8
|
sourceHash?: undefined;
|
9
9
|
};
|
10
|
-
type RpcDepositTransaction = TransactionBase<Quantity, Index> & FeeValuesEIP1559<Quantity> & {
|
10
|
+
export type RpcDepositTransaction = TransactionBase<Quantity, Index> & FeeValuesEIP1559<Quantity> & {
|
11
11
|
isSystemTx?: boolean;
|
12
12
|
mint?: Hex;
|
13
13
|
sourceHash: Hex;
|
@@ -18,7 +18,7 @@ type Transaction = Transaction_ & {
|
|
18
18
|
mint?: undefined;
|
19
19
|
sourceHash?: undefined;
|
20
20
|
};
|
21
|
-
type DepositTransaction = TransactionBase & FeeValuesEIP1559 & {
|
21
|
+
export type DepositTransaction = TransactionBase & FeeValuesEIP1559 & {
|
22
22
|
isSystemTx?: boolean;
|
23
23
|
mint?: bigint;
|
24
24
|
sourceHash: Hex;
|
@@ -32,255 +32,255 @@ type OptimismOverrides = {
|
|
32
32
|
Transaction: Transaction | DepositTransaction;
|
33
33
|
};
|
34
34
|
export declare const optimismFormatters: {
|
35
|
-
readonly block:
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
35
|
+
readonly block: {
|
36
|
+
format: (args: Partial<import("../../types/rpc.js").RpcBlock> & {
|
37
|
+
transactions: Hash[] | OptimismOverrides['RpcTransaction'][];
|
38
|
+
}) => {
|
39
|
+
baseFeePerGas: bigint | null;
|
40
|
+
difficulty: bigint;
|
41
|
+
extraData: `0x${string}`;
|
42
|
+
gasLimit: bigint;
|
43
|
+
gasUsed: bigint;
|
44
|
+
hash: `0x${string}` | null;
|
45
|
+
logsBloom: `0x${string}` | null;
|
46
|
+
miner: `0x${string}`;
|
47
|
+
mixHash: `0x${string}`;
|
48
|
+
nonce: `0x${string}` | null;
|
49
|
+
number: bigint | null;
|
50
|
+
parentHash: `0x${string}`;
|
51
|
+
receiptsRoot: `0x${string}`;
|
52
|
+
sealFields: `0x${string}`[];
|
53
|
+
sha3Uncles: `0x${string}`;
|
54
|
+
size: bigint;
|
55
|
+
stateRoot: `0x${string}`;
|
56
|
+
timestamp: bigint;
|
57
|
+
totalDifficulty: bigint | null;
|
58
|
+
transactions: `0x${string}`[] | (Transaction | DepositTransaction)[];
|
59
|
+
transactionsRoot: `0x${string}`;
|
60
|
+
uncles: `0x${string}`[];
|
61
|
+
} & {};
|
62
|
+
type: "block";
|
63
|
+
};
|
64
|
+
readonly transaction: {
|
65
|
+
format: (args: (Partial<import("../../types/transaction.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & TransactionBase<`0x${string}`, `0x${string}`> & import("../../types/fee.js").FeeValuesLegacy<`0x${string}`> & {
|
66
|
+
accessList?: undefined;
|
67
|
+
chainId?: `0x${string}` | undefined;
|
68
|
+
type: "0x0";
|
69
|
+
} & {
|
70
|
+
isSystemTx?: undefined;
|
71
|
+
mint?: undefined;
|
72
|
+
sourceHash?: undefined;
|
73
|
+
}) | (Partial<import("../../types/transaction.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & TransactionBase<`0x${string}`, `0x${string}`> & import("../../types/fee.js").FeeValuesLegacy<`0x${string}`> & {
|
74
|
+
accessList: import("../../types/transaction.js").AccessList;
|
75
|
+
chainId: `0x${string}`;
|
76
|
+
type: "0x1";
|
77
|
+
} & {
|
78
|
+
isSystemTx?: undefined;
|
79
|
+
mint?: undefined;
|
80
|
+
sourceHash?: undefined;
|
81
|
+
}) | (Partial<import("../../types/transaction.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & TransactionBase<`0x${string}`, `0x${string}`> & FeeValuesEIP1559<`0x${string}`> & {
|
82
|
+
accessList: import("../../types/transaction.js").AccessList;
|
83
|
+
chainId: `0x${string}`;
|
84
|
+
type: "0x2";
|
85
|
+
} & {
|
86
|
+
isSystemTx?: undefined;
|
87
|
+
mint?: undefined;
|
88
|
+
sourceHash?: undefined;
|
89
|
+
})) => ({
|
90
|
+
blockHash: `0x${string}` | null;
|
91
|
+
blockNumber: bigint | null;
|
92
|
+
from: `0x${string}`;
|
93
|
+
gas: bigint;
|
94
|
+
hash: `0x${string}`;
|
95
|
+
input: `0x${string}`;
|
96
|
+
nonce: number;
|
97
|
+
r: `0x${string}`;
|
98
|
+
s: `0x${string}`;
|
99
|
+
to: `0x${string}` | null;
|
100
|
+
transactionIndex: number | null;
|
101
|
+
typeHex: `0x${string}` | null;
|
102
|
+
v: bigint;
|
103
|
+
value: bigint;
|
104
|
+
gasPrice: bigint;
|
105
|
+
maxFeePerGas?: undefined;
|
106
|
+
maxPriorityFeePerGas?: undefined;
|
107
|
+
accessList?: undefined;
|
108
|
+
chainId?: number | undefined;
|
109
|
+
type: "legacy";
|
110
|
+
isSystemTx?: undefined;
|
111
|
+
mint?: undefined;
|
112
|
+
sourceHash?: undefined;
|
113
|
+
} | {
|
114
|
+
blockHash: `0x${string}` | null;
|
115
|
+
blockNumber: bigint | null;
|
116
|
+
from: `0x${string}`;
|
117
|
+
gas: bigint;
|
118
|
+
hash: `0x${string}`;
|
119
|
+
input: `0x${string}`;
|
120
|
+
nonce: number;
|
121
|
+
r: `0x${string}`;
|
122
|
+
s: `0x${string}`;
|
123
|
+
to: `0x${string}` | null;
|
124
|
+
transactionIndex: number | null;
|
125
|
+
typeHex: `0x${string}` | null;
|
126
|
+
v: bigint;
|
127
|
+
value: bigint;
|
128
|
+
gasPrice: undefined;
|
129
|
+
maxFeePerGas: bigint;
|
130
|
+
maxPriorityFeePerGas: bigint;
|
131
|
+
accessList?: undefined;
|
132
|
+
chainId?: number | undefined;
|
133
|
+
type: 'deposit';
|
134
|
+
isSystemTx?: boolean | undefined;
|
135
|
+
mint?: bigint | undefined;
|
136
|
+
sourceHash: Hex;
|
137
|
+
} | {
|
138
|
+
blockHash: `0x${string}` | null;
|
139
|
+
blockNumber: bigint | null;
|
140
|
+
from: `0x${string}`;
|
141
|
+
gas: bigint;
|
142
|
+
hash: `0x${string}`;
|
143
|
+
input: `0x${string}`;
|
144
|
+
nonce: number;
|
145
|
+
r: `0x${string}`;
|
146
|
+
s: `0x${string}`;
|
147
|
+
to: `0x${string}` | null;
|
148
|
+
transactionIndex: number | null;
|
149
|
+
typeHex: `0x${string}` | null;
|
150
|
+
v: bigint;
|
151
|
+
value: bigint;
|
152
|
+
gasPrice: bigint;
|
153
|
+
maxFeePerGas?: undefined;
|
154
|
+
maxPriorityFeePerGas?: undefined;
|
155
|
+
accessList: import("../../types/transaction.js").AccessList;
|
156
|
+
chainId: number;
|
157
|
+
type: "eip2930";
|
158
|
+
isSystemTx?: undefined;
|
159
|
+
mint?: undefined;
|
160
|
+
sourceHash?: undefined;
|
161
|
+
} | {
|
162
|
+
blockHash: `0x${string}` | null;
|
163
|
+
blockNumber: bigint | null;
|
164
|
+
from: `0x${string}`;
|
165
|
+
gas: bigint;
|
166
|
+
hash: `0x${string}`;
|
167
|
+
input: `0x${string}`;
|
168
|
+
nonce: number;
|
169
|
+
r: `0x${string}`;
|
170
|
+
s: `0x${string}`;
|
171
|
+
to: `0x${string}` | null;
|
172
|
+
transactionIndex: number | null;
|
173
|
+
typeHex: `0x${string}` | null;
|
174
|
+
v: bigint;
|
175
|
+
value: bigint;
|
176
|
+
gasPrice: undefined;
|
177
|
+
maxFeePerGas: bigint;
|
178
|
+
maxPriorityFeePerGas: bigint;
|
179
|
+
accessList: import("../../types/transaction.js").AccessList;
|
180
|
+
chainId: number;
|
181
|
+
type: "eip1559";
|
182
|
+
isSystemTx?: undefined;
|
183
|
+
mint?: undefined;
|
184
|
+
sourceHash?: undefined;
|
185
|
+
} | {
|
186
|
+
blockHash: `0x${string}` | null;
|
187
|
+
blockNumber: bigint | null;
|
188
|
+
from: `0x${string}`;
|
189
|
+
gas: bigint;
|
190
|
+
hash: `0x${string}`;
|
191
|
+
input: `0x${string}`;
|
192
|
+
nonce: number;
|
193
|
+
r: `0x${string}`;
|
194
|
+
s: `0x${string}`;
|
195
|
+
to: `0x${string}` | null;
|
196
|
+
transactionIndex: number | null;
|
197
|
+
typeHex: `0x${string}` | null;
|
198
|
+
v: bigint;
|
199
|
+
value: bigint;
|
200
|
+
gasPrice: undefined;
|
201
|
+
maxFeePerGas: bigint;
|
202
|
+
maxPriorityFeePerGas: bigint;
|
203
|
+
accessList: import("../../types/transaction.js").AccessList;
|
204
|
+
chainId: number;
|
205
|
+
type: 'deposit';
|
206
|
+
isSystemTx?: boolean | undefined;
|
207
|
+
mint?: bigint | undefined;
|
208
|
+
sourceHash: Hex;
|
209
|
+
} | {
|
210
|
+
blockHash: `0x${string}` | null;
|
211
|
+
blockNumber: bigint | null;
|
212
|
+
from: `0x${string}`;
|
213
|
+
gas: bigint;
|
214
|
+
hash: `0x${string}`;
|
215
|
+
input: `0x${string}`;
|
216
|
+
nonce: number;
|
217
|
+
r: `0x${string}`;
|
218
|
+
s: `0x${string}`;
|
219
|
+
to: `0x${string}` | null;
|
220
|
+
transactionIndex: number | null;
|
221
|
+
typeHex: `0x${string}` | null;
|
222
|
+
v: bigint;
|
223
|
+
value: bigint;
|
224
|
+
gasPrice: bigint;
|
225
|
+
maxFeePerGas: undefined;
|
226
|
+
maxPriorityFeePerGas: undefined;
|
227
|
+
accessList: import("../../types/transaction.js").AccessList;
|
228
|
+
chainId: number;
|
229
|
+
type: "eip2930";
|
230
|
+
isSystemTx?: undefined;
|
231
|
+
mint?: undefined;
|
232
|
+
sourceHash?: undefined;
|
233
|
+
} | {
|
234
|
+
blockHash: `0x${string}` | null;
|
235
|
+
blockNumber: bigint | null;
|
236
|
+
from: `0x${string}`;
|
237
|
+
gas: bigint;
|
238
|
+
hash: `0x${string}`;
|
239
|
+
input: `0x${string}`;
|
240
|
+
nonce: number;
|
241
|
+
r: `0x${string}`;
|
242
|
+
s: `0x${string}`;
|
243
|
+
to: `0x${string}` | null;
|
244
|
+
transactionIndex: number | null;
|
245
|
+
typeHex: `0x${string}` | null;
|
246
|
+
v: bigint;
|
247
|
+
value: bigint;
|
248
|
+
gasPrice?: undefined;
|
249
|
+
maxFeePerGas: bigint;
|
250
|
+
maxPriorityFeePerGas: bigint;
|
251
|
+
accessList: import("../../types/transaction.js").AccessList;
|
252
|
+
chainId: number;
|
253
|
+
type: "eip1559";
|
254
|
+
isSystemTx?: undefined;
|
255
|
+
mint?: undefined;
|
256
|
+
sourceHash?: undefined;
|
257
|
+
} | {
|
258
|
+
blockHash: `0x${string}` | null;
|
259
|
+
blockNumber: bigint | null;
|
260
|
+
from: `0x${string}`;
|
261
|
+
gas: bigint;
|
262
|
+
hash: `0x${string}`;
|
263
|
+
input: `0x${string}`;
|
264
|
+
nonce: number;
|
265
|
+
r: `0x${string}`;
|
266
|
+
s: `0x${string}`;
|
267
|
+
to: `0x${string}` | null;
|
268
|
+
transactionIndex: number | null;
|
269
|
+
typeHex: `0x${string}` | null;
|
270
|
+
v: bigint;
|
271
|
+
value: bigint;
|
272
|
+
gasPrice?: undefined;
|
273
|
+
maxFeePerGas: bigint;
|
274
|
+
maxPriorityFeePerGas: bigint;
|
275
|
+
accessList: import("../../types/transaction.js").AccessList;
|
276
|
+
chainId: number;
|
277
|
+
type: 'deposit';
|
278
|
+
isSystemTx?: boolean | undefined;
|
279
|
+
mint?: bigint | undefined;
|
280
|
+
sourceHash: Hex;
|
281
|
+
}) & {};
|
282
|
+
type: "transaction";
|
66
283
|
};
|
67
|
-
readonly transaction: (args: (Partial<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & TransactionBase<`0x${string}`, `0x${string}`> & import("../../index.js").FeeValuesLegacy<`0x${string}`> & {
|
68
|
-
accessList?: undefined;
|
69
|
-
chainId?: `0x${string}` | undefined;
|
70
|
-
type: "0x0";
|
71
|
-
} & {
|
72
|
-
isSystemTx?: undefined;
|
73
|
-
mint?: undefined;
|
74
|
-
sourceHash?: undefined;
|
75
|
-
}) | (Partial<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & TransactionBase<`0x${string}`, `0x${string}`> & import("../../index.js").FeeValuesLegacy<`0x${string}`> & {
|
76
|
-
accessList: import("../../index.js").AccessList;
|
77
|
-
chainId: `0x${string}`;
|
78
|
-
type: "0x1";
|
79
|
-
} & {
|
80
|
-
isSystemTx?: undefined;
|
81
|
-
mint?: undefined;
|
82
|
-
sourceHash?: undefined;
|
83
|
-
}) | (Partial<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & TransactionBase<`0x${string}`, `0x${string}`> & FeeValuesEIP1559<`0x${string}`> & {
|
84
|
-
accessList: import("../../index.js").AccessList;
|
85
|
-
chainId: `0x${string}`;
|
86
|
-
type: "0x2";
|
87
|
-
} & {
|
88
|
-
isSystemTx?: undefined;
|
89
|
-
mint?: undefined;
|
90
|
-
sourceHash?: undefined;
|
91
|
-
})) => ({
|
92
|
-
blockHash: `0x${string}` | null;
|
93
|
-
blockNumber: bigint | null;
|
94
|
-
from: `0x${string}`;
|
95
|
-
gas: bigint;
|
96
|
-
hash: `0x${string}`;
|
97
|
-
input: `0x${string}`;
|
98
|
-
nonce: number;
|
99
|
-
r: `0x${string}`;
|
100
|
-
s: `0x${string}`;
|
101
|
-
to: `0x${string}` | null;
|
102
|
-
transactionIndex: number | null;
|
103
|
-
typeHex: `0x${string}` | null;
|
104
|
-
v: bigint;
|
105
|
-
value: bigint;
|
106
|
-
gasPrice: bigint;
|
107
|
-
maxFeePerGas?: undefined;
|
108
|
-
maxPriorityFeePerGas?: undefined;
|
109
|
-
accessList?: undefined;
|
110
|
-
chainId?: number | undefined;
|
111
|
-
type: "legacy";
|
112
|
-
isSystemTx?: undefined;
|
113
|
-
mint?: undefined;
|
114
|
-
sourceHash?: undefined;
|
115
|
-
} | {
|
116
|
-
blockHash: `0x${string}` | null;
|
117
|
-
blockNumber: bigint | null;
|
118
|
-
from: `0x${string}`;
|
119
|
-
gas: bigint;
|
120
|
-
hash: `0x${string}`;
|
121
|
-
input: `0x${string}`;
|
122
|
-
nonce: number;
|
123
|
-
r: `0x${string}`;
|
124
|
-
s: `0x${string}`;
|
125
|
-
to: `0x${string}` | null;
|
126
|
-
transactionIndex: number | null;
|
127
|
-
typeHex: `0x${string}` | null;
|
128
|
-
v: bigint;
|
129
|
-
value: bigint;
|
130
|
-
gasPrice: undefined;
|
131
|
-
maxFeePerGas: bigint;
|
132
|
-
maxPriorityFeePerGas: bigint;
|
133
|
-
accessList?: undefined;
|
134
|
-
chainId?: number | undefined;
|
135
|
-
type: 'deposit';
|
136
|
-
isSystemTx?: boolean | undefined;
|
137
|
-
mint?: bigint | undefined;
|
138
|
-
sourceHash: Hex;
|
139
|
-
} | {
|
140
|
-
blockHash: `0x${string}` | null;
|
141
|
-
blockNumber: bigint | null;
|
142
|
-
from: `0x${string}`;
|
143
|
-
gas: bigint;
|
144
|
-
hash: `0x${string}`;
|
145
|
-
input: `0x${string}`;
|
146
|
-
nonce: number;
|
147
|
-
r: `0x${string}`;
|
148
|
-
s: `0x${string}`;
|
149
|
-
to: `0x${string}` | null;
|
150
|
-
transactionIndex: number | null;
|
151
|
-
typeHex: `0x${string}` | null;
|
152
|
-
v: bigint;
|
153
|
-
value: bigint;
|
154
|
-
gasPrice: bigint;
|
155
|
-
maxFeePerGas?: undefined;
|
156
|
-
maxPriorityFeePerGas?: undefined;
|
157
|
-
accessList: import("../../index.js").AccessList;
|
158
|
-
chainId: number;
|
159
|
-
type: "eip2930";
|
160
|
-
isSystemTx?: undefined;
|
161
|
-
mint?: undefined;
|
162
|
-
sourceHash?: undefined;
|
163
|
-
} | {
|
164
|
-
blockHash: `0x${string}` | null;
|
165
|
-
blockNumber: bigint | null;
|
166
|
-
from: `0x${string}`;
|
167
|
-
gas: bigint;
|
168
|
-
hash: `0x${string}`;
|
169
|
-
input: `0x${string}`;
|
170
|
-
nonce: number;
|
171
|
-
r: `0x${string}`;
|
172
|
-
s: `0x${string}`;
|
173
|
-
to: `0x${string}` | null;
|
174
|
-
transactionIndex: number | null;
|
175
|
-
typeHex: `0x${string}` | null;
|
176
|
-
v: bigint;
|
177
|
-
value: bigint;
|
178
|
-
gasPrice: undefined;
|
179
|
-
maxFeePerGas: bigint;
|
180
|
-
maxPriorityFeePerGas: bigint;
|
181
|
-
accessList: import("../../index.js").AccessList;
|
182
|
-
chainId: number;
|
183
|
-
type: "eip1559";
|
184
|
-
isSystemTx?: undefined;
|
185
|
-
mint?: undefined;
|
186
|
-
sourceHash?: undefined;
|
187
|
-
} | {
|
188
|
-
blockHash: `0x${string}` | null;
|
189
|
-
blockNumber: bigint | null;
|
190
|
-
from: `0x${string}`;
|
191
|
-
gas: bigint;
|
192
|
-
hash: `0x${string}`;
|
193
|
-
input: `0x${string}`;
|
194
|
-
nonce: number;
|
195
|
-
r: `0x${string}`;
|
196
|
-
s: `0x${string}`;
|
197
|
-
to: `0x${string}` | null;
|
198
|
-
transactionIndex: number | null;
|
199
|
-
typeHex: `0x${string}` | null;
|
200
|
-
v: bigint;
|
201
|
-
value: bigint;
|
202
|
-
gasPrice: undefined;
|
203
|
-
maxFeePerGas: bigint;
|
204
|
-
maxPriorityFeePerGas: bigint;
|
205
|
-
accessList: import("../../index.js").AccessList;
|
206
|
-
chainId: number;
|
207
|
-
type: 'deposit';
|
208
|
-
isSystemTx?: boolean | undefined;
|
209
|
-
mint?: bigint | undefined;
|
210
|
-
sourceHash: Hex;
|
211
|
-
} | {
|
212
|
-
blockHash: `0x${string}` | null;
|
213
|
-
blockNumber: bigint | null;
|
214
|
-
from: `0x${string}`;
|
215
|
-
gas: bigint;
|
216
|
-
hash: `0x${string}`;
|
217
|
-
input: `0x${string}`;
|
218
|
-
nonce: number;
|
219
|
-
r: `0x${string}`;
|
220
|
-
s: `0x${string}`;
|
221
|
-
to: `0x${string}` | null;
|
222
|
-
transactionIndex: number | null;
|
223
|
-
typeHex: `0x${string}` | null;
|
224
|
-
v: bigint;
|
225
|
-
value: bigint;
|
226
|
-
gasPrice: bigint;
|
227
|
-
maxFeePerGas: undefined;
|
228
|
-
maxPriorityFeePerGas: undefined;
|
229
|
-
accessList: import("../../index.js").AccessList;
|
230
|
-
chainId: number;
|
231
|
-
type: "eip2930";
|
232
|
-
isSystemTx?: undefined;
|
233
|
-
mint?: undefined;
|
234
|
-
sourceHash?: undefined;
|
235
|
-
} | {
|
236
|
-
blockHash: `0x${string}` | null;
|
237
|
-
blockNumber: bigint | null;
|
238
|
-
from: `0x${string}`;
|
239
|
-
gas: bigint;
|
240
|
-
hash: `0x${string}`;
|
241
|
-
input: `0x${string}`;
|
242
|
-
nonce: number;
|
243
|
-
r: `0x${string}`;
|
244
|
-
s: `0x${string}`;
|
245
|
-
to: `0x${string}` | null;
|
246
|
-
transactionIndex: number | null;
|
247
|
-
typeHex: `0x${string}` | null;
|
248
|
-
v: bigint;
|
249
|
-
value: bigint;
|
250
|
-
gasPrice?: undefined;
|
251
|
-
maxFeePerGas: bigint;
|
252
|
-
maxPriorityFeePerGas: bigint;
|
253
|
-
accessList: import("../../index.js").AccessList;
|
254
|
-
chainId: number;
|
255
|
-
type: "eip1559";
|
256
|
-
isSystemTx?: undefined;
|
257
|
-
mint?: undefined;
|
258
|
-
sourceHash?: undefined;
|
259
|
-
} | {
|
260
|
-
blockHash: `0x${string}` | null;
|
261
|
-
blockNumber: bigint | null;
|
262
|
-
from: `0x${string}`;
|
263
|
-
gas: bigint;
|
264
|
-
hash: `0x${string}`;
|
265
|
-
input: `0x${string}`;
|
266
|
-
nonce: number;
|
267
|
-
r: `0x${string}`;
|
268
|
-
s: `0x${string}`;
|
269
|
-
to: `0x${string}` | null;
|
270
|
-
transactionIndex: number | null;
|
271
|
-
typeHex: `0x${string}` | null;
|
272
|
-
v: bigint;
|
273
|
-
value: bigint;
|
274
|
-
gasPrice?: undefined;
|
275
|
-
maxFeePerGas: bigint;
|
276
|
-
maxPriorityFeePerGas: bigint;
|
277
|
-
accessList: import("../../index.js").AccessList;
|
278
|
-
chainId: number;
|
279
|
-
type: 'deposit';
|
280
|
-
isSystemTx?: boolean | undefined;
|
281
|
-
mint?: bigint | undefined;
|
282
|
-
sourceHash: Hex;
|
283
|
-
}) & {};
|
284
284
|
};
|
285
285
|
export {};
|
286
286
|
//# sourceMappingURL=optimism.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"optimism.d.ts","sourceRoot":"","sources":["../../../../src/chains/formatters/optimism.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"optimism.d.ts","sourceRoot":"","sources":["../../../../src/chains/formatters/optimism.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE1D,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EACV,KAAK,EACL,QAAQ,EACR,cAAc,IAAI,eAAe,EAClC,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EACV,WAAW,IAAI,YAAY,EAC3B,eAAe,EAChB,MAAM,4BAA4B,CAAA;AAQnC,KAAK,cAAc,GAAG,eAAe,GAAG;IACtC,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,UAAU,CAAC,EAAE,SAAS,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,GAClE,gBAAgB,CAAC,QAAQ,CAAC,GAAG;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,GAAG,CAAA;IACV,UAAU,EAAE,GAAG,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAEH,KAAK,WAAW,GAAG,YAAY,GAAG;IAChC,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,UAAU,CAAC,EAAE,SAAS,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAC9C,gBAAgB,GAAG;IACjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,GAAG,CAAA;IACf,IAAI,EAAE,SAAS,CAAA;CAChB,CAAA;AAEH,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE;QACR,YAAY,EAAE,IAAI,EAAE,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,CAAA;KAC7D,CAAA;IACD,cAAc,EAAE,cAAc,GAAG,qBAAqB,CAAA;IACtD,WAAW,EAAE,WAAW,GAAG,kBAAkB,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,kBAAkB;;;0BANb,IAAI,EAAE,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA7BjD,SAAS;mBACf,SAAS;yBACH,SAAS;;;;;;yBAFT,SAAS;mBACf,SAAS;yBACH,SAAS;;;;;;yBAFT,SAAS;mBACf,SAAS;yBACH,SAAS;;;;;;;;;;;;;;;;;;;;;;yBAYT,SAAS;mBACf,SAAS;yBACH,SAAS;;;;;;;;;;;;;;;;;;;;;kBAQd,SAAS;;;wBADH,GAAG;;;;;;;;;;;;;;;;;;;;;;yBATJ,SAAS;mBACf,SAAS;yBACH,SAAS;;;;;;;;;;;;;;;;;;;;;;yBAFT,SAAS;mBACf,SAAS;yBACH,SAAS;;;;;;;;;;;;;;;;;;;;;kBAQd,SAAS;;;wBADH,GAAG;;;;;;;;;;;;;;;;;;;;;;yBATJ,SAAS;mBACf,SAAS;yBACH,SAAS;;;;;;;;;;;;;;;;;;;;;;yBAFT,SAAS;mBACf,SAAS;yBACH,SAAS;;;;;;;;;;;;;;;;;;;;;kBAQd,SAAS;;;wBADH,GAAG;;;;CA+CY,CAAA"}
|