@sodax/sdk 2.0.0-rc.6 → 2.0.0-rc.8
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/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -3899,7 +3899,7 @@ function isValidWalletProviderForChainKey(chainKey, walletProvider) {
|
|
|
3899
3899
|
}
|
|
3900
3900
|
|
|
3901
3901
|
// ../types/dist/index.js
|
|
3902
|
-
var CONFIG_VERSION =
|
|
3902
|
+
var CONFIG_VERSION = 206;
|
|
3903
3903
|
function isEvmSpokeChainConfig(value) {
|
|
3904
3904
|
return typeof value === "object" && value !== null && value.chain.type === "EVM" && value.chain.key !== HUB_CHAIN_KEY;
|
|
3905
3905
|
}
|
|
@@ -31353,7 +31353,7 @@ var AssetService = class {
|
|
|
31353
31353
|
calls.push(Erc4626Service.encodeRedeem(dexToken, amount, userAddress, userAddress));
|
|
31354
31354
|
}
|
|
31355
31355
|
calls.push(EvmVaultTokenService.encodeWithdraw(assetConfig.vault, assetConfig.hubAsset, vaultAmount));
|
|
31356
|
-
const translatedAmount = EvmVaultTokenService.
|
|
31356
|
+
const translatedAmount = EvmVaultTokenService.translateOutgoingDecimals(assetConfig.decimals, vaultAmount);
|
|
31357
31357
|
if (dstChainKey === this.hubProvider.chainConfig.chain.key) {
|
|
31358
31358
|
if (assetConfig.hubAsset.toLowerCase() === this.config.spokeChainConfig[dstChainKey].addresses.wrappedSonic.toLowerCase()) {
|
|
31359
31359
|
const withdrawToCall = {
|
package/dist/index.mjs
CHANGED
|
@@ -3871,7 +3871,7 @@ function isValidWalletProviderForChainKey(chainKey, walletProvider) {
|
|
|
3871
3871
|
}
|
|
3872
3872
|
|
|
3873
3873
|
// ../types/dist/index.js
|
|
3874
|
-
var CONFIG_VERSION =
|
|
3874
|
+
var CONFIG_VERSION = 206;
|
|
3875
3875
|
function isEvmSpokeChainConfig(value) {
|
|
3876
3876
|
return typeof value === "object" && value !== null && value.chain.type === "EVM" && value.chain.key !== HUB_CHAIN_KEY;
|
|
3877
3877
|
}
|
|
@@ -31325,7 +31325,7 @@ var AssetService = class {
|
|
|
31325
31325
|
calls.push(Erc4626Service.encodeRedeem(dexToken, amount, userAddress, userAddress));
|
|
31326
31326
|
}
|
|
31327
31327
|
calls.push(EvmVaultTokenService.encodeWithdraw(assetConfig.vault, assetConfig.hubAsset, vaultAmount));
|
|
31328
|
-
const translatedAmount = EvmVaultTokenService.
|
|
31328
|
+
const translatedAmount = EvmVaultTokenService.translateOutgoingDecimals(assetConfig.decimals, vaultAmount);
|
|
31329
31329
|
if (dstChainKey === this.hubProvider.chainConfig.chain.key) {
|
|
31330
31330
|
if (assetConfig.hubAsset.toLowerCase() === this.config.spokeChainConfig[dstChainKey].addresses.wrappedSonic.toLowerCase()) {
|
|
31331
31331
|
const withdrawToCall = {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.0.0-rc.
|
|
7
|
+
"version": "2.0.0-rc.8",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"description": "Sodax SDK",
|
|
10
10
|
"keywords": [
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"near-api-js": "7.2.0",
|
|
66
66
|
"rlp": "3.0.0",
|
|
67
67
|
"viem": "2.29.2",
|
|
68
|
-
"@sodax/
|
|
69
|
-
"@sodax/
|
|
68
|
+
"@sodax/types": "2.0.0-rc.8",
|
|
69
|
+
"@sodax/libs": "2.0.0-rc.8"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@arethetypeswrong/cli": "0.17.4",
|