@nadohq/shared 0.1.0-alpha.5 → 0.1.0-alpha.6

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: abitype.Address;
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: abitype.Address;
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: abitype.Address | null;
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: abitype.Address | null;
215
- from: abitype.Address;
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: abitype.Address;
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: abitype.Address | null;
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: abitype.Address;
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: abitype.Address | null;
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: abitype.Address;
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: abitype.Address | null;
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: abitype.Address;
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: abitype.Address | null;
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: abitype.Address | null | undefined;
359
+ contractAddress: viem.Address | null | undefined;
361
360
  cumulativeGasUsed: bigint;
362
361
  effectiveGasPrice: bigint;
363
- from: abitype.Address;
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: abitype.Address | null;
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: abitype.Address;
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: abitype.Address;
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: abitype.Address | null;
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: abitype.Address | null;
215
- from: abitype.Address;
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: abitype.Address;
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: abitype.Address | null;
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: abitype.Address;
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: abitype.Address | null;
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: abitype.Address;
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: abitype.Address | null;
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: abitype.Address;
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: abitype.Address | null;
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: abitype.Address | null | undefined;
359
+ contractAddress: viem.Address | null | undefined;
361
360
  cumulativeGasUsed: bigint;
362
361
  effectiveGasPrice: bigint;
363
- from: abitype.Address;
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: abitype.Address | null;
368
+ to: viem.Address | null;
370
369
  transactionHash: viem.Hash;
371
370
  transactionIndex: number;
372
371
  type: viem.TransactionType;
@@ -1,6 +1,5 @@
1
1
  export { CHAIN_ENV_TO_CHAIN, CHAIN_ID_TO_CHAIN_ENV } from './chainEnvToChain.cjs';
2
2
  export { NLP_PRODUCT_ID, QUOTE_PRODUCT_ID } from './productIds.cjs';
3
- import 'abitype';
4
3
  import 'viem/chains';
5
4
  import 'viem';
6
5
  import '../types/ChainEnv.cjs';
@@ -1,6 +1,5 @@
1
1
  export { CHAIN_ENV_TO_CHAIN, CHAIN_ID_TO_CHAIN_ENV } from './chainEnvToChain.js';
2
2
  export { NLP_PRODUCT_ID, QUOTE_PRODUCT_ID } from './productIds.js';
3
- import 'abitype';
4
3
  import 'viem/chains';
5
4
  import 'viem';
6
5
  import '../types/ChainEnv.js';
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.5",
3
+ "version": "0.1.0-alpha.6",
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": "de119d61db2be44b2cab79b8d373b66eb0f8ffe6"
48
+ "gitHead": "660de2d7026b3ebacd2f17115196f94438bcc8bb"
49
49
  }