@nadohq/shared 0.1.0-alpha.4 → 0.1.0-alpha.40

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.
Files changed (140) hide show
  1. package/dist/abis/index.cjs +12 -12
  2. package/dist/abis/index.cjs.map +1 -1
  3. package/dist/abis/index.d.cts +6 -6
  4. package/dist/abis/index.d.ts +6 -6
  5. package/dist/abis/index.js +6 -6
  6. package/dist/abis/index.js.map +1 -1
  7. package/dist/consts/chainEnvToChain.cjs +2 -2
  8. package/dist/consts/chainEnvToChain.cjs.map +1 -1
  9. package/dist/consts/chainEnvToChain.d.cts +308 -39
  10. package/dist/consts/chainEnvToChain.d.ts +308 -39
  11. package/dist/consts/chainEnvToChain.js +3 -3
  12. package/dist/consts/chainEnvToChain.js.map +1 -1
  13. package/dist/consts/productIds.cjs +1 -1
  14. package/dist/consts/productIds.cjs.map +1 -1
  15. package/dist/consts/productIds.d.cts +1 -1
  16. package/dist/consts/productIds.d.ts +1 -1
  17. package/dist/consts/productIds.js +1 -1
  18. package/dist/consts/productIds.js.map +1 -1
  19. package/dist/deployments/core/deployment.inkMainnet.json +13 -0
  20. package/dist/deployments/core/deployment.inkSepolia.json +13 -0
  21. package/dist/deployments/index.cjs +6 -6
  22. package/dist/deployments/index.cjs.map +1 -1
  23. package/dist/deployments/index.js +5 -5
  24. package/dist/deployments/index.js.map +1 -1
  25. package/dist/eip712/eip712ValueTypes.d.cts +1 -1
  26. package/dist/eip712/eip712ValueTypes.d.ts +1 -1
  27. package/dist/eip712/getNadoEIP712Domain.cjs.map +1 -1
  28. package/dist/eip712/getNadoEIP712Domain.js.map +1 -1
  29. package/dist/eip712/index.cjs +13 -13
  30. package/dist/eip712/index.cjs.map +1 -1
  31. package/dist/eip712/index.d.cts +9 -9
  32. package/dist/eip712/index.d.ts +9 -9
  33. package/dist/eip712/index.js +6 -6
  34. package/dist/eip712/index.js.map +1 -1
  35. package/dist/index.d.cts +33 -33
  36. package/dist/index.d.ts +33 -33
  37. package/dist/types/ChainEnv.cjs +1 -1
  38. package/dist/types/ChainEnv.cjs.map +1 -1
  39. package/dist/types/ChainEnv.d.cts +2 -2
  40. package/dist/types/ChainEnv.d.ts +2 -2
  41. package/dist/types/ChainEnv.js +1 -1
  42. package/dist/types/ChainEnv.js.map +1 -1
  43. package/dist/types/index.cjs +7 -7
  44. package/dist/types/index.cjs.map +1 -1
  45. package/dist/types/index.d.cts +4 -4
  46. package/dist/types/index.d.ts +4 -4
  47. package/dist/types/index.js +3 -3
  48. package/dist/types/index.js.map +1 -1
  49. package/dist/types/orderAppendixTypes.cjs.map +1 -1
  50. package/dist/types/orderAppendixTypes.d.cts +7 -3
  51. package/dist/types/orderAppendixTypes.d.ts +7 -3
  52. package/dist/utils/createDeterministicLinkedSignerPrivateKey.cjs.map +1 -1
  53. package/dist/utils/createDeterministicLinkedSignerPrivateKey.js.map +1 -1
  54. package/dist/utils/index.cjs +12 -12
  55. package/dist/utils/index.cjs.map +1 -1
  56. package/dist/utils/index.d.cts +21 -21
  57. package/dist/utils/index.d.ts +21 -21
  58. package/dist/utils/index.js +6 -6
  59. package/dist/utils/index.js.map +1 -1
  60. package/dist/utils/math/index.cjs +8 -8
  61. package/dist/utils/math/index.cjs.map +1 -1
  62. package/dist/utils/math/index.d.cts +4 -4
  63. package/dist/utils/math/index.d.ts +4 -4
  64. package/dist/utils/math/index.js +4 -4
  65. package/dist/utils/math/index.js.map +1 -1
  66. package/dist/utils/orders/appendix/appendixIsolatedValue.cjs +50 -0
  67. package/dist/utils/orders/appendix/appendixIsolatedValue.cjs.map +1 -0
  68. package/dist/utils/orders/appendix/appendixIsolatedValue.d.cts +26 -0
  69. package/dist/utils/orders/appendix/appendixIsolatedValue.d.ts +26 -0
  70. package/dist/utils/orders/appendix/appendixIsolatedValue.js +31 -0
  71. package/dist/utils/orders/appendix/appendixIsolatedValue.js.map +1 -0
  72. package/dist/utils/orders/appendix/{appendixTWAPValue.cjs → appendixTwapValue.cjs} +14 -15
  73. package/dist/utils/orders/appendix/appendixTwapValue.cjs.map +1 -0
  74. package/dist/utils/orders/appendix/appendixTwapValue.d.cts +29 -0
  75. package/dist/utils/orders/appendix/appendixTwapValue.d.ts +29 -0
  76. package/dist/utils/orders/appendix/appendixTwapValue.js +25 -0
  77. package/dist/utils/orders/appendix/appendixTwapValue.js.map +1 -0
  78. package/dist/utils/orders/appendix/index.cjs +6 -6
  79. package/dist/utils/orders/appendix/index.cjs.map +1 -1
  80. package/dist/utils/orders/appendix/index.d.cts +3 -3
  81. package/dist/utils/orders/appendix/index.d.ts +3 -3
  82. package/dist/utils/orders/appendix/index.js +3 -3
  83. package/dist/utils/orders/appendix/index.js.map +1 -1
  84. package/dist/utils/orders/appendix/orderAppendix.test.cjs +11 -12
  85. package/dist/utils/orders/appendix/orderAppendix.test.cjs.map +1 -1
  86. package/dist/utils/orders/appendix/orderAppendix.test.js +11 -12
  87. package/dist/utils/orders/appendix/orderAppendix.test.js.map +1 -1
  88. package/dist/utils/orders/appendix/packOrderAppendix.cjs +7 -7
  89. package/dist/utils/orders/appendix/packOrderAppendix.cjs.map +1 -1
  90. package/dist/utils/orders/appendix/packOrderAppendix.js +7 -7
  91. package/dist/utils/orders/appendix/packOrderAppendix.js.map +1 -1
  92. package/dist/utils/orders/appendix/types.cjs.map +1 -1
  93. package/dist/utils/orders/appendix/types.d.cts +2 -2
  94. package/dist/utils/orders/appendix/types.d.ts +2 -2
  95. package/dist/utils/orders/appendix/unpackOrderAppendix.cjs +7 -6
  96. package/dist/utils/orders/appendix/unpackOrderAppendix.cjs.map +1 -1
  97. package/dist/utils/orders/appendix/unpackOrderAppendix.js +7 -6
  98. package/dist/utils/orders/appendix/unpackOrderAppendix.js.map +1 -1
  99. package/dist/utils/orders/index.cjs +3 -3
  100. package/dist/utils/orders/index.cjs.map +1 -1
  101. package/dist/utils/orders/index.d.cts +5 -5
  102. package/dist/utils/orders/index.d.ts +5 -5
  103. package/dist/utils/orders/index.js +1 -1
  104. package/dist/utils/orders/index.js.map +1 -1
  105. package/dist/utils/productTypeFilter.cjs.map +1 -1
  106. package/dist/utils/productTypeFilter.js.map +1 -1
  107. package/package.json +6 -2
  108. package/src/abis/index.ts +6 -6
  109. package/src/consts/chainEnvToChain.ts +2 -2
  110. package/src/consts/productIds.ts +1 -1
  111. package/src/deployments/core/deployment.inkMainnet.json +13 -0
  112. package/src/deployments/core/deployment.inkSepolia.json +13 -0
  113. package/src/deployments/index.ts +5 -5
  114. package/src/eip712/getNadoEIP712Domain.ts +1 -1
  115. package/src/eip712/index.ts +6 -6
  116. package/src/types/ChainEnv.ts +1 -1
  117. package/src/types/index.ts +3 -3
  118. package/src/types/orderAppendixTypes.ts +6 -2
  119. package/src/utils/createDeterministicLinkedSignerPrivateKey.ts +1 -1
  120. package/src/utils/index.ts +6 -6
  121. package/src/utils/math/index.ts +4 -4
  122. package/src/utils/orders/appendix/appendixIsolatedValue.ts +49 -0
  123. package/src/utils/orders/appendix/appendixTwapValue.ts +46 -0
  124. package/src/utils/orders/appendix/index.ts +3 -3
  125. package/src/utils/orders/appendix/orderAppendix.test.ts +10 -11
  126. package/src/utils/orders/appendix/packOrderAppendix.ts +8 -8
  127. package/src/utils/orders/appendix/types.ts +5 -5
  128. package/src/utils/orders/appendix/unpackOrderAppendix.ts +8 -7
  129. package/src/utils/orders/index.ts +1 -1
  130. package/src/utils/productTypeFilter.ts +2 -2
  131. package/dist/deployments/core/deployment.InkSepolia.json +0 -13
  132. package/dist/deployments/core/deployment.arbitrumOne.json +0 -18
  133. package/dist/utils/orders/appendix/appendixTWAPValue.cjs.map +0 -1
  134. package/dist/utils/orders/appendix/appendixTWAPValue.d.cts +0 -31
  135. package/dist/utils/orders/appendix/appendixTWAPValue.d.ts +0 -31
  136. package/dist/utils/orders/appendix/appendixTWAPValue.js +0 -26
  137. package/dist/utils/orders/appendix/appendixTWAPValue.js.map +0 -1
  138. package/src/deployments/core/deployment.InkSepolia.json +0 -13
  139. package/src/deployments/core/deployment.arbitrumOne.json +0 -18
  140. package/src/utils/orders/appendix/appendixTWAPValue.ts +0 -51
