@paraswap/dex-lib 2.18.6-swaap-v2.2 → 2.19.0
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/build/abi/DirectSwap.json +1008 -0
- package/build/config.js +2 -4
- package/build/config.js.map +1 -1
- package/build/dex/index.js +2 -2
- package/build/dex/index.js.map +1 -1
- package/build/dex/solidly/config.js +13 -1
- package/build/dex/solidly/config.js.map +1 -1
- package/build/dex/solidly/forks-override/thena.d.ts +20 -0
- package/build/dex/solidly/forks-override/thena.js +46 -0
- package/build/dex/solidly/forks-override/thena.js.map +1 -0
- package/build/dex/solidly/solidly.js +1 -0
- package/build/dex/solidly/solidly.js.map +1 -1
- package/build/types.d.ts +0 -1
- package/package.json +1 -1
- package/src/config.ts +2 -5
- package/src/dex/index.ts +2 -2
- package/src/dex/solidly/config.ts +14 -1
- package/src/dex/solidly/forks-override/thena.ts +58 -0
- package/src/dex/solidly/solidly-e2e.test.ts +86 -0
- package/src/dex/solidly/solidly.ts +1 -0
- package/src/types.ts +0 -1
- package/tests/constants-e2e.ts +2 -2
- package/tests/utils-e2e.ts +0 -5
- package/.idea/aws.xml +0 -17
- package/.idea/codeStyles/Project.xml +0 -19
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/paraswap-dex-lib.iml +0 -9
- package/.idea/vcs.xml +0 -6
- package/build/abi/swaap-v2/vault.json +0 -918
- package/build/dex/aave-v3/tokens/arbitrum.json +0 -50
- package/build/dex/aave-v3/tokens/avalanche.json +0 -74
- package/build/dex/aave-v3/tokens/fantom.json +0 -62
- package/build/dex/aave-v3/tokens/optimism.json +0 -50
- package/build/dex/aave-v3/tokens/polygon.json +0 -116
- package/build/dex/pancakeswap-v3/types.d.ts +0 -14
- package/build/dex/pancakeswap-v3/types.js +0 -3
- package/build/dex/pancakeswap-v3/types.js.map +0 -1
- package/build/dex/swaap-v2/config.d.ts +0 -4
- package/build/dex/swaap-v2/config.js +0 -25
- package/build/dex/swaap-v2/config.js.map +0 -1
- package/build/dex/swaap-v2/constants.d.ts +0 -9
- package/build/dex/swaap-v2/constants.js +0 -13
- package/build/dex/swaap-v2/constants.js.map +0 -1
- package/build/dex/swaap-v2/rate-fetcher.d.ts +0 -16
- package/build/dex/swaap-v2/rate-fetcher.js +0 -100
- package/build/dex/swaap-v2/rate-fetcher.js.map +0 -1
- package/build/dex/swaap-v2/swaap-v2.d.ts +0 -55
- package/build/dex/swaap-v2/swaap-v2.js +0 -465
- package/build/dex/swaap-v2/swaap-v2.js.map +0 -1
- package/build/dex/swaap-v2/types.d.ts +0 -64
- package/build/dex/swaap-v2/types.js +0 -7
- package/build/dex/swaap-v2/types.js.map +0 -1
- package/build/dex/swaap-v2/utils.d.ts +0 -7
- package/build/dex/swaap-v2/utils.js +0 -34
- package/build/dex/swaap-v2/utils.js.map +0 -1
- package/build/dex/swaap-v2/validators.d.ts +0 -5
- package/build/dex/swaap-v2/validators.js +0 -120
- package/build/dex/swaap-v2/validators.js.map +0 -1
- package/src/abi/swaap-v2/vault.json +0 -918
- package/src/dex/swaap-v2/config.ts +0 -25
- package/src/dex/swaap-v2/constants.ts +0 -14
- package/src/dex/swaap-v2/rate-fetcher.ts +0 -163
- package/src/dex/swaap-v2/swaap-v2-e2e.test.ts +0 -199
- package/src/dex/swaap-v2/swaap-v2-integration.test.ts +0 -142
- package/src/dex/swaap-v2/swaap-v2.ts +0 -713
- package/src/dex/swaap-v2/types.ts +0 -74
- package/src/dex/swaap-v2/utils.ts +0 -44
- package/src/dex/swaap-v2/validators.ts +0 -123
package/tests/utils-e2e.ts
CHANGED
|
@@ -189,7 +189,6 @@ export async function testE2E(
|
|
|
189
189
|
transferFees?: TransferFeeParams,
|
|
190
190
|
// Specified in BPS: part of 10000
|
|
191
191
|
slippage?: number,
|
|
192
|
-
sleepMs?: number,
|
|
193
192
|
) {
|
|
194
193
|
const amount = BigInt(_amount);
|
|
195
194
|
const ts = new TenderlySimulation(network);
|
|
@@ -232,10 +231,6 @@ export async function testE2E(
|
|
|
232
231
|
: new LocalParaswapSDK(network, dexKey, '', limitOrderProvider);
|
|
233
232
|
|
|
234
233
|
if (paraswap.initializePricing) await paraswap.initializePricing();
|
|
235
|
-
|
|
236
|
-
if (sleepMs) {
|
|
237
|
-
await sleep(sleepMs);
|
|
238
|
-
}
|
|
239
234
|
|
|
240
235
|
if (paraswap.dexHelper?.replaceProviderWithRPC) {
|
|
241
236
|
paraswap.dexHelper?.replaceProviderWithRPC(
|
package/.idea/aws.xml
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="accountSettings">
|
|
4
|
-
<option name="activeProfile" value="profile:default" />
|
|
5
|
-
<option name="activeRegion" value="us-east-1" />
|
|
6
|
-
<option name="recentlyUsedProfiles">
|
|
7
|
-
<list>
|
|
8
|
-
<option value="profile:default" />
|
|
9
|
-
</list>
|
|
10
|
-
</option>
|
|
11
|
-
<option name="recentlyUsedRegions">
|
|
12
|
-
<list>
|
|
13
|
-
<option value="us-east-1" />
|
|
14
|
-
</list>
|
|
15
|
-
</option>
|
|
16
|
-
</component>
|
|
17
|
-
</project>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<component name="ProjectCodeStyleConfiguration">
|
|
2
|
-
<code_scheme name="Project" version="173">
|
|
3
|
-
<ScalaCodeStyleSettings>
|
|
4
|
-
<option name="MULTILINE_STRING_CLOSING_QUOTES_ON_NEW_LINE" value="true" />
|
|
5
|
-
</ScalaCodeStyleSettings>
|
|
6
|
-
<TypeScriptCodeStyleSettings version="0">
|
|
7
|
-
<option name="SPACE_WITHIN_ARRAY_INITIALIZER_BRACKETS" value="true" />
|
|
8
|
-
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
9
|
-
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
10
|
-
</TypeScriptCodeStyleSettings>
|
|
11
|
-
<codeStyleSettings language="TypeScript">
|
|
12
|
-
<indentOptions>
|
|
13
|
-
<option name="INDENT_SIZE" value="2" />
|
|
14
|
-
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
15
|
-
<option name="TAB_SIZE" value="2" />
|
|
16
|
-
</indentOptions>
|
|
17
|
-
</codeStyleSettings>
|
|
18
|
-
</code_scheme>
|
|
19
|
-
</component>
|
package/.idea/misc.xml
DELETED
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/paraswap-dex-lib.iml" filepath="$PROJECT_DIR$/.idea/paraswap-dex-lib.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="JAVA_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
-
<exclude-output />
|
|
5
|
-
<content url="file://$MODULE_DIR$" />
|
|
6
|
-
<orderEntry type="inheritedJdk" />
|
|
7
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
-
</component>
|
|
9
|
-
</module>
|