viem 0.0.0-main.20230620T232415 → 0.0.0-main.20230621T010720
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/chains/package.json +3 -3
- package/dist/cjs/actions/public/call.js +3 -6
- package/dist/cjs/actions/public/call.js.map +1 -1
- package/dist/cjs/actions/public/estimateContractGas.js.map +1 -1
- package/dist/cjs/actions/public/estimateGas.js +3 -6
- package/dist/cjs/actions/public/estimateGas.js.map +1 -1
- package/dist/cjs/actions/public/getBlock.js +2 -4
- package/dist/cjs/actions/public/getBlock.js.map +1 -1
- package/dist/cjs/actions/public/getTransaction.js +2 -4
- package/dist/cjs/actions/public/getTransaction.js.map +1 -1
- package/dist/cjs/actions/public/getTransactionConfirmations.js.map +1 -1
- package/dist/cjs/actions/public/getTransactionReceipt.js +2 -4
- package/dist/cjs/actions/public/getTransactionReceipt.js.map +1 -1
- package/dist/cjs/actions/public/simulateContract.js.map +1 -1
- package/dist/cjs/actions/public/watchBlocks.js +2 -4
- package/dist/cjs/actions/public/watchBlocks.js.map +1 -1
- package/dist/cjs/actions/test/sendUnsignedTransaction.js +3 -6
- package/dist/cjs/actions/test/sendUnsignedTransaction.js.map +1 -1
- package/dist/cjs/actions/wallet/sendTransaction.js +3 -6
- package/dist/cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/dist/cjs/chains/formatters/celo.js +62 -0
- package/dist/cjs/chains/formatters/celo.js.map +1 -0
- package/dist/cjs/chains/formatters/optimism.js +43 -0
- package/dist/cjs/chains/formatters/optimism.js.map +1 -0
- package/dist/cjs/{chains.js → chains/index.js} +16 -50
- package/dist/cjs/chains/index.js.map +1 -0
- package/dist/cjs/errors/version.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/serializer.js +3 -0
- package/dist/cjs/types/serializer.js.map +1 -0
- package/dist/cjs/utils/chain.js +6 -2
- package/dist/cjs/utils/chain.js.map +1 -1
- package/dist/cjs/utils/formatters/block.js +2 -4
- package/dist/cjs/utils/formatters/block.js.map +1 -1
- package/dist/cjs/utils/formatters/formatter.js +21 -0
- package/dist/cjs/utils/formatters/formatter.js.map +1 -0
- package/dist/cjs/utils/formatters/transaction.js +3 -4
- package/dist/cjs/utils/formatters/transaction.js.map +1 -1
- package/dist/cjs/utils/formatters/transactionReceipt.js +2 -4
- package/dist/cjs/utils/formatters/transactionReceipt.js.map +1 -1
- package/dist/cjs/utils/formatters/transactionRequest.js +2 -4
- package/dist/cjs/utils/formatters/transactionRequest.js.map +1 -1
- package/dist/cjs/utils/index.js +4 -5
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/wallet.js.map +1 -1
- package/dist/esm/actions/public/call.js +3 -6
- package/dist/esm/actions/public/call.js.map +1 -1
- package/dist/esm/actions/public/estimateContractGas.js.map +1 -1
- package/dist/esm/actions/public/estimateGas.js +3 -6
- package/dist/esm/actions/public/estimateGas.js.map +1 -1
- package/dist/esm/actions/public/getBlock.js +2 -4
- package/dist/esm/actions/public/getBlock.js.map +1 -1
- package/dist/esm/actions/public/getTransaction.js +2 -4
- package/dist/esm/actions/public/getTransaction.js.map +1 -1
- package/dist/esm/actions/public/getTransactionConfirmations.js.map +1 -1
- package/dist/esm/actions/public/getTransactionReceipt.js +2 -4
- package/dist/esm/actions/public/getTransactionReceipt.js.map +1 -1
- package/dist/esm/actions/public/simulateContract.js.map +1 -1
- package/dist/esm/actions/public/watchBlocks.js +2 -4
- package/dist/esm/actions/public/watchBlocks.js.map +1 -1
- package/dist/esm/actions/test/sendUnsignedTransaction.js +3 -6
- package/dist/esm/actions/test/sendUnsignedTransaction.js.map +1 -1
- package/dist/esm/actions/wallet/sendTransaction.js +3 -6
- package/dist/esm/actions/wallet/sendTransaction.js.map +1 -1
- package/dist/esm/chains/formatters/celo.js +59 -0
- package/dist/esm/chains/formatters/celo.js.map +1 -0
- package/dist/esm/chains/formatters/optimism.js +40 -0
- package/dist/esm/chains/formatters/optimism.js.map +1 -0
- package/dist/esm/{chains.js → chains/index.js} +13 -47
- package/dist/esm/chains/index.js.map +1 -0
- package/dist/esm/errors/version.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/serializer.js +2 -0
- package/dist/esm/types/serializer.js.map +1 -0
- package/dist/esm/utils/chain.js +6 -2
- package/dist/esm/utils/chain.js.map +1 -1
- package/dist/esm/utils/formatters/block.js +2 -5
- package/dist/esm/utils/formatters/block.js.map +1 -1
- package/dist/esm/utils/formatters/formatter.js +17 -0
- package/dist/esm/utils/formatters/formatter.js.map +1 -0
- package/dist/esm/utils/formatters/transaction.js +4 -4
- package/dist/esm/utils/formatters/transaction.js.map +1 -1
- package/dist/esm/utils/formatters/transactionReceipt.js +2 -4
- package/dist/esm/utils/formatters/transactionReceipt.js.map +1 -1
- package/dist/esm/utils/formatters/transactionRequest.js +2 -4
- package/dist/esm/utils/formatters/transactionRequest.js.map +1 -1
- package/dist/esm/utils/index.js +1 -1
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/wallet.js.map +1 -1
- package/dist/types/actions/public/call.d.ts +3 -7
- 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 +3 -7
- package/dist/types/actions/public/estimateGas.d.ts.map +1 -1
- package/dist/types/actions/public/getBlock.d.ts +2 -2
- package/dist/types/actions/public/getBlock.d.ts.map +1 -1
- package/dist/types/actions/public/getTransaction.d.ts +2 -2
- package/dist/types/actions/public/getTransaction.d.ts.map +1 -1
- package/dist/types/actions/public/getTransactionConfirmations.d.ts +2 -2
- package/dist/types/actions/public/getTransactionConfirmations.d.ts.map +1 -1
- package/dist/types/actions/public/getTransactionReceipt.d.ts +3 -3
- 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/verifyHash.d.ts +1 -1
- package/dist/types/actions/public/verifyHash.d.ts.map +1 -1
- package/dist/types/actions/public/verifyMessage.d.ts +1 -1
- package/dist/types/actions/public/verifyMessage.d.ts.map +1 -1
- package/dist/types/actions/public/verifyTypedData.d.ts +1 -1
- package/dist/types/actions/public/verifyTypedData.d.ts.map +1 -1
- package/dist/types/actions/public/watchBlocks.d.ts.map +1 -1
- package/dist/types/actions/test/sendUnsignedTransaction.d.ts +2 -8
- package/dist/types/actions/test/sendUnsignedTransaction.d.ts.map +1 -1
- package/dist/types/actions/wallet/sendTransaction.d.ts +2 -7
- package/dist/types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/dist/types/chains/formatters/celo.d.ts +235 -0
- package/dist/types/chains/formatters/celo.d.ts.map +1 -0
- package/dist/types/chains/formatters/optimism.d.ts +286 -0
- package/dist/types/chains/formatters/optimism.d.ts.map +1 -0
- package/dist/types/chains/index.d.ts +5246 -0
- package/dist/types/chains/index.d.ts.map +1 -0
- package/dist/types/errors/version.d.ts +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/chain.d.ts +5 -8
- package/dist/types/types/chain.d.ts.map +1 -1
- package/dist/types/types/fee.d.ts +1 -0
- package/dist/types/types/fee.d.ts.map +1 -1
- package/dist/types/types/formatter.d.ts +8 -10
- package/dist/types/types/formatter.d.ts.map +1 -1
- package/dist/types/types/serializer.d.ts +7 -0
- package/dist/types/types/serializer.d.ts.map +1 -0
- package/dist/types/types/transaction.d.ts +2 -0
- package/dist/types/types/transaction.d.ts.map +1 -1
- package/dist/types/types/utils.d.ts +5 -5
- package/dist/types/types/utils.d.ts.map +1 -1
- package/dist/types/utils/chain.d.ts +4 -1
- package/dist/types/utils/chain.d.ts.map +1 -1
- package/dist/types/utils/formatters/block.d.ts +5 -11
- package/dist/types/utils/formatters/block.d.ts.map +1 -1
- package/dist/types/utils/formatters/formatter.d.ts +6 -0
- package/dist/types/utils/formatters/formatter.d.ts.map +1 -0
- package/dist/types/utils/formatters/transaction.d.ts +5 -11
- package/dist/types/utils/formatters/transaction.d.ts.map +1 -1
- package/dist/types/utils/formatters/transactionReceipt.d.ts +5 -11
- package/dist/types/utils/formatters/transactionReceipt.d.ts.map +1 -1
- package/dist/types/utils/formatters/transactionRequest.d.ts +5 -11
- package/dist/types/utils/formatters/transactionRequest.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +5 -5
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/wallet.d.ts +1 -1
- package/dist/types/wallet.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/actions/public/call.ts +20 -30
- package/src/actions/public/estimateContractGas.ts +7 -1
- package/src/actions/public/estimateGas.ts +20 -30
- package/src/actions/public/getBlock.ts +3 -6
- package/src/actions/public/getTransaction.ts +3 -6
- package/src/actions/public/getTransactionConfirmations.ts +2 -7
- package/src/actions/public/getTransactionReceipt.ts +4 -7
- package/src/actions/public/simulateContract.ts +7 -1
- package/src/actions/public/verifyHash.ts +1 -1
- package/src/actions/public/verifyMessage.ts +1 -1
- package/src/actions/public/verifyTypedData.ts +1 -1
- package/src/actions/public/watchBlocks.ts +2 -4
- package/src/actions/test/sendUnsignedTransaction.ts +18 -32
- package/src/actions/wallet/sendTransaction.ts +18 -32
- package/src/chains/formatters/celo.ts +102 -0
- package/src/chains/formatters/optimism.ts +88 -0
- package/src/{chains.ts → chains/index.ts} +13 -56
- package/src/errors/version.ts +1 -1
- package/src/index.ts +1 -8
- package/src/types/chain.ts +11 -8
- package/src/types/fee.ts +1 -0
- package/src/types/formatter.ts +26 -17
- package/src/types/serializer.ts +19 -0
- package/src/types/transaction.ts +2 -0
- package/src/types/utils.ts +5 -5
- package/src/utils/chain.ts +11 -4
- package/src/utils/formatters/block.ts +5 -17
- package/src/utils/formatters/formatter.ts +32 -0
- package/src/utils/formatters/transaction.ts +7 -21
- package/src/utils/formatters/transactionReceipt.ts +7 -21
- package/src/utils/formatters/transactionRequest.ts +7 -22
- package/src/utils/index.ts +1 -10
- package/src/wallet.ts +0 -1
- package/dist/cjs/chains.js.map +0 -1
- package/dist/cjs/utils/formatters/format.js +0 -23
- package/dist/cjs/utils/formatters/format.js.map +0 -1
- package/dist/esm/chains.js.map +0 -1
- package/dist/esm/utils/formatters/format.js +0 -21
- package/dist/esm/utils/formatters/format.js.map +0 -1
- package/dist/types/chains.d.ts +0 -2834
- package/dist/types/chains.d.ts.map +0 -1
- package/dist/types/utils/formatters/format.d.ts +0 -38
- package/dist/types/utils/formatters/format.d.ts.map +0 -1
- package/src/utils/formatters/format.ts +0 -99
@@ -0,0 +1,286 @@
|
|
1
|
+
import type { FeeValuesEIP1559 } from '../../types/fee.js';
|
2
|
+
import type { Hash, Hex } from '../../types/misc.js';
|
3
|
+
import type { Index, Quantity, RpcTransaction as RpcTransaction_ } from '../../types/rpc.js';
|
4
|
+
import type { Transaction as Transaction_, TransactionBase } from '../../types/transaction.js';
|
5
|
+
type RpcTransaction = RpcTransaction_ & {
|
6
|
+
isSystemTx?: undefined;
|
7
|
+
mint?: undefined;
|
8
|
+
sourceHash?: undefined;
|
9
|
+
};
|
10
|
+
type RpcDepositTransaction = TransactionBase<Quantity, Index> & FeeValuesEIP1559<Quantity> & {
|
11
|
+
isSystemTx?: boolean;
|
12
|
+
mint?: Hex;
|
13
|
+
sourceHash: Hex;
|
14
|
+
type: '0x7e';
|
15
|
+
};
|
16
|
+
type Transaction = Transaction_ & {
|
17
|
+
isSystemTx?: undefined;
|
18
|
+
mint?: undefined;
|
19
|
+
sourceHash?: undefined;
|
20
|
+
};
|
21
|
+
type DepositTransaction = TransactionBase & FeeValuesEIP1559 & {
|
22
|
+
isSystemTx?: boolean;
|
23
|
+
mint?: bigint;
|
24
|
+
sourceHash: Hex;
|
25
|
+
type: 'deposit';
|
26
|
+
};
|
27
|
+
type OptimismOverrides = {
|
28
|
+
RpcBlock: {
|
29
|
+
transactions: Hash[] | OptimismOverrides['RpcTransaction'][];
|
30
|
+
};
|
31
|
+
RpcTransaction: RpcTransaction | RpcDepositTransaction;
|
32
|
+
Transaction: Transaction | DepositTransaction;
|
33
|
+
};
|
34
|
+
export declare const optimismFormatters: {
|
35
|
+
readonly block: (args: Partial<import("../../index.js").RpcBlock> & {
|
36
|
+
transactions: Hash[] | OptimismOverrides['RpcTransaction'][];
|
37
|
+
}) => {
|
38
|
+
baseFeePerGas: bigint | null;
|
39
|
+
difficulty: bigint;
|
40
|
+
extraData: `0x${string}`;
|
41
|
+
gasLimit: bigint;
|
42
|
+
gasUsed: bigint;
|
43
|
+
hash: `0x${string}` | null;
|
44
|
+
logsBloom: `0x${string}` | null;
|
45
|
+
miner: `0x${string}`;
|
46
|
+
mixHash: `0x${string}`;
|
47
|
+
nonce: `0x${string}` | null;
|
48
|
+
number: bigint | null;
|
49
|
+
parentHash: `0x${string}`;
|
50
|
+
receiptsRoot: `0x${string}`;
|
51
|
+
sealFields: `0x${string}`[];
|
52
|
+
sha3Uncles: `0x${string}`;
|
53
|
+
size: bigint;
|
54
|
+
stateRoot: `0x${string}`;
|
55
|
+
timestamp: bigint;
|
56
|
+
totalDifficulty: bigint | null;
|
57
|
+
transactions: `0x${string}`[] | (Transaction | DepositTransaction)[];
|
58
|
+
transactionsRoot: `0x${string}`;
|
59
|
+
uncles: `0x${string}`[];
|
60
|
+
} & {
|
61
|
+
nonce: never;
|
62
|
+
difficulty: never;
|
63
|
+
gasLimit: never;
|
64
|
+
mixHash: never;
|
65
|
+
uncles: never;
|
66
|
+
};
|
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
|
+
};
|
285
|
+
export {};
|
286
|
+
//# sourceMappingURL=optimism.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"optimism.d.ts","sourceRoot":"","sources":["../../../../src/chains/formatters/optimism.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,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;AAInC,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,KAAK,qBAAqB,GAAG,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,GAC3D,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,KAAK,kBAAkB,GAAG,eAAe,GACvC,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;;sBANb,IAAI,EAAE,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA7BjD,SAAS;eACf,SAAS;qBACH,SAAS;;;;;;qBAFT,SAAS;eACf,SAAS;qBACH,SAAS;;;;;;qBAFT,SAAS;eACf,SAAS;qBACH,SAAS;;;;;;;;;;;;;;;;;;;;;;qBAYT,SAAS;eACf,SAAS;qBACH,SAAS;;;;;;;;;;;;;;;;;;;;;cAQd,SAAS;;;oBADH,GAAG;;;;;;;;;;;;;;;;;;;;;;qBATJ,SAAS;eACf,SAAS;qBACH,SAAS;;;;;;;;;;;;;;;;;;;;;;qBAFT,SAAS;eACf,SAAS;qBACH,SAAS;;;;;;;;;;;;;;;;;;;;;cAQd,SAAS;;;oBADH,GAAG;;;;;;;;;;;;;;;;;;;;;;qBATJ,SAAS;eACf,SAAS;qBACH,SAAS;;;;;;;;;;;;;;;;;;;;;;qBAFT,SAAS;eACf,SAAS;qBACH,SAAS;;;;;;;;;;;;;;;;;;;;;cAQd,SAAS;;;oBADH,GAAG;;CAgDT,CAAA"}
|