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

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 +329 -39
  10. package/dist/consts/chainEnvToChain.d.ts +329 -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"];
@@ -45,41 +46,13 @@ declare const CHAIN_ENV_TO_CHAIN: {
45
46
  custom?: Record<string, unknown> | undefined;
46
47
  fees?: viem.ChainFees<undefined> | undefined;
47
48
  formatters?: undefined;
48
- serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
49
- };
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;
49
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
50
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
51
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
52
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
53
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
54
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
55
+ }] | undefined;
83
56
  serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
84
57
  };
85
58
  readonly inkTestnet: {
@@ -138,6 +111,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
138
111
  readonly symbol: "ETH";
139
112
  readonly decimals: 18;
140
113
  };
114
+ experimental_preconfirmationTime?: number | undefined | undefined;
141
115
  rpcUrls: {
142
116
  readonly default: {
143
117
  readonly http: readonly ["https://rpc-gel-sepolia.inkonchain.com"];
@@ -150,7 +124,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
150
124
  formatters: {
151
125
  readonly block: {
152
126
  exclude: [] | undefined;
153
- format: (args: viem_chains.OpStackRpcBlock) => {
127
+ format: (args: viem_chains.OpStackRpcBlock, action?: string | undefined) => {
154
128
  baseFeePerGas: bigint | null;
155
129
  blobGasUsed: bigint;
156
130
  difficulty: bigint;
@@ -183,7 +157,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
183
157
  };
184
158
  readonly transaction: {
185
159
  exclude: [] | undefined;
186
- format: (args: viem_chains.OpStackRpcTransaction) => ({
160
+ format: (args: viem_chains.OpStackRpcTransaction, action?: string | undefined) => ({
187
161
  blockHash: `0x${string}` | null;
188
162
  blockNumber: bigint | null;
189
163
  from: abitype.Address;
@@ -211,17 +185,326 @@ declare const CHAIN_ENV_TO_CHAIN: {
211
185
  r: viem.Hex;
212
186
  s: viem.Hex;
213
187
  v: bigint;
188
+ value: bigint;
189
+ gas: bigint;
214
190
  to: abitype.Address | null;
215
191
  from: abitype.Address;
192
+ nonce: number;
193
+ blockHash: `0x${string}` | null;
194
+ blockNumber: bigint | null;
195
+ transactionIndex: number | null;
196
+ hash: viem.Hash;
197
+ input: viem.Hex;
198
+ typeHex: viem.Hex | null;
199
+ accessList?: undefined | undefined;
200
+ authorizationList?: undefined | undefined;
201
+ blobVersionedHashes?: undefined | undefined;
202
+ chainId?: number | undefined;
203
+ yParity?: undefined | undefined;
204
+ type: "legacy";
205
+ gasPrice: bigint;
206
+ maxFeePerBlobGas?: undefined | undefined;
207
+ maxFeePerGas?: undefined | undefined;
208
+ maxPriorityFeePerGas?: undefined | undefined;
209
+ isSystemTx?: undefined | undefined;
210
+ mint?: undefined | undefined;
211
+ sourceHash?: undefined | undefined;
212
+ } | {
213
+ blockHash: `0x${string}` | null;
214
+ blockNumber: bigint | null;
215
+ from: abitype.Address;
216
216
  gas: bigint;
217
+ hash: viem.Hash;
218
+ input: viem.Hex;
217
219
  nonce: number;
220
+ r: viem.Hex;
221
+ s: viem.Hex;
222
+ to: abitype.Address | null;
223
+ transactionIndex: number | null;
224
+ typeHex: viem.Hex | null;
225
+ v: bigint;
218
226
  value: bigint;
227
+ yParity: number;
228
+ accessList: viem.AccessList;
229
+ authorizationList?: undefined | undefined;
230
+ blobVersionedHashes?: undefined | undefined;
231
+ chainId: number;
232
+ type: "eip2930";
233
+ gasPrice: bigint;
234
+ maxFeePerBlobGas?: undefined | undefined;
235
+ maxFeePerGas?: undefined | undefined;
236
+ maxPriorityFeePerGas?: undefined | undefined;
237
+ isSystemTx?: undefined | undefined;
238
+ mint?: undefined | undefined;
239
+ sourceHash?: undefined | undefined;
240
+ } | {
219
241
  blockHash: `0x${string}` | null;
220
242
  blockNumber: bigint | null;
243
+ from: abitype.Address;
244
+ gas: bigint;
221
245
  hash: viem.Hash;
222
246
  input: viem.Hex;
247
+ nonce: number;
248
+ r: viem.Hex;
249
+ s: viem.Hex;
250
+ to: abitype.Address | null;
223
251
  transactionIndex: number | null;
224
252
  typeHex: viem.Hex | null;
253
+ v: bigint;
254
+ value: bigint;
255
+ yParity: number;
256
+ accessList: viem.AccessList;
257
+ authorizationList?: undefined | undefined;
258
+ blobVersionedHashes?: undefined | undefined;
259
+ chainId: number;
260
+ type: "eip1559";
261
+ gasPrice?: undefined | undefined;
262
+ maxFeePerBlobGas?: undefined | undefined;
263
+ maxFeePerGas: bigint;
264
+ maxPriorityFeePerGas: bigint;
265
+ isSystemTx?: undefined | undefined;
266
+ mint?: undefined | undefined;
267
+ sourceHash?: undefined | undefined;
268
+ } | {
269
+ blockHash: `0x${string}` | null;
270
+ blockNumber: bigint | null;
271
+ from: abitype.Address;
272
+ gas: bigint;
273
+ hash: viem.Hash;
274
+ input: viem.Hex;
275
+ nonce: number;
276
+ r: viem.Hex;
277
+ s: viem.Hex;
278
+ to: abitype.Address | null;
279
+ transactionIndex: number | null;
280
+ typeHex: viem.Hex | null;
281
+ v: bigint;
282
+ value: bigint;
283
+ yParity: number;
284
+ accessList: viem.AccessList;
285
+ authorizationList?: undefined | undefined;
286
+ blobVersionedHashes: readonly viem.Hex[];
287
+ chainId: number;
288
+ type: "eip4844";
289
+ gasPrice?: undefined | undefined;
290
+ maxFeePerBlobGas: bigint;
291
+ maxFeePerGas: bigint;
292
+ maxPriorityFeePerGas: bigint;
293
+ isSystemTx?: undefined | undefined;
294
+ mint?: undefined | undefined;
295
+ sourceHash?: undefined | undefined;
296
+ } | {
297
+ blockHash: `0x${string}` | null;
298
+ blockNumber: bigint | null;
299
+ from: abitype.Address;
300
+ gas: bigint;
301
+ hash: viem.Hash;
302
+ input: viem.Hex;
303
+ nonce: number;
304
+ r: viem.Hex;
305
+ s: viem.Hex;
306
+ to: abitype.Address | null;
307
+ transactionIndex: number | null;
308
+ typeHex: viem.Hex | null;
309
+ v: bigint;
310
+ value: bigint;
311
+ yParity: number;
312
+ accessList: viem.AccessList;
313
+ authorizationList: viem.SignedAuthorizationList;
314
+ blobVersionedHashes?: undefined | undefined;
315
+ chainId: number;
316
+ type: "eip7702";
317
+ gasPrice?: undefined | undefined;
318
+ maxFeePerBlobGas?: undefined | undefined;
319
+ maxFeePerGas: bigint;
320
+ maxPriorityFeePerGas: bigint;
321
+ isSystemTx?: undefined | undefined;
322
+ mint?: undefined | undefined;
323
+ sourceHash?: undefined | undefined;
324
+ }) & {};
325
+ type: "transaction";
326
+ };
327
+ readonly transactionReceipt: {
328
+ exclude: [] | undefined;
329
+ format: (args: viem_chains.OpStackRpcTransactionReceipt, action?: string | undefined) => {
330
+ blobGasPrice?: bigint | undefined;
331
+ blobGasUsed?: bigint | undefined;
332
+ blockHash: viem.Hash;
333
+ blockNumber: bigint;
334
+ contractAddress: abitype.Address | null | undefined;
335
+ cumulativeGasUsed: bigint;
336
+ effectiveGasPrice: bigint;
337
+ from: abitype.Address;
338
+ gasUsed: bigint;
339
+ logs: viem.Log<bigint, number, false>[];
340
+ logsBloom: viem.Hex;
341
+ root?: `0x${string}` | undefined;
342
+ status: "success" | "reverted";
343
+ to: abitype.Address | null;
344
+ transactionHash: viem.Hash;
345
+ transactionIndex: number;
346
+ type: viem.TransactionType;
347
+ l1GasPrice: bigint | null;
348
+ l1GasUsed: bigint | null;
349
+ l1Fee: bigint | null;
350
+ l1FeeScalar: number | null;
351
+ } & {};
352
+ type: "transactionReceipt";
353
+ };
354
+ };
355
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
356
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
357
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
358
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
359
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
360
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
361
+ }] | undefined;
362
+ serializers: {
363
+ readonly transaction: typeof viem_chains.serializeTransactionOpStack;
364
+ };
365
+ };
366
+ readonly inkMainnet: {
367
+ blockExplorers: {
368
+ readonly default: {
369
+ readonly name: "Blockscout";
370
+ readonly url: "https://explorer.inkonchain.com";
371
+ readonly apiUrl: "https://explorer.inkonchain.com/api/v2";
372
+ };
373
+ };
374
+ blockTime: 2000;
375
+ contracts: {
376
+ readonly disputeGameFactory: {
377
+ readonly 1: {
378
+ readonly address: "0x10d7b35078d3baabb96dd45a9143b94be65b12cd";
379
+ };
380
+ };
381
+ readonly portal: {
382
+ readonly 1: {
383
+ readonly address: "0x5d66c1782664115999c47c9fa5cd031f495d3e4f";
384
+ };
385
+ };
386
+ readonly l1StandardBridge: {
387
+ readonly 1: {
388
+ readonly address: "0x88ff1e5b602916615391f55854588efcbb7663f0";
389
+ };
390
+ };
391
+ readonly gasPriceOracle: {
392
+ readonly address: "0x420000000000000000000000000000000000000F";
393
+ };
394
+ readonly l1Block: {
395
+ readonly address: "0x4200000000000000000000000000000000000015";
396
+ };
397
+ readonly l2CrossDomainMessenger: {
398
+ readonly address: "0x4200000000000000000000000000000000000007";
399
+ };
400
+ readonly l2Erc721Bridge: {
401
+ readonly address: "0x4200000000000000000000000000000000000014";
402
+ };
403
+ readonly l2StandardBridge: {
404
+ readonly address: "0x4200000000000000000000000000000000000010";
405
+ };
406
+ readonly l2ToL1MessagePasser: {
407
+ readonly address: "0x4200000000000000000000000000000000000016";
408
+ };
409
+ readonly multicall3: {
410
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
411
+ readonly blockCreated: 0;
412
+ };
413
+ };
414
+ ensTlds?: readonly string[] | undefined;
415
+ id: 57073;
416
+ name: "Ink";
417
+ nativeCurrency: {
418
+ readonly name: "Ether";
419
+ readonly symbol: "ETH";
420
+ readonly decimals: 18;
421
+ };
422
+ experimental_preconfirmationTime?: number | undefined | undefined;
423
+ rpcUrls: {
424
+ readonly default: {
425
+ readonly http: readonly ["https://rpc-gel.inkonchain.com", "https://rpc-qnd.inkonchain.com"];
426
+ readonly webSocket: readonly ["wss://rpc-gel.inkonchain.com", "wss://rpc-qnd.inkonchain.com"];
427
+ };
428
+ };
429
+ sourceId: 1;
430
+ testnet: false;
431
+ custom?: Record<string, unknown> | undefined;
432
+ fees?: viem.ChainFees<undefined> | undefined;
433
+ formatters: {
434
+ readonly block: {
435
+ exclude: [] | undefined;
436
+ format: (args: viem_chains.OpStackRpcBlock, action?: string | undefined) => {
437
+ baseFeePerGas: bigint | null;
438
+ blobGasUsed: bigint;
439
+ difficulty: bigint;
440
+ excessBlobGas: bigint;
441
+ extraData: viem.Hex;
442
+ gasLimit: bigint;
443
+ gasUsed: bigint;
444
+ hash: `0x${string}` | null;
445
+ logsBloom: `0x${string}` | null;
446
+ miner: abitype.Address;
447
+ mixHash: viem.Hash;
448
+ nonce: `0x${string}` | null;
449
+ number: bigint | null;
450
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
451
+ parentHash: viem.Hash;
452
+ receiptsRoot: viem.Hex;
453
+ sealFields: viem.Hex[];
454
+ sha3Uncles: viem.Hash;
455
+ size: bigint;
456
+ stateRoot: viem.Hash;
457
+ timestamp: bigint;
458
+ totalDifficulty: bigint | null;
459
+ transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
460
+ transactionsRoot: viem.Hash;
461
+ uncles: viem.Hash[];
462
+ withdrawals?: viem.Withdrawal[] | undefined | undefined;
463
+ withdrawalsRoot?: `0x${string}` | undefined;
464
+ } & {};
465
+ type: "block";
466
+ };
467
+ readonly transaction: {
468
+ exclude: [] | undefined;
469
+ format: (args: viem_chains.OpStackRpcTransaction, action?: string | undefined) => ({
470
+ blockHash: `0x${string}` | null;
471
+ blockNumber: bigint | null;
472
+ from: abitype.Address;
473
+ gas: bigint;
474
+ hash: viem.Hash;
475
+ input: viem.Hex;
476
+ nonce: number;
477
+ r: viem.Hex;
478
+ s: viem.Hex;
479
+ to: abitype.Address | null;
480
+ transactionIndex: number | null;
481
+ typeHex: viem.Hex | null;
482
+ v: bigint;
483
+ value: bigint;
484
+ yParity: number;
485
+ gasPrice?: undefined | undefined;
486
+ maxFeePerBlobGas?: undefined | undefined;
487
+ maxFeePerGas: bigint;
488
+ maxPriorityFeePerGas: bigint;
489
+ isSystemTx?: boolean;
490
+ mint?: bigint | undefined | undefined;
491
+ sourceHash: viem.Hex;
492
+ type: "deposit";
493
+ } | {
494
+ r: viem.Hex;
495
+ s: viem.Hex;
496
+ v: bigint;
497
+ value: bigint;
498
+ gas: bigint;
499
+ to: abitype.Address | null;
500
+ from: abitype.Address;
501
+ nonce: number;
502
+ blockHash: `0x${string}` | null;
503
+ blockNumber: bigint | null;
504
+ transactionIndex: number | null;
505
+ hash: viem.Hash;
506
+ input: viem.Hex;
507
+ typeHex: viem.Hex | null;
225
508
  accessList?: undefined | undefined;
226
509
  authorizationList?: undefined | undefined;
227
510
  blobVersionedHashes?: undefined | undefined;
@@ -352,7 +635,7 @@ declare const CHAIN_ENV_TO_CHAIN: {
352
635
  };
353
636
  readonly transactionReceipt: {
354
637
  exclude: [] | undefined;
355
- format: (args: viem_chains.OpStackRpcTransactionReceipt) => {
638
+ format: (args: viem_chains.OpStackRpcTransactionReceipt, action?: string | undefined) => {
356
639
  blobGasPrice?: bigint | undefined;
357
640
  blobGasUsed?: bigint | undefined;
358
641
  blockHash: viem.Hash;
@@ -378,6 +661,13 @@ declare const CHAIN_ENV_TO_CHAIN: {
378
661
  type: "transactionReceipt";
379
662
  };
380
663
  };
664
+ prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
665
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
666
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
667
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
668
+ }) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
669
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
670
+ }] | undefined;
381
671
  serializers: {
382
672
  readonly transaction: typeof viem_chains.serializeTransactionOpStack;
383
673
  };