@msafe/sui3-sdk 0.0.51 → 0.0.52-pre-84992c2.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/dist/index.cjs +16 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -7
- package/src/core/MSafeAccount.ts +11 -1
package/dist/index.js
CHANGED
|
@@ -42939,7 +42939,11 @@ import {
|
|
|
42939
42939
|
isSameAddress as isSameAddress2
|
|
42940
42940
|
} from "@msafe/sui3-utils";
|
|
42941
42941
|
import { TransactionBlock as TransactionBlock13 } from "@mysten/sui.js/transactions";
|
|
42942
|
-
import { normalizeStructTag as normalizeStructTag3, toHEX } from "@mysten/sui.js/utils";
|
|
42942
|
+
import { fromHEX, normalizeStructTag as normalizeStructTag3, toHEX } from "@mysten/sui.js/utils";
|
|
42943
|
+
|
|
42944
|
+
// node_modules/@mysten/wallet-standard/dist/esm/chains.js
|
|
42945
|
+
var SUI_TESTNET_CHAIN = "sui:testnet";
|
|
42946
|
+
var SUI_MAINNET_CHAIN = "sui:mainnet";
|
|
42943
42947
|
|
|
42944
42948
|
// src/simulate/simulator.ts
|
|
42945
42949
|
import { TransactionBlock as TransactionBlock12 } from "@mysten/sui.js/transactions";
|
|
@@ -43451,7 +43455,10 @@ var MSafeAccount = class _MSafeAccount {
|
|
|
43451
43455
|
txSubType: request.txSubType,
|
|
43452
43456
|
suiClient: this.globals.suiClient,
|
|
43453
43457
|
account: {
|
|
43454
|
-
address: this.address
|
|
43458
|
+
address: this.address,
|
|
43459
|
+
publicKey: fromHEX(this.address),
|
|
43460
|
+
chains: [SUI_MAINNET_CHAIN, SUI_TESTNET_CHAIN],
|
|
43461
|
+
features: []
|
|
43455
43462
|
}
|
|
43456
43463
|
});
|
|
43457
43464
|
return this.simulator.simulate({ txb, sender: this.address });
|
|
@@ -43483,7 +43490,10 @@ var MSafeAccount = class _MSafeAccount {
|
|
|
43483
43490
|
txSubType: input.txSubType,
|
|
43484
43491
|
suiClient: this.globals.suiClient,
|
|
43485
43492
|
account: {
|
|
43486
|
-
address: this.address
|
|
43493
|
+
address: this.address,
|
|
43494
|
+
publicKey: fromHEX(this.address),
|
|
43495
|
+
chains: [SUI_MAINNET_CHAIN, SUI_TESTNET_CHAIN],
|
|
43496
|
+
features: []
|
|
43487
43497
|
}
|
|
43488
43498
|
});
|
|
43489
43499
|
txb.setGasPrice(input.gasPrice);
|
|
@@ -43628,7 +43638,10 @@ var MSafeAccount = class _MSafeAccount {
|
|
|
43628
43638
|
txSubType: intention.txSubType,
|
|
43629
43639
|
suiClient: this.globals.suiClient,
|
|
43630
43640
|
account: {
|
|
43631
|
-
address: this.address
|
|
43641
|
+
address: this.address,
|
|
43642
|
+
publicKey: fromHEX(this.address),
|
|
43643
|
+
chains: [SUI_MAINNET_CHAIN, SUI_TESTNET_CHAIN],
|
|
43644
|
+
features: []
|
|
43632
43645
|
}
|
|
43633
43646
|
});
|
|
43634
43647
|
return this.simulator.simulate({ txb, sender: this.address });
|