@sodax/sdk 0.0.1-rc.18 → 0.0.1-rc.19
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 +7 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +7 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -6215,12 +6215,9 @@ var hubChainConfig = {
|
|
|
6215
6215
|
assetManager: "0x60c5681bD1DB4e50735c4cA3386005A4BA4937C0",
|
|
6216
6216
|
hubWallet: "0xA0ed3047D358648F2C0583B415CffCA571FDB544",
|
|
6217
6217
|
xTokenManager: "0x5bD2843de9D6b0e6A05d0FB742072274EA3C6CA3",
|
|
6218
|
-
icxMigration: "
|
|
6219
|
-
// TODO update with "final" address before migration
|
|
6218
|
+
icxMigration: "0x8294DE9fc60F5ABCc19245E5857071d7C42B9875",
|
|
6220
6219
|
balnSwap: "0x610a90B61b89a98b954d5750E94834Aa45d08d10",
|
|
6221
|
-
|
|
6222
|
-
sodaToken: "0x8515352CB9832D1d379D52366D1E995ADd358420"
|
|
6223
|
-
// TODO update with "final" address before migration
|
|
6220
|
+
sodaToken: "0x7c7d53eecda37a87ce0d5bf8e0b24512a48dc963"
|
|
6224
6221
|
},
|
|
6225
6222
|
nativeToken: "0x0000000000000000000000000000000000000000",
|
|
6226
6223
|
supportedTokens: []
|
|
@@ -9522,7 +9519,7 @@ var MoneyMarketService = class _MoneyMarketService {
|
|
|
9522
9519
|
}
|
|
9523
9520
|
}
|
|
9524
9521
|
/**
|
|
9525
|
-
* Create supply intent only (without
|
|
9522
|
+
* Create supply intent only (without relay submit to Solver API)
|
|
9526
9523
|
* NOTE: This method does not submit the intent to the Solver API, it only executes the transaction on the spoke chain
|
|
9527
9524
|
* In order to successfully supply tokens, you need to:
|
|
9528
9525
|
* 1. Check if the allowance is sufficient
|
|
@@ -9680,7 +9677,7 @@ var MoneyMarketService = class _MoneyMarketService {
|
|
|
9680
9677
|
}
|
|
9681
9678
|
}
|
|
9682
9679
|
/**
|
|
9683
|
-
* Create borrow intent only (without
|
|
9680
|
+
* Create borrow intent only (without relay and submit to Solver API)
|
|
9684
9681
|
* NOTE: This method does not submit the intent to the Solver API, it only executes the transaction on the spoke chain
|
|
9685
9682
|
* In order to successfully borrow tokens, you need to:
|
|
9686
9683
|
* 1. Execute the borrow transaction on the spoke chain
|
|
@@ -9815,7 +9812,7 @@ var MoneyMarketService = class _MoneyMarketService {
|
|
|
9815
9812
|
}
|
|
9816
9813
|
}
|
|
9817
9814
|
/**
|
|
9818
|
-
* Create withdraw intent only (without
|
|
9815
|
+
* Create withdraw intent only (without relay and submit to Solver API)
|
|
9819
9816
|
* NOTE: This method does not submit the intent to the Solver API, it only executes the transaction on the spoke chain
|
|
9820
9817
|
* In order to successfully withdraw tokens, you need to:
|
|
9821
9818
|
* 1. Execute the withdraw transaction on the spoke chain
|
|
@@ -9950,7 +9947,7 @@ var MoneyMarketService = class _MoneyMarketService {
|
|
|
9950
9947
|
}
|
|
9951
9948
|
}
|
|
9952
9949
|
/**
|
|
9953
|
-
* Create repay intent only (without
|
|
9950
|
+
* Create repay intent only (without relay and submit to Solver API)
|
|
9954
9951
|
* NOTE: This method does not submit the intent to the Solver API, it only executes the transaction on the spoke chain
|
|
9955
9952
|
* In order to successfully repay tokens, you need to:
|
|
9956
9953
|
* 1. Check if the allowance is sufficient
|
|
@@ -11654,7 +11651,7 @@ function isSuiSpokeProvider(value) {
|
|
|
11654
11651
|
return typeof value === "object" && value !== null && value instanceof SuiSpokeProvider && value.chainConfig.chain.type === "SUI";
|
|
11655
11652
|
}
|
|
11656
11653
|
function isConfiguredSolverConfig(value) {
|
|
11657
|
-
return typeof value === "object" && value !== null && "intentsContract" in value && "solverApiEndpoint" in value
|
|
11654
|
+
return typeof value === "object" && value !== null && "intentsContract" in value && "solverApiEndpoint" in value;
|
|
11658
11655
|
}
|
|
11659
11656
|
function isConfiguredMoneyMarketConfig(value) {
|
|
11660
11657
|
return typeof value === "object" && value !== null && "lendingPool" in value && "uiPoolDataProvider" in value && "poolAddressesProvider" in value && "bnUSD" in value && "bnUSDVault" in value;
|