@@ -17,25 +17,25 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
17
17
  // src/abis/index.ts
18
18
  var abis_exports = {};
19
19
  module.exports = __toCommonJS(abis_exports);
20
+ __reExport(abis_exports, require("./Clearinghouse.cjs"), module.exports);
21
+ __reExport(abis_exports, require("./Endpoint.cjs"), module.exports);
20
22
  __reExport(abis_exports, require("./ERC20.cjs"), module.exports);
21
23
  __reExport(abis_exports, require("./MockERC20.cjs"), module.exports);
22
- __reExport(abis_exports, require("./WithdrawPool.cjs"), module.exports);
23
- __reExport(abis_exports, require("./SpotEngine.cjs"), module.exports);
24
- __reExport(abis_exports, require("./Querier.cjs"), module.exports);
25
- __reExport(abis_exports, require("./PerpEngine.cjs"), module.exports);
26
- __reExport(abis_exports, require("./Endpoint.cjs"), module.exports);
27
- __reExport(abis_exports, require("./Clearinghouse.cjs"), module.exports);
28
24
  __reExport(abis_exports, require("./nadoAbis.cjs"), module.exports);
25
+ __reExport(abis_exports, require("./PerpEngine.cjs"), module.exports);
26
+ __reExport(abis_exports, require("./Querier.cjs"), module.exports);
27
+ __reExport(abis_exports, require("./SpotEngine.cjs"), module.exports);
28
+ __reExport(abis_exports, require("./WithdrawPool.cjs"), module.exports);
29
29
  // Annotate the CommonJS export names for ESM import in node:
