@typus/typus-sdk 1.0.105 → 1.0.106
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/lib/config.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"VERSION": "3.0.
|
|
2
|
+
"VERSION": "3.0.3",
|
|
3
3
|
"DB_NAME": "testnet_3_0_0",
|
|
4
4
|
"RPC_ENDPOINT": "https://api.shinami.com:443/node/v1/sui_testnet_c702de54dad05016124f2cfabc1de7e8",
|
|
5
5
|
"sponsorApi": "https://northamerica-northeast1-aqueous-freedom-378103.cloudfunctions.net/sponsor-testnet",
|
|
6
|
-
"SINGLE_COLLATERAL_PACKAGE": "
|
|
6
|
+
"SINGLE_COLLATERAL_PACKAGE": "0x14be6404c3222346a001386b0eab940b3429a3c904f6a72dab77044ce67f5f60",
|
|
7
7
|
"SINGLE_COLLATERAL_PACKAGE_ORIGIN": "0x0334a2ae4b0c5cd007d3bf44925975726b94c1061eb45d660e8b79ec91c0599e",
|
|
8
8
|
"SINGLE_COLLATERAL_MANAGER_CAP": "0xdc092ced3f08dc31cbbdaa584a937d4e54555cb47a1dca1d756560809d92c0ba",
|
|
9
9
|
"SINGLE_COLLATERAL_REGISTRY": "0xcb757bd17a8daa75c2b12a5c5f19bd88e7e2e96b8a220bbe4cf0605affea7475",
|
|
@@ -132,18 +132,20 @@ exports.getStakeNftTx = getStakeNftTx;
|
|
|
132
132
|
registry: &mut Registry,
|
|
133
133
|
kiosk: &mut Kiosk,
|
|
134
134
|
kiosk_cap: &KioskOwnerCap,
|
|
135
|
+
coin: Coin<SUI>,
|
|
135
136
|
ctx: &mut TxContext
|
|
136
137
|
)
|
|
137
138
|
*/
|
|
138
139
|
function getUnstakeNftTx(gasBudget, nftPackageId, registry, kiosk, kiosk_cap) {
|
|
139
140
|
return __awaiter(this, void 0, void 0, function () {
|
|
140
|
-
var tx;
|
|
141
|
-
return __generator(this, function (
|
|
141
|
+
var tx, _a, coin;
|
|
142
|
+
return __generator(this, function (_b) {
|
|
142
143
|
tx = new sui_js_1.TransactionBlock();
|
|
144
|
+
_a = __read(tx.splitCoins(tx.gas, [tx.pure(50000000)]), 1), coin = _a[0];
|
|
143
145
|
tx.moveCall({
|
|
144
146
|
target: "".concat(nftPackageId, "::tails_staking::unstake_nft"),
|
|
145
147
|
typeArguments: [],
|
|
146
|
-
arguments: [tx.object(registry), tx.object(kiosk), tx.object(kiosk_cap)],
|
|
148
|
+
arguments: [tx.object(registry), tx.object(kiosk), tx.object(kiosk_cap), coin],
|
|
147
149
|
});
|
|
148
150
|
tx.setGasBudget(gasBudget);
|
|
149
151
|
return [2 /*return*/, tx];
|