@nadohq/shared 0.1.0-alpha.7 → 0.1.0-alpha.8
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.
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as abitype from 'abitype';
|
|
2
1
|
import * as viem_chains from 'viem/chains';
|
|
3
2
|
import * as viem from 'viem';
|
|
4
3
|
import { ChainEnv } from '../types/ChainEnv.cjs';
|
|
@@ -160,7 +159,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
160
159
|
gasUsed: bigint;
|
|
161
160
|
hash: `0x${string}` | null;
|
|
162
161
|
logsBloom: `0x${string}` | null;
|
|
163
|
-
miner:
|
|
162
|
+
miner: viem.Address;
|
|
164
163
|
mixHash: viem.Hash;
|
|
165
164
|
nonce: `0x${string}` | null;
|
|
166
165
|
number: bigint | null;
|
|
@@ -186,14 +185,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
186
185
|
format: (args: viem_chains.OpStackRpcTransaction) => ({
|
|
187
186
|
blockHash: `0x${string}` | null;
|
|
188
187
|
blockNumber: bigint | null;
|
|
189
|
-
from:
|
|
188
|
+
from: viem.Address;
|
|
190
189
|
gas: bigint;
|
|
191
190
|
hash: viem.Hash;
|
|
192
191
|
input: viem.Hex;
|
|
193
192
|
nonce: number;
|
|
194
193
|
r: viem.Hex;
|
|
195
194
|
s: viem.Hex;
|
|
196
|
-
to:
|
|
195
|
+
to: viem.Address | null;
|
|
197
196
|
transactionIndex: number | null;
|
|
198
197
|
typeHex: viem.Hex | null;
|
|
199
198
|
v: bigint;
|
|
@@ -211,8 +210,8 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
211
210
|
r: viem.Hex;
|
|
212
211
|
s: viem.Hex;
|
|
213
212
|
v: bigint;
|
|
214
|
-
to:
|
|
215
|
-
from:
|
|
213
|
+
to: viem.Address | null;
|
|
214
|
+
from: viem.Address;
|
|
216
215
|
gas: bigint;
|
|
217
216
|
nonce: number;
|
|
218
217
|
value: bigint;
|
|
@@ -238,14 +237,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
238
237
|
} | {
|
|
239
238
|
blockHash: `0x${string}` | null;
|
|
240
239
|
blockNumber: bigint | null;
|
|
241
|
-
from:
|
|
240
|
+
from: viem.Address;
|
|
242
241
|
gas: bigint;
|
|
243
242
|
hash: viem.Hash;
|
|
244
243
|
input: viem.Hex;
|
|
245
244
|
nonce: number;
|
|
246
245
|
r: viem.Hex;
|
|
247
246
|
s: viem.Hex;
|
|
248
|
-
to:
|
|
247
|
+
to: viem.Address | null;
|
|
249
248
|
transactionIndex: number | null;
|
|
250
249
|
typeHex: viem.Hex | null;
|
|
251
250
|
v: bigint;
|
|
@@ -266,14 +265,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
266
265
|
} | {
|
|
267
266
|
blockHash: `0x${string}` | null;
|
|
268
267
|
blockNumber: bigint | null;
|
|
269
|
-
from:
|
|
268
|
+
from: viem.Address;
|
|
270
269
|
gas: bigint;
|
|
271
270
|
hash: viem.Hash;
|
|
272
271
|
input: viem.Hex;
|
|
273
272
|
nonce: number;
|
|
274
273
|
r: viem.Hex;
|
|
275
274
|
s: viem.Hex;
|
|
276
|
-
to:
|
|
275
|
+
to: viem.Address | null;
|
|
277
276
|
transactionIndex: number | null;
|
|
278
277
|
typeHex: viem.Hex | null;
|
|
279
278
|
v: bigint;
|
|
@@ -294,14 +293,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
294
293
|
} | {
|
|
295
294
|
blockHash: `0x${string}` | null;
|
|
296
295
|
blockNumber: bigint | null;
|
|
297
|
-
from:
|
|
296
|
+
from: viem.Address;
|
|
298
297
|
gas: bigint;
|
|
299
298
|
hash: viem.Hash;
|
|
300
299
|
input: viem.Hex;
|
|
301
300
|
nonce: number;
|
|
302
301
|
r: viem.Hex;
|
|
303
302
|
s: viem.Hex;
|
|
304
|
-
to:
|
|
303
|
+
to: viem.Address | null;
|
|
305
304
|
transactionIndex: number | null;
|
|
306
305
|
typeHex: viem.Hex | null;
|
|
307
306
|
v: bigint;
|
|
@@ -322,14 +321,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
322
321
|
} | {
|
|
323
322
|
blockHash: `0x${string}` | null;
|
|
324
323
|
blockNumber: bigint | null;
|
|
325
|
-
from:
|
|
324
|
+
from: viem.Address;
|
|
326
325
|
gas: bigint;
|
|
327
326
|
hash: viem.Hash;
|
|
328
327
|
input: viem.Hex;
|
|
329
328
|
nonce: number;
|
|
330
329
|
r: viem.Hex;
|
|
331
330
|
s: viem.Hex;
|
|
332
|
-
to:
|
|
331
|
+
to: viem.Address | null;
|
|
333
332
|
transactionIndex: number | null;
|
|
334
333
|
typeHex: viem.Hex | null;
|
|
335
334
|
v: bigint;
|
|
@@ -357,16 +356,16 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
357
356
|
blobGasUsed?: bigint | undefined;
|
|
358
357
|
blockHash: viem.Hash;
|
|
359
358
|
blockNumber: bigint;
|
|
360
|
-
contractAddress:
|
|
359
|
+
contractAddress: viem.Address | null | undefined;
|
|
361
360
|
cumulativeGasUsed: bigint;
|
|
362
361
|
effectiveGasPrice: bigint;
|
|
363
|
-
from:
|
|
362
|
+
from: viem.Address;
|
|
364
363
|
gasUsed: bigint;
|
|
365
364
|
logs: viem.Log<bigint, number, false>[];
|
|
366
365
|
logsBloom: viem.Hex;
|
|
367
366
|
root?: `0x${string}` | undefined;
|
|
368
367
|
status: "success" | "reverted";
|
|
369
|
-
to:
|
|
368
|
+
to: viem.Address | null;
|
|
370
369
|
transactionHash: viem.Hash;
|
|
371
370
|
transactionIndex: number;
|
|
372
371
|
type: viem.TransactionType;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as abitype from 'abitype';
|
|
2
1
|
import * as viem_chains from 'viem/chains';
|
|
3
2
|
import * as viem from 'viem';
|
|
4
3
|
import { ChainEnv } from '../types/ChainEnv.js';
|
|
@@ -160,7 +159,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
160
159
|
gasUsed: bigint;
|
|
161
160
|
hash: `0x${string}` | null;
|
|
162
161
|
logsBloom: `0x${string}` | null;
|
|
163
|
-
miner:
|
|
162
|
+
miner: viem.Address;
|
|
164
163
|
mixHash: viem.Hash;
|
|
165
164
|
nonce: `0x${string}` | null;
|
|
166
165
|
number: bigint | null;
|
|
@@ -186,14 +185,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
186
185
|
format: (args: viem_chains.OpStackRpcTransaction) => ({
|
|
187
186
|
blockHash: `0x${string}` | null;
|
|
188
187
|
blockNumber: bigint | null;
|
|
189
|
-
from:
|
|
188
|
+
from: viem.Address;
|
|
190
189
|
gas: bigint;
|
|
191
190
|
hash: viem.Hash;
|
|
192
191
|
input: viem.Hex;
|
|
193
192
|
nonce: number;
|
|
194
193
|
r: viem.Hex;
|
|
195
194
|
s: viem.Hex;
|
|
196
|
-
to:
|
|
195
|
+
to: viem.Address | null;
|
|
197
196
|
transactionIndex: number | null;
|
|
198
197
|
typeHex: viem.Hex | null;
|
|
199
198
|
v: bigint;
|
|
@@ -211,8 +210,8 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
211
210
|
r: viem.Hex;
|
|
212
211
|
s: viem.Hex;
|
|
213
212
|
v: bigint;
|
|
214
|
-
to:
|
|
215
|
-
from:
|
|
213
|
+
to: viem.Address | null;
|
|
214
|
+
from: viem.Address;
|
|
216
215
|
gas: bigint;
|
|
217
216
|
nonce: number;
|
|
218
217
|
value: bigint;
|
|
@@ -238,14 +237,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
238
237
|
} | {
|
|
239
238
|
blockHash: `0x${string}` | null;
|
|
240
239
|
blockNumber: bigint | null;
|
|
241
|
-
from:
|
|
240
|
+
from: viem.Address;
|
|
242
241
|
gas: bigint;
|
|
243
242
|
hash: viem.Hash;
|
|
244
243
|
input: viem.Hex;
|
|
245
244
|
nonce: number;
|
|
246
245
|
r: viem.Hex;
|
|
247
246
|
s: viem.Hex;
|
|
248
|
-
to:
|
|
247
|
+
to: viem.Address | null;
|
|
249
248
|
transactionIndex: number | null;
|
|
250
249
|
typeHex: viem.Hex | null;
|
|
251
250
|
v: bigint;
|
|
@@ -266,14 +265,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
266
265
|
} | {
|
|
267
266
|
blockHash: `0x${string}` | null;
|
|
268
267
|
blockNumber: bigint | null;
|
|
269
|
-
from:
|
|
268
|
+
from: viem.Address;
|
|
270
269
|
gas: bigint;
|
|
271
270
|
hash: viem.Hash;
|
|
272
271
|
input: viem.Hex;
|
|
273
272
|
nonce: number;
|
|
274
273
|
r: viem.Hex;
|
|
275
274
|
s: viem.Hex;
|
|
276
|
-
to:
|
|
275
|
+
to: viem.Address | null;
|
|
277
276
|
transactionIndex: number | null;
|
|
278
277
|
typeHex: viem.Hex | null;
|
|
279
278
|
v: bigint;
|
|
@@ -294,14 +293,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
294
293
|
} | {
|
|
295
294
|
blockHash: `0x${string}` | null;
|
|
296
295
|
blockNumber: bigint | null;
|
|
297
|
-
from:
|
|
296
|
+
from: viem.Address;
|
|
298
297
|
gas: bigint;
|
|
299
298
|
hash: viem.Hash;
|
|
300
299
|
input: viem.Hex;
|
|
301
300
|
nonce: number;
|
|
302
301
|
r: viem.Hex;
|
|
303
302
|
s: viem.Hex;
|
|
304
|
-
to:
|
|
303
|
+
to: viem.Address | null;
|
|
305
304
|
transactionIndex: number | null;
|
|
306
305
|
typeHex: viem.Hex | null;
|
|
307
306
|
v: bigint;
|
|
@@ -322,14 +321,14 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
322
321
|
} | {
|
|
323
322
|
blockHash: `0x${string}` | null;
|
|
324
323
|
blockNumber: bigint | null;
|
|
325
|
-
from:
|
|
324
|
+
from: viem.Address;
|
|
326
325
|
gas: bigint;
|
|
327
326
|
hash: viem.Hash;
|
|
328
327
|
input: viem.Hex;
|
|
329
328
|
nonce: number;
|
|
330
329
|
r: viem.Hex;
|
|
331
330
|
s: viem.Hex;
|
|
332
|
-
to:
|
|
331
|
+
to: viem.Address | null;
|
|
333
332
|
transactionIndex: number | null;
|
|
334
333
|
typeHex: viem.Hex | null;
|
|
335
334
|
v: bigint;
|
|
@@ -357,16 +356,16 @@ declare const CHAIN_ENV_TO_CHAIN: {
|
|
|
357
356
|
blobGasUsed?: bigint | undefined;
|
|
358
357
|
blockHash: viem.Hash;
|
|
359
358
|
blockNumber: bigint;
|
|
360
|
-
contractAddress:
|
|
359
|
+
contractAddress: viem.Address | null | undefined;
|
|
361
360
|
cumulativeGasUsed: bigint;
|
|
362
361
|
effectiveGasPrice: bigint;
|
|
363
|
-
from:
|
|
362
|
+
from: viem.Address;
|
|
364
363
|
gasUsed: bigint;
|
|
365
364
|
logs: viem.Log<bigint, number, false>[];
|
|
366
365
|
logsBloom: viem.Hex;
|
|
367
366
|
root?: `0x${string}` | undefined;
|
|
368
367
|
status: "success" | "reverted";
|
|
369
|
-
to:
|
|
368
|
+
to: viem.Address | null;
|
|
370
369
|
transactionHash: viem.Hash;
|
|
371
370
|
transactionIndex: number;
|
|
372
371
|
type: viem.TransactionType;
|
package/dist/consts/index.d.cts
CHANGED
package/dist/consts/index.d.ts
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -62,6 +62,6 @@ export { mapValues } from './utils/mapValues.cjs';
|
|
|
62
62
|
export { TimeInSeconds, millisToSeconds, nowInSeconds } from './utils/time.cjs';
|
|
63
63
|
export { toPrintableObject } from './utils/toPrintableObject.cjs';
|
|
64
64
|
export { default as BigDecimal } from 'bignumber.js';
|
|
65
|
-
import 'abitype';
|
|
66
65
|
import 'viem/chains';
|
|
67
66
|
import 'viem';
|
|
67
|
+
import 'abitype';
|
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,6 @@ export { mapValues } from './utils/mapValues.js';
|
|
|
62
62
|
export { TimeInSeconds, millisToSeconds, nowInSeconds } from './utils/time.js';
|
|
63
63
|
export { toPrintableObject } from './utils/toPrintableObject.js';
|
|
64
64
|
export { default as BigDecimal } from 'bignumber.js';
|
|
65
|
-
import 'abitype';
|
|
66
65
|
import 'viem/chains';
|
|
67
66
|
import 'viem';
|
|
67
|
+
import 'abitype';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadohq/shared",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Shared utilities, types, and contract helpers for Nado SDK",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"bignumber.js": "^9.3.0",
|
|
46
46
|
"viem": "*"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "3488a83313ef5c199b2fc9a3cd70f477e80e74db"
|
|
49
49
|
}
|