@across-protocol/sdk 4.3.128 → 4.3.129

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.
@@ -0,0 +1 @@
1
+ export * from "./src/utils/abi/typechain";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./src/utils/abi/typechain"), exports);
5
+ //# sourceMappingURL=typechain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typechain.js","sourceRoot":"","sources":["../../typechain.ts"],"names":[],"mappings":";;;AAEA,oEAA0C"}
@@ -0,0 +1 @@
1
+ export * from "./src/utils/abi/typechain";
@@ -0,0 +1,4 @@
1
+ // Re-export typechain artifacts. Import as:
2
+ // import * as typechain from "@across-protocol/sdk/typechain"
3
+ export * from "./src/utils/abi/typechain";
4
+ //# sourceMappingURL=typechain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typechain.js","sourceRoot":"","sources":["../../typechain.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,gEAAgE;AAChE,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./src/utils/abi/typechain";
2
+ //# sourceMappingURL=typechain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typechain.d.ts","sourceRoot":"","sources":["../../typechain.ts"],"names":[],"mappings":"AAEA,cAAc,2BAA2B,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@across-protocol/sdk",
3
3
  "author": "UMA Team",
4
- "version": "4.3.128",
4
+ "version": "4.3.129",
5
5
  "license": "AGPL-3.0",
6
6
  "homepage": "https://docs.across.to/reference/sdk",
7
7
  "repository": {
@@ -11,7 +11,9 @@
11
11
  "files": [
12
12
  "dist",
13
13
  "scripts",
14
- "src"
14
+ "src",
15
+ "test-utils.ts",
16
+ "typechain.ts"
15
17
  ],
16
18
  "engines": {
17
19
  "node": ">=22.18.0"
@@ -161,6 +163,11 @@
161
163
  "import": "./dist/esm/test-utils.js",
162
164
  "types": "./dist/types/test-utils.d.ts"
163
165
  },
166
+ "./typechain": {
167
+ "require": "./dist/cjs/typechain.js",
168
+ "import": "./dist/esm/typechain.js",
169
+ "types": "./dist/types/typechain.d.ts"
170
+ },
164
171
  "./src/utils/abi/typechain": {
165
172
  "require": "./dist/cjs/src/utils/abi/typechain/index.js",
166
173
  "import": "./dist/esm/src/utils/abi/typechain/index.js",
package/test-utils.ts ADDED
@@ -0,0 +1,88 @@
1
+ // Note: this file sits on a separate export path and is intended to export test utilities.
2
+ // You can import it like this: import * as testUtils from "@across-protocol/sdk/test-utils".
3
+ // This is separated because this code assumes the caller has a hardhat config because it imports
4
+ // hardhat. For non-test code, import the standard index file:
5
+ // import * as sdk from "@across-protocol/sdk"
6
+
7
+ // Export from utils first (primary source for randomAddress, zeroAddress)
8
+ export * from "./test/utils/utils";
9
+
10
+ // Export from constants, excluding duplicates that come from utils
11
+ export {
12
+ TokenRolesEnum,
13
+ destinationChainId,
14
+ originChainId,
15
+ repaymentChainId,
16
+ maxUint256,
17
+ MAX_UINT32,
18
+ MAX_EXCLUSIVITY_OFFSET_SECONDS,
19
+ amountToSeedWallets,
20
+ amountToLp,
21
+ amountToDeposit,
22
+ amountToRelay,
23
+ depositRelayerFeePct,
24
+ modifiedRelayerFeePct,
25
+ incorrectModifiedRelayerFeePct,
26
+ realizedLpFeePct,
27
+ oneHundredPct,
28
+ totalPostFeesPct,
29
+ totalPostModifiedFeesPct,
30
+ amountToRelayPreFees,
31
+ amountReceived,
32
+ amountToRelayPreModifiedFees,
33
+ amountToRelayPreLPFee,
34
+ firstDepositId,
35
+ bondAmount,
36
+ finalFee,
37
+ finalFeeUsdc,
38
+ finalFeeUsdt,
39
+ totalBond,
40
+ refundProposalLiveness,
41
+ zeroAddress,
42
+ zeroBytes32,
43
+ identifier,
44
+ zeroRawValue,
45
+ mockBundleEvaluationBlockNumbers,
46
+ mockPoolRebalanceLeafCount,
47
+ mockPoolRebalanceRoot,
48
+ mockRelayerRefundRoot,
49
+ mockSlowRelayRoot,
50
+ mockTreeRoot,
51
+ amountHeldByPool,
52
+ amountToReturn,
53
+ sampleL2Gas,
54
+ sampleL2GasSendTokens,
55
+ sampleL2MaxSubmissionCost,
56
+ sampleL2GasPrice,
57
+ maxRefundsPerRelayerRefundLeaf,
58
+ maxL1TokensPerPoolRebalanceLeaf,
59
+ l1TokenTransferThreshold,
60
+ MAX_REFUNDS_PER_RELAYER_REFUND_LEAF,
61
+ MAX_L1_TOKENS_PER_POOL_REBALANCE_LEAF,
62
+ sampleRateModel,
63
+ CONFIG_STORE_VERSION,
64
+ randomAddress,
65
+ randomL1Token,
66
+ randomOriginToken,
67
+ randomDestinationToken,
68
+ randomDestinationToken2,
69
+ CHAIN_ID_TEST_LIST,
70
+ } from "./test/constants";
71
+
72
+ // Export from fixtures, excluding zeroAddress which is already exported from utils
73
+ export { deploySpokePool, spokePoolFixture } from "./test/fixtures/SpokePool.Fixture";
74
+ export { deployHubPool, hubPoolFixture } from "./test/fixtures/HubPool.Fixture";
75
+
76
+ // Export MerkleLib utilities (already re-exported by utils, but keep for clarity)
77
+ export {
78
+ buildPoolRebalanceLeafTree,
79
+ buildPoolRebalanceLeaves,
80
+ buildRelayerRefundTree,
81
+ buildRelayerRefundLeaves,
82
+ buildSlowRelayTree,
83
+ buildV3SlowRelayTree,
84
+ getParamType,
85
+ } from "./test/utils/MerkleLib.utils";
86
+
87
+ // Export types
88
+ export * from "./test/types";
package/typechain.ts ADDED
@@ -0,0 +1,3 @@
1
+ // Re-export typechain artifacts. Import as:
2
+ // import * as typechain from "@across-protocol/sdk/typechain"
3
+ export * from "./src/utils/abi/typechain";