@nadohq/shared 0.1.0-alpha.12 → 0.1.0-alpha.13

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