30
30
  0 && (module.exports = {
31
+ ...require("./Clearinghouse.cjs"),
32
+ ...require("./Endpoint.cjs"),
31
33
  ...require("./ERC20.cjs"),
32
34
  ...require("./MockERC20.cjs"),
33
- ...require("./WithdrawPool.cjs"),
34
- ...require("./SpotEngine.cjs"),
35
- ...require("./Querier.cjs"),
35
+ ...require("./nadoAbis.cjs"),
36
36
  ...require("./PerpEngine.cjs"),
37
- ...require("./Endpoint.cjs"),
38
- ...require("./Clearinghouse.cjs"),
39
- ...require("./nadoAbis.cjs")
37
+ ...require("./Querier.cjs"),
38
+ ...require("./SpotEngine.cjs"),
39
+ ...require("./WithdrawPool.cjs")
40
40
  });
41
41
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/abis/index.ts"],"sourcesContent":["export * from './ERC20';\nexport * from './MockERC20';\nexport * from './WithdrawPool';\nexport * from './SpotEngine';\nexport * from './Querier';\nexport * from './PerpEngine';\nexport * from './Endpoint';\nexport * from './Clearinghouse';\nexport * from './nadoAbis';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,yBAAc,wBAAd;AACA,yBAAc,4BADd;AAEA,yBAAc,+BAFd;AAGA,yBAAc,6BAHd;AAIA,yBAAc,0BAJd;AAKA,yBAAc,6BALd;AAMA,yBAAc,2BANd;AAOA,yBAAc,gCAPd;AAQA,yBAAc,2BARd;","names":[]}
1
+ {"version":3,"sources":["../../src/abis/index.ts"],"sourcesContent":["export * from './Clearinghouse';\nexport * from './Endpoint';\nexport * from './ERC20';\nexport * from './MockERC20';\nexport * from './nadoAbis';\nexport * from './PerpEngine';\nexport * from './Querier';\nexport * from './SpotEngine';\nexport * from './WithdrawPool';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,yBAAc,gCAAd;AACA,yBAAc,2BADd;AAEA,yBAAc,wBAFd;AAGA,yBAAc,4BAHd;AAIA,yBAAc,2BAJd;AAKA,yBAAc,6BALd;AAMA,yBAAc,0BANd;AAOA,yBAAc,6BAPd;AAQA,yBAAc,+BARd;","names":[]}
@@ -1,9 +1,9 @@
1
+ export { CLEARINGHOUSE_ABI } from './Clearinghouse.cjs';
2
+ export { ENDPOINT_ABI } from './Endpoint.cjs';
1
3
  export { ERC20_ABI } from './ERC20.cjs';
2
4
  export { MOCK_ERC20_ABI } from './MockERC20.cjs';
3
- export { WITHDRAW_POOL_ABI } from './WithdrawPool.cjs';
4
- export { SPOT_ENGINE_ABI } from './SpotEngine.cjs';
5
- export { QUERIER_ABI } from './Querier.cjs';
6
- export { PERP_ENGINE_ABI } from './PerpEngine.cjs';
7
- export { ENDPOINT_ABI } from './Endpoint.cjs';
8
- export { CLEARINGHOUSE_ABI } from './Clearinghouse.cjs';
9
5
  export { NADO_ABIS, NadoAbis, NadoContractName } from './nadoAbis.cjs';
6
+ export { PERP_ENGINE_ABI } from './PerpEngine.cjs';
7
+ export { QUERIER_ABI } from './Querier.cjs';
8
+ export { SPOT_ENGINE_ABI } from './SpotEngine.cjs';
9
+ export { WITHDRAW_POOL_ABI } from './WithdrawPool.cjs';
@@ -1,9 +1,9 @@
1
+ export { CLEARINGHOUSE_ABI } from './Clearinghouse.js';
2
+ export { ENDPOINT_ABI } from './Endpoint.js';
1
3
  export { ERC20_ABI } from './ERC20.js';
2
4
  export { MOCK_ERC20_ABI } from './MockERC20.js';
3
- export { WITHDRAW_POOL_ABI } from './WithdrawPool.js';
4
- export { SPOT_ENGINE_ABI } from './SpotEngine.js';
5
- export { QUERIER_ABI } from './Querier.js';
6
- export { PERP_ENGINE_ABI } from './PerpEngine.js';
7
- export { ENDPOINT_ABI } from './Endpoint.js';
8
- export { CLEARINGHOUSE_ABI } from './Clearinghouse.js';
9
5
  export { NADO_ABIS, NadoAbis, NadoContractName } from './nadoAbis.js';
6
+ export { PERP_ENGINE_ABI } from './PerpEngine.js';
7
+ export { QUERIER_ABI } from './Querier.js';
8
+ export { SPOT_ENGINE_ABI } from './SpotEngine.js';
9
+ export { WITHDRAW_POOL_ABI } from './WithdrawPool.js';
@@ -1,11 +1,11 @@
1
1
  // src/abis/index.ts
2
+ export * from "./Clearinghouse.js";
3
+ export * from "./Endpoint.js";
2
4
  export * from "./ERC20.js";
3
5
  export * from "./MockERC20.js";
4
- export * from "./WithdrawPool.js";
5
- export * from "./SpotEngine.js";
6
- export * from "./Querier.js";
7
- export * from "./PerpEngine.js";
8
- export * from "./Endpoint.js";
9
- export * from "./Clearinghouse.js";
10
6
  export * from "./nadoAbis.js";
7
+ export * from "./PerpEngine.js";
8
+ export * from "./Querier.js";
9
+ export * from "./SpotEngine.js";
10
+ export * from "./WithdrawPool.js";
11
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/abis/index.ts"],"sourcesContent":["export * from './ERC20';\nexport * from './MockERC20';\nexport * from './WithdrawPool';\nexport * from './SpotEngine';\nexport * from './Querier';\nexport * from './PerpEngine';\nexport * from './Endpoint';\nexport * from './Clearinghouse';\nexport * from './nadoAbis';\n"],"mappings":";AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/abis/index.ts"],"sourcesContent":["export * from './Clearinghouse';\nexport * from './Endpoint';\nexport * from './ERC20';\nexport * from './MockERC20';\nexport * from './nadoAbis';\nexport * from './PerpEngine';\nexport * from './Querier';\nexport * from './SpotEngine';\nexport * from './WithdrawPool';\n"],"mappings":";AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -27,8 +27,8 @@ module.exports = __toCommonJS(chainEnvToChain_exports);
27
27
  var import_chains = require("viem/chains");
28
28
  var CHAIN_ENV_TO_CHAIN = {
29
29
  local: import_chains.localhost,
30
- arbitrum: import_chains.arbitrum,
31
- inkTestnet: import_chains.inkSepolia
30
+ inkTestnet: import_chains.inkSepolia,
31
+ inkMainnet: import_chains.ink
32
32
  };
33
33
  var CHAIN_ID_TO_CHAIN_ENV = Object.fromEntries(
34
34
  Object.entries(CHAIN_ENV_TO_CHAIN).map(([chainEnv, chain]) => [
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/consts/chainEnvToChain.ts"],"sourcesContent":["import { Chain } from 'viem';\nimport { arbitrum, inkSepolia, localhost } from 'viem/chains';\nimport { ChainEnv } from '../types';\n\nexport const CHAIN_ENV_TO_CHAIN = {\n local: localhost,\n arbitrum: arbitrum,\n inkTestnet: inkSepolia,\n} as const satisfies Record<ChainEnv, Chain>;\n\nexport const CHAIN_ID_TO_CHAIN_ENV = Object.fromEntries(\n Object.entries(CHAIN_ENV_TO_CHAIN).map(([chainEnv, chain]) => [\n chain.id,\n chainEnv,\n ]),\n) as Record<number, ChainEnv>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAgD;AAGzC,IAAM,qBAAqB;AAAA,EAChC,OAAO;AAAA,EACP,UAAU;AAAA,EACV,YAAY;AACd;AAEO,IAAM,wBAAwB,OAAO;AAAA,EAC1C,OAAO,QAAQ,kBAAkB,EAAE,IAAI,CAAC,CAAC,UAAU,KAAK,MAAM;AAAA,IAC5D,MAAM;AAAA,IACN;AAAA,EACF,CAAC;AACH;","names":[]}
1
+ {"version":3,"sources":["../../src/consts/chainEnvToChain.ts"],"sourcesContent":["import { Chain } from 'viem';\nimport { inkSepolia, ink, localhost } from 'viem/chains';\nimport { ChainEnv } from '../types';\n\nexport const CHAIN_ENV_TO_CHAIN = {\n local: localhost,\n inkTestnet: inkSepolia,\n inkMainnet: ink,\n} as const satisfies Record<ChainEnv, Chain>;\n\nexport const CHAIN_ID_TO_CHAIN_ENV = Object.fromEntries(\n Object.entries(CHAIN_ENV_TO_CHAIN).map(([chainEnv, chain]) => [\n chain.id,\n chainEnv,\n ]),\n) as Record<number, ChainEnv>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAA2C;AAGpC,IAAM,qBAAqB;AAAA,EAChC,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,YAAY;AACd;AAEO,IAAM,wBAAwB,OAAO;AAAA,EAC1C,OAAO,QAAQ,kBAAkB,EAAE,IAAI,CAAC,CAAC,UAAU,KAAK,MAAM;AAAA,IAC5D,MAAM;AAAA,IACN;AAAA,EACF,CAAC;AACH;","names":[]}
@@ -25,7 +25,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
25
25
  ensRegistry?: viem.ChainContract | undefined;
26
26
  ensUniversalResolver?: viem.ChainContract | undefined;
27
27
  multicall3?: viem.ChainContract | undefined;
28
- universalSignatureVerifier?: viem.ChainContract | undefined;
28
+ erc6492Verifier?: viem.ChainContract | undefined;
29
29
  } | undefined;
30
30
  ensTlds?: readonly string[] | undefined;
31
31
  id: 1337;
@@ -35,6 +35,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
35
35
  readonly name: "Ether";
36
36
  readonly symbol: "ETH";
37
37
  };
38
+ experimental_preconfirmationTime?: number | undefined | undefined;
38
39
  rpcUrls: {
39
40
  readonly default: {
40
41
  readonly http: readonly ["http://127.0.0.1:8545"];
@@ -47,41 +48,6 @@ declare const CHAIN_ENV_TO_CHAIN: {
47
48
  formatters?: undefined;
48
49
  serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
49
50
  };
50
- readonly arbitrum: {
51
- blockExplorers: {
52
- readonly default: {
53
- readonly name: "Arbiscan";
54
- readonly url: "https://arbiscan.io";
55
- readonly apiUrl: "https://api.arbiscan.io/api";
56
- };
57
- };
58
- blockTime?: number | undefined | undefined;
59
- contracts: {
60
- readonly multicall3: {
61
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
62
- readonly blockCreated: 7654707;
63
- };
64
- };
65
- ensTlds?: readonly string[] | undefined;
66
- id: 42161;
67
- name: "Arbitrum One";
68
- nativeCurrency: {
69
- readonly name: "Ether";
70
- readonly symbol: "ETH";
71
- readonly decimals: 18;
72
- };
73
- rpcUrls: {
74
- readonly default: {
75
- readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
76
- };
77
- };
78
- sourceId?: number | undefined | undefined;
79
- testnet?: boolean | undefined | undefined;
80
- custom?: Record<string, unknown> | undefined;
81
- fees?: viem.ChainFees<undefined> | undefined;
82
- formatters?: undefined;
83
- serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
84
- };
85
51
  readonly inkTestnet: {
86
52
  blockExplorers: {
87
53
  readonly default: {
@@ -138,6 +104,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
138
104
  readonly symbol: "ETH";
139
105
  readonly decimals: 18;
140
106
  };
107
+ experimental_preconfirmationTime?: number | undefined | undefined;
141
108
  rpcUrls: {
142
109
  readonly default: {
143
110
  readonly http: readonly ["https://rpc-gel-sepolia.inkonchain.com"];
@@ -150,7 +117,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
150
117
  formatters: {
151
118
  readonly block: {
152
119
  exclude: [] | undefined;
153
- format: (args: viem_chains.OpStackRpcBlock) => {
120
+ format: (args: viem_chains.OpStackRpcBlock, action?: string | undefined) => {
154
121
  baseFeePerGas: bigint | null;
155
122
  blobGasUsed: bigint;
156
123
  difficulty: bigint;
@@ -183,7 +150,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
183
150
  };
184
151
  readonly transaction: {
185
152
  exclude: [] | undefined;
186
- format: (args: viem_chains.OpStackRpcTransaction) => ({
153
+ format: (args: viem_chains.OpStackRpcTransaction, action?: string | undefined) => ({
187
154
  blockHash: `0x${string}` | null;
188
155
  blockNumber: bigint | null;
189
156
  from: abitype.Address;
@@ -211,17 +178,319 @@ declare const CHAIN_ENV_TO_CHAIN: {
211
178
  r: viem.Hex;
212
179
  s: viem.Hex;
213
180
  v: bigint;
181
+ value: bigint;
182
+ gas: bigint;
214
183
  to: abitype.Address | null;
215
184
  from: abitype.Address;
185
+ nonce: number;
186
+ blockHash: `0x${string}` | null;
187
+ blockNumber: bigint | null;
188
+ transactionIndex: number | null;
189
+ hash: viem.Hash;
190
+ input: viem.Hex;
191
+ typeHex: viem.Hex | null;
192
+ accessList?: undefined | undefined;
193
+ authorizationList?: undefined | undefined;
194
+ blobVersionedHashes?: undefined | undefined;
195
+ chainId?: number | undefined;
196
+ yParity?: undefined | undefined;
197
+ type: "legacy";
198
+ gasPrice: bigint;
199
+ maxFeePerBlobGas?: undefined | undefined;
200
+ maxFeePerGas?: undefined | undefined;
201
+ maxPriorityFeePerGas?: undefined | undefined;
202
+ isSystemTx?: undefined | undefined;
203
+ mint?: undefined | undefined;
204
+ sourceHash?: undefined | undefined;
205
+ } | {
206
+ blockHash: `0x${string}` | null;
207
+ blockNumber: bigint | null;
208
+ from: abitype.Address;
216
209
  gas: bigint;
210
+ hash: viem.Hash;
211
+ input: viem.Hex;
217
212
  nonce: number;
213
+ r: viem.Hex;
214
+ s: viem.Hex;
215
+ to: abitype.Address | null;
216
+ transactionIndex: number | null;
217
+ typeHex: viem.Hex | null;
218
+ v: bigint;
218
219
  value: bigint;
220
+ yParity: number;
221
+ accessList: viem.AccessList;
222
+ authorizationList?: undefined | undefined;
223
+ blobVersionedHashes?: undefined | undefined;
224
+ chainId: number;
225
+ type: "eip2930";
226
+ gasPrice: bigint;
227
+ maxFeePerBlobGas?: undefined | undefined;
228
+ maxFeePerGas?: undefined | undefined;
229
+ maxPriorityFeePerGas?: undefined | undefined;
230
+ isSystemTx?: undefined | undefined;
231
+ mint?: undefined | undefined;
232
+ sourceHash?: undefined | undefined;
233
+ } | {
219
234
  blockHash: `0x${string}` | null;
220
235
  blockNumber: bigint | null;
236
+ from: abitype.Address;
237
+ gas: bigint;
221
238
  hash: viem.Hash;
222
239
  input: viem.Hex;
240
+ nonce: number;
241
+ r: viem.Hex;
242
+ s: viem.Hex;
243
+ to: abitype.Address | null;
223
244
  transactionIndex: number | null;
224
245
  typeHex: viem.Hex | null;
246
+ v: bigint;
247
+ value: bigint;
248
+ yParity: number;
249
+ accessList: viem.AccessList;
250
+ authorizationList?: undefined | undefined;
251
+ blobVersionedHashes?: undefined | undefined;
252
+ chainId: number;
253
+ type: "eip1559";
254
+ gasPrice?: undefined | undefined;
255
+ maxFeePerBlobGas?: undefined | undefined;
256
+ maxFeePerGas: bigint;
257
+ maxPriorityFeePerGas: bigint;
258
+ isSystemTx?: undefined | undefined;
259
+ mint?: undefined | undefined;
260
+ sourceHash?: undefined | undefined;
261
+ } | {
262
+ blockHash: `0x${string}` | null;
263
+ blockNumber: bigint | null;
264
+ from: abitype.Address;
265
+ gas: bigint;
266
+ hash: viem.Hash;
267
+ input: viem.Hex;
268
+ nonce: number;
269
+ r: viem.Hex;
270
+ s: viem.Hex;
271
+ to: abitype.Address | null;
272
+ transactionIndex: number | null;
273
+ typeHex: viem.Hex | null;
274
+ v: bigint;
275
+ value: bigint;
276
+ yParity: number;
277
+ accessList: viem.AccessList;
278
+ authorizationList?: undefined | undefined;
279
+ blobVersionedHashes: readonly viem.Hex[];
280
+ chainId: number;
281
+ type: "eip4844";
282
+ gasPrice?: undefined | undefined;
283
+ maxFeePerBlobGas: bigint;
284
+ maxFeePerGas: bigint;
285
+ maxPriorityFeePerGas: bigint;
286
+ isSystemTx?: undefined | undefined;
287
+ mint?: undefined | undefined;
288
+ sourceHash?: undefined | undefined;
289
+ } | {
290
+ blockHash: `0x${string}` | null;
291
+ blockNumber: bigint | null;
292
+ from: abitype.Address;
293
+ gas: bigint;
294
+ hash: viem.Hash;
295
+ input: viem.Hex;
296
+ nonce: number;
297
+ r: viem.Hex;
298
+ s: viem.Hex;
299
+ to: abitype.Address | null;
300
+ transactionIndex: number | null;
301
+ typeHex: viem.Hex | null;
302
+ v: bigint;
303
+ value: bigint;
304
+ yParity: number;
305
+ accessList: viem.AccessList;
306
+ authorizationList: viem.SignedAuthorizationList;
307
+ blobVersionedHashes?: undefined | undefined;
308
+ chainId: number;
309
+ type: "eip7702";
310
+ gasPrice?: undefined | undefined;
311
+ maxFeePerBlobGas?: undefined | undefined;
312
+ maxFeePerGas: bigint;
313
+ maxPriorityFeePerGas: bigint;
314
+ isSystemTx?: undefined | undefined;
315
+ mint?: undefined | undefined;
316
+ sourceHash?: undefined | undefined;
317
+ }) & {};
318
+ type: "transaction";
319
+ };
320
+ readonly transactionReceipt: {
321
+ exclude: [] | undefined;
322
+ format: (args: viem_chains.OpStackRpcTransactionReceipt, action?: string | undefined) => {
323
+ blobGasPrice?: bigint | undefined;
324
+ blobGasUsed?: bigint | undefined;
325
+ blockHash: viem.Hash;
326
+ blockNumber: bigint;
327
+ contractAddress: abitype.Address | null | undefined;
328
+ cumulativeGasUsed: bigint;
329
+ effectiveGasPrice: bigint;
330
+ from: abitype.Address;
331
+ gasUsed: bigint;
332
+ logs: viem.Log<bigint, number, false>[];
333
+ logsBloom: viem.Hex;
334
+ root?: `0x${string}` | undefined;
335
+ status: "success" | "reverted";
336
+ to: abitype.Address | null;
337
+ transactionHash: viem.Hash;
338
+ transactionIndex: number;
339
+ type: viem.TransactionType;
340
+ l1GasPrice: bigint | null;
341
+ l1GasUsed: bigint | null;
342
+ l1Fee: bigint | null;
343
+ l1FeeScalar: number | null;
344
+ } & {};
345
+ type: "transactionReceipt";
346
+ };
347
+ };
348
+ serializers: {
349
+ readonly transaction: typeof viem_chains.serializeTransactionOpStack;
350
+ };
351
+ };
352
+ readonly inkMainnet: {
353
+ blockExplorers: {
354
+ readonly default: {
355
+ readonly name: "Blockscout";
356
+ readonly url: "https://explorer.inkonchain.com";
357
+ readonly apiUrl: "https://explorer.inkonchain.com/api/v2";
358
+ };
359
+ };
360
+ blockTime: 2000;
361
+ contracts: {
362
+ readonly disputeGameFactory: {
363
+ readonly 1: {
364
+ readonly address: "0x10d7b35078d3baabb96dd45a9143b94be65b12cd";
365
+ };
366
+ };
367
+ readonly portal: {
368
+ readonly 1: {
369
+ readonly address: "0x5d66c1782664115999c47c9fa5cd031f495d3e4f";
370
+ };
371
+ };
372
+ readonly l1StandardBridge: {
373
+ readonly 1: {
374
+ readonly address: "0x88ff1e5b602916615391f55854588efcbb7663f0";
375
+ };
376
+ };
377
+ readonly gasPriceOracle: {
378
+ readonly address: "0x420000000000000000000000000000000000000F";
379
+ };
380
+ readonly l1Block: {
381
+ readonly address: "0x4200000000000000000000000000000000000015";
382
+ };
383
+ readonly l2CrossDomainMessenger: {
384
+ readonly address: "0x4200000000000000000000000000000000000007";
385
+ };
386
+ readonly l2Erc721Bridge: {
387
+ readonly address: "0x4200000000000000000000000000000000000014";
388
+ };
389
+ readonly l2StandardBridge: {
390
+ readonly address: "0x4200000000000000000000000000000000000010";
391
+ };
392
+ readonly l2ToL1MessagePasser: {
393
+ readonly address: "0x4200000000000000000000000000000000000016";
394
+ };
395
+ readonly multicall3: {
396
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
397
+ readonly blockCreated: 0;
398
+ };
399
+ };
400
+ ensTlds?: readonly string[] | undefined;
401
+ id: 57073;
402
+ name: "Ink";
403
+ nativeCurrency: {
404
+ readonly name: "Ether";
405
+ readonly symbol: "ETH";
406
+ readonly decimals: 18;
407
+ };
408
+ experimental_preconfirmationTime?: number | undefined | undefined;
409
+ rpcUrls: {
410
+ readonly default: {
411
+ readonly http: readonly ["https://rpc-gel.inkonchain.com", "https://rpc-qnd.inkonchain.com"];
412
+ readonly webSocket: readonly ["wss://rpc-gel.inkonchain.com", "wss://rpc-qnd.inkonchain.com"];
413
+ };
414
+ };
415
+ sourceId: 1;
416
+ testnet: false;
417
+ custom?: Record<string, unknown> | undefined;
418
+ fees?: viem.ChainFees<undefined> | undefined;
419
+ formatters: {
420
+ readonly block: {
421
+ exclude: [] | undefined;
422
+ format: (args: viem_chains.OpStackRpcBlock, action?: string | undefined) => {
423
+ baseFeePerGas: bigint | null;
424
+ blobGasUsed: bigint;
425
+ difficulty: bigint;
426
+ excessBlobGas: bigint;
427
+ extraData: viem.Hex;
428
+ gasLimit: bigint;
429
+ gasUsed: bigint;
430
+ hash: `0x${string}` | null;
431
+ logsBloom: `0x${string}` | null;
432
+ miner: abitype.Address;
433
+ mixHash: viem.Hash;
434
+ nonce: `0x${string}` | null;
435
+ number: bigint | null;
436
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
437
+ parentHash: viem.Hash;
438
+ receiptsRoot: viem.Hex;
439
+ sealFields: viem.Hex[];
440
+ sha3Uncles: viem.Hash;
441
+ size: bigint;
442
+ stateRoot: viem.Hash;
443
+ timestamp: bigint;
444
+ totalDifficulty: bigint | null;
445
+ transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
446
+ transactionsRoot: viem.Hash;
447
+ uncles: viem.Hash[];
448
+ withdrawals?: viem.Withdrawal[] | undefined | undefined;
449
+ withdrawalsRoot?: `0x${string}` | undefined;
450
+ } & {};
451
+ type: "block";
452
+ };
453
+ readonly transaction: {
454
+ exclude: [] | undefined;
455
+ format: (args: viem_chains.OpStackRpcTransaction, action?: string | undefined) => ({
456
+ blockHash: `0x${string}` | null;
457
+ blockNumber: bigint | null;
458
+ from: abitype.Address;
459
+ gas: bigint;
460
+ hash: viem.Hash;
461
+ input: viem.Hex;
462
+ nonce: number;
463
+ r: viem.Hex;
464
+ s: viem.Hex;
465
+ to: abitype.Address | null;
466
+ transactionIndex: number | null;
467
+ typeHex: viem.Hex | null;
468
+ v: bigint;
469
+ value: bigint;
470
+ yParity: number;
471
+ gasPrice?: undefined | undefined;
472
+ maxFeePerBlobGas?: undefined | undefined;
473
+ maxFeePerGas: bigint;
474
+ maxPriorityFeePerGas: bigint;
475
+ isSystemTx?: boolean;
476
+ mint?: bigint | undefined | undefined;
477
+ sourceHash: viem.Hex;
478
+ type: "deposit";
479
+ } | {
480
+ r: viem.Hex;
481
+ s: viem.Hex;
482
+ v: bigint;
483
+ value: bigint;
484
+ gas: bigint;
485
+ to: abitype.Address | null;
486
+ from: abitype.Address;
487
+ nonce: number;
488
+ blockHash: `0x${string}` | null;
489
+ blockNumber: bigint | null;
490
+ transactionIndex: number | null;
491
+ hash: viem.Hash;
492
+ input: viem.Hex;
493
+ typeHex: viem.Hex | null;
225
494
  accessList?: undefined | undefined;
226
495
  authorizationList?: undefined | undefined;
227
496
  blobVersionedHashes?: undefined | undefined;
@@ -352,7 +621,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
352
621
  };
353
622
  readonly transactionReceipt: {
354
623
  exclude: [] | undefined;
355
- format: (args: viem_chains.OpStackRpcTransactionReceipt) => {
624
+ format: (args: viem_chains.OpStackRpcTransactionReceipt, action?: string | undefined) => {
356
625
  blobGasPrice?: bigint | undefined;
357
626
  blobGasUsed?: bigint | undefined;
358
627
  blockHash: viem.Hash;