@sodax/sdk 0.0.1-rc.34 → 0.0.1-rc.35
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 +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9409,7 +9409,7 @@ var SuiSpokeProvider = class _SuiSpokeProvider {
|
|
|
9409
9409
|
async transfer(token, amount, to, data, raw) {
|
|
9410
9410
|
const isNative2 = token.toLowerCase() === this.chainConfig.nativeToken.toLowerCase();
|
|
9411
9411
|
const tx = new transactions.Transaction();
|
|
9412
|
-
const walletAddress = await this.walletProvider.
|
|
9412
|
+
const walletAddress = await this.walletProvider.getWalletAddress();
|
|
9413
9413
|
const coin = isNative2 ? await this.getNativeCoin(tx, amount) : await this.getCoin(tx, token, amount, walletAddress);
|
|
9414
9414
|
const connection = this.splitAddress(this.chainConfig.addresses.connection);
|
|
9415
9415
|
const assetManager = this.splitAddress(await this.getAssetManagerAddress());
|
|
@@ -10443,7 +10443,7 @@ var StellarSpokeService = class _StellarSpokeService {
|
|
|
10443
10443
|
static async deposit(params, spokeProvider, hubProvider, raw) {
|
|
10444
10444
|
const userWallet = params.to ?? await EvmWalletAbstraction.getUserHubWalletAddress(
|
|
10445
10445
|
spokeProvider.chainConfig.chain.id,
|
|
10446
|
-
params.from,
|
|
10446
|
+
encodeAddress(spokeProvider.chainConfig.chain.id, params.from),
|
|
10447
10447
|
hubProvider
|
|
10448
10448
|
);
|
|
10449
10449
|
return _StellarSpokeService.transfer(
|
|
@@ -10476,7 +10476,7 @@ var StellarSpokeService = class _StellarSpokeService {
|
|
|
10476
10476
|
static async getSimulateDepositParams(params, spokeProvider, hubProvider) {
|
|
10477
10477
|
const to = params.to ?? await EvmWalletAbstraction.getUserHubWalletAddress(
|
|
10478
10478
|
spokeProvider.chainConfig.chain.id,
|
|
10479
|
-
params.from,
|
|
10479
|
+
encodeAddress(spokeProvider.chainConfig.chain.id, params.from),
|
|
10480
10480
|
hubProvider
|
|
10481
10481
|
);
|
|
10482
10482
|
return {
|
|
@@ -11226,6 +11226,7 @@ var SpokeService = class _SpokeService {
|
|
|
11226
11226
|
);
|
|
11227
11227
|
}
|
|
11228
11228
|
if (spokeProvider instanceof SuiSpokeProvider) {
|
|
11229
|
+
await _SpokeService.verifyDepositSimulation(params, spokeProvider, hubProvider, skipSimulation);
|
|
11229
11230
|
return SuiSpokeService.deposit(
|
|
11230
11231
|
params,
|
|
11231
11232
|
spokeProvider,
|