@across-protocol/sdk 4.3.120-alpha.1 → 4.3.120-alpha.2
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.
- package/dist/cjs/test-utils.d.ts +1 -1
- package/dist/cjs/test-utils.js +47 -12
- package/dist/cjs/test-utils.js.map +1 -1
- package/dist/esm/test-utils.d.ts +1 -1
- package/dist/esm/test-utils.js +1 -1
- package/dist/esm/test-utils.js.map +1 -1
- package/dist/types/test-utils.d.ts +1 -1
- package/dist/types/test-utils.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/test-utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./test/utils/utils";
|
|
2
|
-
export {
|
|
2
|
+
export { TokenRolesEnum, destinationChainId, originChainId, repaymentChainId, maxUint256, MAX_UINT32, MAX_EXCLUSIVITY_OFFSET_SECONDS, amountToSeedWallets, amountToLp, amountToDeposit, amountToRelay, depositRelayerFeePct, modifiedRelayerFeePct, incorrectModifiedRelayerFeePct, realizedLpFeePct, oneHundredPct, totalPostFeesPct, totalPostModifiedFeesPct, amountToRelayPreFees, amountReceived, amountToRelayPreModifiedFees, amountToRelayPreLPFee, firstDepositId, bondAmount, finalFee, finalFeeUsdc, finalFeeUsdt, totalBond, refundProposalLiveness, zeroAddress, zeroBytes32, identifier, zeroRawValue, mockBundleEvaluationBlockNumbers, mockPoolRebalanceLeafCount, mockPoolRebalanceRoot, mockRelayerRefundRoot, mockSlowRelayRoot, mockTreeRoot, amountHeldByPool, amountToReturn, sampleL2Gas, sampleL2GasSendTokens, sampleL2MaxSubmissionCost, sampleL2GasPrice, maxRefundsPerRelayerRefundLeaf, maxL1TokensPerPoolRebalanceLeaf, l1TokenTransferThreshold, MAX_REFUNDS_PER_RELAYER_REFUND_LEAF, MAX_L1_TOKENS_PER_POOL_REBALANCE_LEAF, sampleRateModel, CONFIG_STORE_VERSION, randomAddress, randomL1Token, randomOriginToken, randomDestinationToken, randomDestinationToken2, CHAIN_ID_TEST_LIST, } from "./test/constants";
|
|
3
3
|
export { deploySpokePool, spokePoolFixture } from "./test/fixtures/SpokePool.Fixture";
|
|
4
4
|
export { deployHubPool, hubPoolFixture } from "./test/fixtures/HubPool.Fixture";
|
|
5
5
|
export { buildPoolRebalanceLeafTree, buildPoolRebalanceLeaves, buildRelayerRefundTree, buildRelayerRefundLeaves, buildSlowRelayTree, buildV3SlowRelayTree, getParamType, } from "./test/utils/MerkleLib.utils";
|
package/dist/cjs/test-utils.js
CHANGED
|
@@ -1,32 +1,67 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MAX_L1_TOKENS_PER_POOL_REBALANCE_LEAF = exports.MAX_REFUNDS_PER_RELAYER_REFUND_LEAF = exports.l1TokenTransferThreshold = exports.maxL1TokensPerPoolRebalanceLeaf = exports.maxRefundsPerRelayerRefundLeaf = exports.sampleL2GasPrice = exports.sampleL2MaxSubmissionCost = exports.sampleL2GasSendTokens = exports.sampleL2Gas = exports.amountToReturn = exports.amountHeldByPool = exports.mockTreeRoot = exports.mockSlowRelayRoot = exports.mockRelayerRefundRoot = exports.mockPoolRebalanceRoot = exports.mockPoolRebalanceLeafCount = exports.mockBundleEvaluationBlockNumbers = exports.zeroRawValue = exports.identifier = exports.zeroBytes32 = exports.zeroAddress = exports.refundProposalLiveness = exports.totalBond = exports.finalFeeUsdt = exports.finalFeeUsdc = exports.finalFee = exports.bondAmount = exports.firstDepositId = exports.amountToRelayPreLPFee = exports.amountToRelayPreModifiedFees = exports.amountReceived = exports.amountToRelayPreFees = exports.totalPostModifiedFeesPct = exports.totalPostFeesPct = exports.oneHundredPct = exports.realizedLpFeePct = exports.incorrectModifiedRelayerFeePct = exports.modifiedRelayerFeePct = exports.depositRelayerFeePct = exports.amountToRelay = exports.amountToDeposit = exports.amountToLp = exports.amountToSeedWallets = exports.MAX_EXCLUSIVITY_OFFSET_SECONDS = exports.MAX_UINT32 = exports.maxUint256 = exports.repaymentChainId = exports.originChainId = exports.destinationChainId = exports.TokenRolesEnum = void 0;
|
|
4
|
+
exports.getParamType = exports.buildV3SlowRelayTree = exports.buildSlowRelayTree = exports.buildRelayerRefundLeaves = exports.buildRelayerRefundTree = exports.buildPoolRebalanceLeaves = exports.buildPoolRebalanceLeafTree = exports.hubPoolFixture = exports.deployHubPool = exports.spokePoolFixture = exports.deploySpokePool = exports.CHAIN_ID_TEST_LIST = exports.randomDestinationToken2 = exports.randomDestinationToken = exports.randomOriginToken = exports.randomL1Token = exports.randomAddress = exports.CONFIG_STORE_VERSION = exports.sampleRateModel = void 0;
|
|
4
5
|
var tslib_1 = require("tslib");
|
|
5
6
|
tslib_1.__exportStar(require("./test/utils/utils"), exports);
|
|
6
7
|
var constants_1 = require("./test/constants");
|
|
7
|
-
Object.defineProperty(exports, "
|
|
8
|
-
Object.defineProperty(exports, "amountToLp", { enumerable: true, get: function () { return constants_1.amountToLp; } });
|
|
9
|
-
Object.defineProperty(exports, "depositRelayerFeePct", { enumerable: true, get: function () { return constants_1.depositRelayerFeePct; } });
|
|
10
|
-
Object.defineProperty(exports, "originChainId", { enumerable: true, get: function () { return constants_1.originChainId; } });
|
|
8
|
+
Object.defineProperty(exports, "TokenRolesEnum", { enumerable: true, get: function () { return constants_1.TokenRolesEnum; } });
|
|
11
9
|
Object.defineProperty(exports, "destinationChainId", { enumerable: true, get: function () { return constants_1.destinationChainId; } });
|
|
10
|
+
Object.defineProperty(exports, "originChainId", { enumerable: true, get: function () { return constants_1.originChainId; } });
|
|
12
11
|
Object.defineProperty(exports, "repaymentChainId", { enumerable: true, get: function () { return constants_1.repaymentChainId; } });
|
|
13
|
-
Object.defineProperty(exports, "
|
|
14
|
-
Object.defineProperty(exports, "
|
|
15
|
-
Object.defineProperty(exports, "
|
|
16
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "maxUint256", { enumerable: true, get: function () { return constants_1.maxUint256; } });
|
|
13
|
+
Object.defineProperty(exports, "MAX_UINT32", { enumerable: true, get: function () { return constants_1.MAX_UINT32; } });
|
|
14
|
+
Object.defineProperty(exports, "MAX_EXCLUSIVITY_OFFSET_SECONDS", { enumerable: true, get: function () { return constants_1.MAX_EXCLUSIVITY_OFFSET_SECONDS; } });
|
|
15
|
+
Object.defineProperty(exports, "amountToSeedWallets", { enumerable: true, get: function () { return constants_1.amountToSeedWallets; } });
|
|
16
|
+
Object.defineProperty(exports, "amountToLp", { enumerable: true, get: function () { return constants_1.amountToLp; } });
|
|
17
|
+
Object.defineProperty(exports, "amountToDeposit", { enumerable: true, get: function () { return constants_1.amountToDeposit; } });
|
|
18
|
+
Object.defineProperty(exports, "amountToRelay", { enumerable: true, get: function () { return constants_1.amountToRelay; } });
|
|
19
|
+
Object.defineProperty(exports, "depositRelayerFeePct", { enumerable: true, get: function () { return constants_1.depositRelayerFeePct; } });
|
|
20
|
+
Object.defineProperty(exports, "modifiedRelayerFeePct", { enumerable: true, get: function () { return constants_1.modifiedRelayerFeePct; } });
|
|
21
|
+
Object.defineProperty(exports, "incorrectModifiedRelayerFeePct", { enumerable: true, get: function () { return constants_1.incorrectModifiedRelayerFeePct; } });
|
|
22
|
+
Object.defineProperty(exports, "realizedLpFeePct", { enumerable: true, get: function () { return constants_1.realizedLpFeePct; } });
|
|
23
|
+
Object.defineProperty(exports, "oneHundredPct", { enumerable: true, get: function () { return constants_1.oneHundredPct; } });
|
|
24
|
+
Object.defineProperty(exports, "totalPostFeesPct", { enumerable: true, get: function () { return constants_1.totalPostFeesPct; } });
|
|
25
|
+
Object.defineProperty(exports, "totalPostModifiedFeesPct", { enumerable: true, get: function () { return constants_1.totalPostModifiedFeesPct; } });
|
|
26
|
+
Object.defineProperty(exports, "amountToRelayPreFees", { enumerable: true, get: function () { return constants_1.amountToRelayPreFees; } });
|
|
27
|
+
Object.defineProperty(exports, "amountReceived", { enumerable: true, get: function () { return constants_1.amountReceived; } });
|
|
28
|
+
Object.defineProperty(exports, "amountToRelayPreModifiedFees", { enumerable: true, get: function () { return constants_1.amountToRelayPreModifiedFees; } });
|
|
29
|
+
Object.defineProperty(exports, "amountToRelayPreLPFee", { enumerable: true, get: function () { return constants_1.amountToRelayPreLPFee; } });
|
|
30
|
+
Object.defineProperty(exports, "firstDepositId", { enumerable: true, get: function () { return constants_1.firstDepositId; } });
|
|
17
31
|
Object.defineProperty(exports, "bondAmount", { enumerable: true, get: function () { return constants_1.bondAmount; } });
|
|
18
32
|
Object.defineProperty(exports, "finalFee", { enumerable: true, get: function () { return constants_1.finalFee; } });
|
|
19
33
|
Object.defineProperty(exports, "finalFeeUsdc", { enumerable: true, get: function () { return constants_1.finalFeeUsdc; } });
|
|
20
34
|
Object.defineProperty(exports, "finalFeeUsdt", { enumerable: true, get: function () { return constants_1.finalFeeUsdt; } });
|
|
35
|
+
Object.defineProperty(exports, "totalBond", { enumerable: true, get: function () { return constants_1.totalBond; } });
|
|
36
|
+
Object.defineProperty(exports, "refundProposalLiveness", { enumerable: true, get: function () { return constants_1.refundProposalLiveness; } });
|
|
37
|
+
Object.defineProperty(exports, "zeroAddress", { enumerable: true, get: function () { return constants_1.zeroAddress; } });
|
|
38
|
+
Object.defineProperty(exports, "zeroBytes32", { enumerable: true, get: function () { return constants_1.zeroBytes32; } });
|
|
21
39
|
Object.defineProperty(exports, "identifier", { enumerable: true, get: function () { return constants_1.identifier; } });
|
|
40
|
+
Object.defineProperty(exports, "zeroRawValue", { enumerable: true, get: function () { return constants_1.zeroRawValue; } });
|
|
41
|
+
Object.defineProperty(exports, "mockBundleEvaluationBlockNumbers", { enumerable: true, get: function () { return constants_1.mockBundleEvaluationBlockNumbers; } });
|
|
42
|
+
Object.defineProperty(exports, "mockPoolRebalanceLeafCount", { enumerable: true, get: function () { return constants_1.mockPoolRebalanceLeafCount; } });
|
|
43
|
+
Object.defineProperty(exports, "mockPoolRebalanceRoot", { enumerable: true, get: function () { return constants_1.mockPoolRebalanceRoot; } });
|
|
44
|
+
Object.defineProperty(exports, "mockRelayerRefundRoot", { enumerable: true, get: function () { return constants_1.mockRelayerRefundRoot; } });
|
|
45
|
+
Object.defineProperty(exports, "mockSlowRelayRoot", { enumerable: true, get: function () { return constants_1.mockSlowRelayRoot; } });
|
|
46
|
+
Object.defineProperty(exports, "mockTreeRoot", { enumerable: true, get: function () { return constants_1.mockTreeRoot; } });
|
|
47
|
+
Object.defineProperty(exports, "amountHeldByPool", { enumerable: true, get: function () { return constants_1.amountHeldByPool; } });
|
|
48
|
+
Object.defineProperty(exports, "amountToReturn", { enumerable: true, get: function () { return constants_1.amountToReturn; } });
|
|
49
|
+
Object.defineProperty(exports, "sampleL2Gas", { enumerable: true, get: function () { return constants_1.sampleL2Gas; } });
|
|
50
|
+
Object.defineProperty(exports, "sampleL2GasSendTokens", { enumerable: true, get: function () { return constants_1.sampleL2GasSendTokens; } });
|
|
51
|
+
Object.defineProperty(exports, "sampleL2MaxSubmissionCost", { enumerable: true, get: function () { return constants_1.sampleL2MaxSubmissionCost; } });
|
|
52
|
+
Object.defineProperty(exports, "sampleL2GasPrice", { enumerable: true, get: function () { return constants_1.sampleL2GasPrice; } });
|
|
53
|
+
Object.defineProperty(exports, "maxRefundsPerRelayerRefundLeaf", { enumerable: true, get: function () { return constants_1.maxRefundsPerRelayerRefundLeaf; } });
|
|
54
|
+
Object.defineProperty(exports, "maxL1TokensPerPoolRebalanceLeaf", { enumerable: true, get: function () { return constants_1.maxL1TokensPerPoolRebalanceLeaf; } });
|
|
55
|
+
Object.defineProperty(exports, "l1TokenTransferThreshold", { enumerable: true, get: function () { return constants_1.l1TokenTransferThreshold; } });
|
|
56
|
+
Object.defineProperty(exports, "MAX_REFUNDS_PER_RELAYER_REFUND_LEAF", { enumerable: true, get: function () { return constants_1.MAX_REFUNDS_PER_RELAYER_REFUND_LEAF; } });
|
|
57
|
+
Object.defineProperty(exports, "MAX_L1_TOKENS_PER_POOL_REBALANCE_LEAF", { enumerable: true, get: function () { return constants_1.MAX_L1_TOKENS_PER_POOL_REBALANCE_LEAF; } });
|
|
58
|
+
Object.defineProperty(exports, "sampleRateModel", { enumerable: true, get: function () { return constants_1.sampleRateModel; } });
|
|
22
59
|
Object.defineProperty(exports, "CONFIG_STORE_VERSION", { enumerable: true, get: function () { return constants_1.CONFIG_STORE_VERSION; } });
|
|
60
|
+
Object.defineProperty(exports, "randomAddress", { enumerable: true, get: function () { return constants_1.randomAddress; } });
|
|
23
61
|
Object.defineProperty(exports, "randomL1Token", { enumerable: true, get: function () { return constants_1.randomL1Token; } });
|
|
24
62
|
Object.defineProperty(exports, "randomOriginToken", { enumerable: true, get: function () { return constants_1.randomOriginToken; } });
|
|
25
63
|
Object.defineProperty(exports, "randomDestinationToken", { enumerable: true, get: function () { return constants_1.randomDestinationToken; } });
|
|
26
64
|
Object.defineProperty(exports, "randomDestinationToken2", { enumerable: true, get: function () { return constants_1.randomDestinationToken2; } });
|
|
27
|
-
Object.defineProperty(exports, "MAX_REFUNDS_PER_RELAYER_REFUND_LEAF", { enumerable: true, get: function () { return constants_1.MAX_REFUNDS_PER_RELAYER_REFUND_LEAF; } });
|
|
28
|
-
Object.defineProperty(exports, "MAX_L1_TOKENS_PER_POOL_REBALANCE_LEAF", { enumerable: true, get: function () { return constants_1.MAX_L1_TOKENS_PER_POOL_REBALANCE_LEAF; } });
|
|
29
|
-
Object.defineProperty(exports, "sampleRateModel", { enumerable: true, get: function () { return constants_1.sampleRateModel; } });
|
|
30
65
|
Object.defineProperty(exports, "CHAIN_ID_TEST_LIST", { enumerable: true, get: function () { return constants_1.CHAIN_ID_TEST_LIST; } });
|
|
31
66
|
var SpokePool_Fixture_1 = require("./test/fixtures/SpokePool.Fixture");
|
|
32
67
|
Object.defineProperty(exports, "deploySpokePool", { enumerable: true, get: function () { return SpokePool_Fixture_1.deploySpokePool; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.js","sourceRoot":"","sources":["../../test-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test-utils.js","sourceRoot":"","sources":["../../test-utils.ts"],"names":[],"mappings":";;;;;AAOA,6DAAmC;AAGnC,8CA2D0B;AA1DxB,2GAAA,cAAc,OAAA;AACd,+GAAA,kBAAkB,OAAA;AAClB,0GAAA,aAAa,OAAA;AACb,6GAAA,gBAAgB,OAAA;AAChB,uGAAA,UAAU,OAAA;AACV,uGAAA,UAAU,OAAA;AACV,2HAAA,8BAA8B,OAAA;AAC9B,gHAAA,mBAAmB,OAAA;AACnB,uGAAA,UAAU,OAAA;AACV,4GAAA,eAAe,OAAA;AACf,0GAAA,aAAa,OAAA;AACb,iHAAA,oBAAoB,OAAA;AACpB,kHAAA,qBAAqB,OAAA;AACrB,2HAAA,8BAA8B,OAAA;AAC9B,6GAAA,gBAAgB,OAAA;AAChB,0GAAA,aAAa,OAAA;AACb,6GAAA,gBAAgB,OAAA;AAChB,qHAAA,wBAAwB,OAAA;AACxB,iHAAA,oBAAoB,OAAA;AACpB,2GAAA,cAAc,OAAA;AACd,yHAAA,4BAA4B,OAAA;AAC5B,kHAAA,qBAAqB,OAAA;AACrB,2GAAA,cAAc,OAAA;AACd,uGAAA,UAAU,OAAA;AACV,qGAAA,QAAQ,OAAA;AACR,yGAAA,YAAY,OAAA;AACZ,yGAAA,YAAY,OAAA;AACZ,sGAAA,SAAS,OAAA;AACT,mHAAA,sBAAsB,OAAA;AACtB,wGAAA,WAAW,OAAA;AACX,wGAAA,WAAW,OAAA;AACX,uGAAA,UAAU,OAAA;AACV,yGAAA,YAAY,OAAA;AACZ,6HAAA,gCAAgC,OAAA;AAChC,uHAAA,0BAA0B,OAAA;AAC1B,kHAAA,qBAAqB,OAAA;AACrB,kHAAA,qBAAqB,OAAA;AACrB,8GAAA,iBAAiB,OAAA;AACjB,yGAAA,YAAY,OAAA;AACZ,6GAAA,gBAAgB,OAAA;AAChB,2GAAA,cAAc,OAAA;AACd,wGAAA,WAAW,OAAA;AACX,kHAAA,qBAAqB,OAAA;AACrB,sHAAA,yBAAyB,OAAA;AACzB,6GAAA,gBAAgB,OAAA;AAChB,2HAAA,8BAA8B,OAAA;AAC9B,4HAAA,+BAA+B,OAAA;AAC/B,qHAAA,wBAAwB,OAAA;AACxB,gIAAA,mCAAmC,OAAA;AACnC,kIAAA,qCAAqC,OAAA;AACrC,4GAAA,eAAe,OAAA;AACf,iHAAA,oBAAoB,OAAA;AACpB,0GAAA,aAAa,OAAA;AACb,0GAAA,aAAa,OAAA;AACb,8GAAA,iBAAiB,OAAA;AACjB,mHAAA,sBAAsB,OAAA;AACtB,oHAAA,uBAAuB,OAAA;AACvB,+GAAA,kBAAkB,OAAA;AAIpB,uEAAsF;AAA7E,oHAAA,eAAe,OAAA;AAAE,qHAAA,gBAAgB,OAAA;AAC1C,mEAAgF;AAAvE,gHAAA,aAAa,OAAA;AAAE,iHAAA,cAAc,OAAA;AAGtC,gEAQsC;AAPpC,6HAAA,0BAA0B,OAAA;AAC1B,2HAAA,wBAAwB,OAAA;AACxB,yHAAA,sBAAsB,OAAA;AACtB,2HAAA,wBAAwB,OAAA;AACxB,qHAAA,kBAAkB,OAAA;AAClB,uHAAA,oBAAoB,OAAA;AACpB,+GAAA,YAAY,OAAA;AAId,uDAA6B"}
|
package/dist/esm/test-utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./test/utils/utils";
|
|
2
|
-
export {
|
|
2
|
+
export { TokenRolesEnum, destinationChainId, originChainId, repaymentChainId, maxUint256, MAX_UINT32, MAX_EXCLUSIVITY_OFFSET_SECONDS, amountToSeedWallets, amountToLp, amountToDeposit, amountToRelay, depositRelayerFeePct, modifiedRelayerFeePct, incorrectModifiedRelayerFeePct, realizedLpFeePct, oneHundredPct, totalPostFeesPct, totalPostModifiedFeesPct, amountToRelayPreFees, amountReceived, amountToRelayPreModifiedFees, amountToRelayPreLPFee, firstDepositId, bondAmount, finalFee, finalFeeUsdc, finalFeeUsdt, totalBond, refundProposalLiveness, zeroAddress, zeroBytes32, identifier, zeroRawValue, mockBundleEvaluationBlockNumbers, mockPoolRebalanceLeafCount, mockPoolRebalanceRoot, mockRelayerRefundRoot, mockSlowRelayRoot, mockTreeRoot, amountHeldByPool, amountToReturn, sampleL2Gas, sampleL2GasSendTokens, sampleL2MaxSubmissionCost, sampleL2GasPrice, maxRefundsPerRelayerRefundLeaf, maxL1TokensPerPoolRebalanceLeaf, l1TokenTransferThreshold, MAX_REFUNDS_PER_RELAYER_REFUND_LEAF, MAX_L1_TOKENS_PER_POOL_REBALANCE_LEAF, sampleRateModel, CONFIG_STORE_VERSION, randomAddress, randomL1Token, randomOriginToken, randomDestinationToken, randomDestinationToken2, CHAIN_ID_TEST_LIST, } from "./test/constants";
|
|
3
3
|
export { deploySpokePool, spokePoolFixture } from "./test/fixtures/SpokePool.Fixture";
|
|
4
4
|
export { deployHubPool, hubPoolFixture } from "./test/fixtures/HubPool.Fixture";
|
|
5
5
|
export { buildPoolRebalanceLeafTree, buildPoolRebalanceLeaves, buildRelayerRefundTree, buildRelayerRefundLeaves, buildSlowRelayTree, buildV3SlowRelayTree, getParamType, } from "./test/utils/MerkleLib.utils";
|
package/dist/esm/test-utils.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// Export from utils first (primary source for randomAddress, zeroAddress)
|
|
7
7
|
export * from "./test/utils/utils";
|
|
8
8
|
// Export from constants, excluding duplicates that come from utils
|
|
9
|
-
export {
|
|
9
|
+
export { TokenRolesEnum, destinationChainId, originChainId, repaymentChainId, maxUint256, MAX_UINT32, MAX_EXCLUSIVITY_OFFSET_SECONDS, amountToSeedWallets, amountToLp, amountToDeposit, amountToRelay, depositRelayerFeePct, modifiedRelayerFeePct, incorrectModifiedRelayerFeePct, realizedLpFeePct, oneHundredPct, totalPostFeesPct, totalPostModifiedFeesPct, amountToRelayPreFees, amountReceived, amountToRelayPreModifiedFees, amountToRelayPreLPFee, firstDepositId, bondAmount, finalFee, finalFeeUsdc, finalFeeUsdt, totalBond, refundProposalLiveness, zeroAddress, zeroBytes32, identifier, zeroRawValue, mockBundleEvaluationBlockNumbers, mockPoolRebalanceLeafCount, mockPoolRebalanceRoot, mockRelayerRefundRoot, mockSlowRelayRoot, mockTreeRoot, amountHeldByPool, amountToReturn, sampleL2Gas, sampleL2GasSendTokens, sampleL2MaxSubmissionCost, sampleL2GasPrice, maxRefundsPerRelayerRefundLeaf, maxL1TokensPerPoolRebalanceLeaf, l1TokenTransferThreshold, MAX_REFUNDS_PER_RELAYER_REFUND_LEAF, MAX_L1_TOKENS_PER_POOL_REBALANCE_LEAF, sampleRateModel, CONFIG_STORE_VERSION, randomAddress, randomL1Token, randomOriginToken, randomDestinationToken, randomDestinationToken2, CHAIN_ID_TEST_LIST, } from "./test/constants";
|
|
10
10
|
// Export from fixtures, excluding zeroAddress which is already exported from utils
|
|
11
11
|
export { deploySpokePool, spokePoolFixture } from "./test/fixtures/SpokePool.Fixture";
|
|
12
12
|
export { deployHubPool, hubPoolFixture } from "./test/fixtures/HubPool.Fixture";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.js","sourceRoot":"","sources":["../../test-utils.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,6FAA6F;AAC7F,iGAAiG;AACjG,8DAA8D;AAC9D,8CAA8C;AAE9C,0EAA0E;AAC1E,cAAc,oBAAoB,CAAC;AAEnC,mEAAmE;AACnE,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"test-utils.js","sourceRoot":"","sources":["../../test-utils.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAC3F,6FAA6F;AAC7F,iGAAiG;AACjG,8DAA8D;AAC9D,8CAA8C;AAE9C,0EAA0E;AAC1E,cAAc,oBAAoB,CAAC;AAEnC,mEAAmE;AACnE,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,8BAA8B,EAC9B,mBAAmB,EACnB,UAAU,EACV,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,qBAAqB,EACrB,8BAA8B,EAC9B,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,4BAA4B,EAC5B,qBAAqB,EACrB,cAAc,EACd,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,sBAAsB,EACtB,WAAW,EACX,WAAW,EACX,UAAU,EACV,YAAY,EACZ,gCAAgC,EAChC,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,qBAAqB,EACrB,yBAAyB,EACzB,gBAAgB,EAChB,8BAA8B,EAC9B,+BAA+B,EAC/B,wBAAwB,EACxB,mCAAmC,EACnC,qCAAqC,EACrC,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAE1B,mFAAmF;AACnF,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEhF,kFAAkF;AAClF,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,GACb,MAAM,8BAA8B,CAAC;AAEtC,eAAe;AACf,cAAc,cAAc,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./test/utils/utils";
|
|
2
|
-
export {
|
|
2
|
+
export { TokenRolesEnum, destinationChainId, originChainId, repaymentChainId, maxUint256, MAX_UINT32, MAX_EXCLUSIVITY_OFFSET_SECONDS, amountToSeedWallets, amountToLp, amountToDeposit, amountToRelay, depositRelayerFeePct, modifiedRelayerFeePct, incorrectModifiedRelayerFeePct, realizedLpFeePct, oneHundredPct, totalPostFeesPct, totalPostModifiedFeesPct, amountToRelayPreFees, amountReceived, amountToRelayPreModifiedFees, amountToRelayPreLPFee, firstDepositId, bondAmount, finalFee, finalFeeUsdc, finalFeeUsdt, totalBond, refundProposalLiveness, zeroAddress, zeroBytes32, identifier, zeroRawValue, mockBundleEvaluationBlockNumbers, mockPoolRebalanceLeafCount, mockPoolRebalanceRoot, mockRelayerRefundRoot, mockSlowRelayRoot, mockTreeRoot, amountHeldByPool, amountToReturn, sampleL2Gas, sampleL2GasSendTokens, sampleL2MaxSubmissionCost, sampleL2GasPrice, maxRefundsPerRelayerRefundLeaf, maxL1TokensPerPoolRebalanceLeaf, l1TokenTransferThreshold, MAX_REFUNDS_PER_RELAYER_REFUND_LEAF, MAX_L1_TOKENS_PER_POOL_REBALANCE_LEAF, sampleRateModel, CONFIG_STORE_VERSION, randomAddress, randomL1Token, randomOriginToken, randomDestinationToken, randomDestinationToken2, CHAIN_ID_TEST_LIST, } from "./test/constants";
|
|
3
3
|
export { deploySpokePool, spokePoolFixture } from "./test/fixtures/SpokePool.Fixture";
|
|
4
4
|
export { deployHubPool, hubPoolFixture } from "./test/fixtures/HubPool.Fixture";
|
|
5
5
|
export { buildPoolRebalanceLeafTree, buildPoolRebalanceLeaves, buildRelayerRefundTree, buildRelayerRefundLeaves, buildSlowRelayTree, buildV3SlowRelayTree, getParamType, } from "./test/utils/MerkleLib.utils";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../test-utils.ts"],"names":[],"mappings":"AAOA,cAAc,oBAAoB,CAAC;AAGnC,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../test-utils.ts"],"names":[],"mappings":"AAOA,cAAc,oBAAoB,CAAC;AAGnC,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,8BAA8B,EAC9B,mBAAmB,EACnB,UAAU,EACV,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,qBAAqB,EACrB,8BAA8B,EAC9B,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,wBAAwB,EACxB,oBAAoB,EACpB,cAAc,EACd,4BAA4B,EAC5B,qBAAqB,EACrB,cAAc,EACd,UAAU,EACV,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,SAAS,EACT,sBAAsB,EACtB,WAAW,EACX,WAAW,EACX,UAAU,EACV,YAAY,EACZ,gCAAgC,EAChC,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,qBAAqB,EACrB,yBAAyB,EACzB,gBAAgB,EAChB,8BAA8B,EAC9B,+BAA+B,EAC/B,wBAAwB,EACxB,mCAAmC,EACnC,qCAAqC,EACrC,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAGhF,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,GACb,MAAM,8BAA8B,CAAC;AAGtC,cAAc,cAAc,CAAC"}
|