@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.mjs
CHANGED
|
@@ -9381,7 +9381,7 @@ var SuiSpokeProvider = class _SuiSpokeProvider {
|
|
|
9381
9381
|
async transfer(token, amount, to, data, raw) {
|
|
9382
9382
|
const isNative2 = token.toLowerCase() === this.chainConfig.nativeToken.toLowerCase();
|
|
9383
9383
|
const tx = new Transaction();
|
|
9384
|
-
const walletAddress = await this.walletProvider.
|
|
9384
|
+
const walletAddress = await this.walletProvider.getWalletAddress();
|
|
9385
9385
|
const coin = isNative2 ? await this.getNativeCoin(tx, amount) : await this.getCoin(tx, token, amount, walletAddress);
|
|
9386
9386
|
const connection = this.splitAddress(this.chainConfig.addresses.connection);
|
|
9387
9387
|
const assetManager = this.splitAddress(await this.getAssetManagerAddress());
|
|
@@ -10415,7 +10415,7 @@ var StellarSpokeService = class _StellarSpokeService {
|
|
|
10415
10415
|
static async deposit(params, spokeProvider, hubProvider, raw) {
|
|
10416
10416
|
const userWallet = params.to ?? await EvmWalletAbstraction.getUserHubWalletAddress(
|
|
10417
10417
|
spokeProvider.chainConfig.chain.id,
|
|
10418
|
-
params.from,
|
|
10418
|
+
encodeAddress(spokeProvider.chainConfig.chain.id, params.from),
|
|
10419
10419
|
hubProvider
|
|
10420
10420
|
);
|
|
10421
10421
|
return _StellarSpokeService.transfer(
|
|
@@ -10448,7 +10448,7 @@ var StellarSpokeService = class _StellarSpokeService {
|
|
|
10448
10448
|
static async getSimulateDepositParams(params, spokeProvider, hubProvider) {
|
|
10449
10449
|
const to = params.to ?? await EvmWalletAbstraction.getUserHubWalletAddress(
|
|
10450
10450
|
spokeProvider.chainConfig.chain.id,
|
|
10451
|
-
params.from,
|
|
10451
|
+
encodeAddress(spokeProvider.chainConfig.chain.id, params.from),
|
|
10452
10452
|
hubProvider
|
|
10453
10453
|
);
|
|
10454
10454
|
return {
|
|
@@ -11198,6 +11198,7 @@ var SpokeService = class _SpokeService {
|
|
|
11198
11198
|
);
|
|
11199
11199
|
}
|
|
11200
11200
|
if (spokeProvider instanceof SuiSpokeProvider) {
|
|
11201
|
+
await _SpokeService.verifyDepositSimulation(params, spokeProvider, hubProvider, skipSimulation);
|
|
11201
11202
|
return SuiSpokeService.deposit(
|
|
11202
11203
|
params,
|
|
11203
11204
|
spokeProvider,
|