@typus/typus-sdk 1.6.26 → 1.6.28
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.
|
@@ -190,6 +190,8 @@ function assetToDecimal(asset) {
|
|
|
190
190
|
case "STSUI":
|
|
191
191
|
case "WAL":
|
|
192
192
|
case "HAEDAL":
|
|
193
|
+
case "JPY":
|
|
194
|
+
case "XAU":
|
|
193
195
|
return 9;
|
|
194
196
|
case "wBTC":
|
|
195
197
|
case "sbETH":
|
|
@@ -264,7 +266,7 @@ exports.tokenType = {
|
|
|
264
266
|
WAL: "0x356a26eb9e012a68958082340d4c4116e7f55615cf27affcff209cf0ae544f59::wal::WAL",
|
|
265
267
|
LBTC: "0x3e8e9423d80e1774a7ca128fccd8bf5f1f7753be658c5e645929037f7c819040::lbtc::LBTC",
|
|
266
268
|
JPY: "",
|
|
267
|
-
XAU: "",
|
|
269
|
+
XAU: "0x732f66e6e97c0f6b7250a5f43dc3576e225ae6e7578862a9b122915f6ff63988::xau::XAU",
|
|
268
270
|
HAEDAL: "0x3a304c7feba2d819ea57c3542d68439ca2c386ba02159c740f7b406e592c62ea::haedal::HAEDAL",
|
|
269
271
|
},
|
|
270
272
|
TESTNET: {
|
|
@@ -343,6 +345,8 @@ exports.oracle = {
|
|
|
343
345
|
LBTC: "0x7781a2f3a77a9a2b4a8fe8a5ce54eb8d155e924966ff9b8d4459c08efedc946b",
|
|
344
346
|
wAPT: "0x25f9ffcc52776d5f8656bbdb4a3339a411c1550f288560ab0b101170f23b8245",
|
|
345
347
|
HAEDAL: "0x5dde9f285c75132a91b54ea7e93f5ddd61cdb38ca8e6191263028561a9956f94",
|
|
348
|
+
XAU: "0x511c861bcc9fb41e96091e9aefe07ff0ac55369b5838fd7f793569581b3b2f33",
|
|
349
|
+
JPY: "0x8cf8e48c6434d33ff28b8f15ca4e728821705db71087567fbedf4e4585f326b9",
|
|
346
350
|
},
|
|
347
351
|
TESTNET: {
|
|
348
352
|
SUI: "0x9083c9ce1a1eef569bb1a8b31dfa5e0fce2e05887e68ba79ca6ae522acd041f3",
|
|
@@ -139,3 +139,16 @@ export declare function getRemoveProfitSharingTx(config: TypusConfig, tx: Transa
|
|
|
139
139
|
typeArguments: string[];
|
|
140
140
|
recipient: string;
|
|
141
141
|
}): Transaction;
|
|
142
|
+
/**
|
|
143
|
+
public fun public_exp_up(
|
|
144
|
+
_manager_cap: &ManagerCap,
|
|
145
|
+
version: &Version,
|
|
146
|
+
tails_staking_registry: &mut TailsStakingRegistry,
|
|
147
|
+
tails: address,
|
|
148
|
+
amount: u64,
|
|
149
|
+
) {
|
|
150
|
+
*/
|
|
151
|
+
export declare function getPublicExpUpTx(config: TypusConfig, tx: Transaction, input: {
|
|
152
|
+
tails: string;
|
|
153
|
+
amount: string;
|
|
154
|
+
}): Transaction;
|
|
@@ -11,6 +11,7 @@ exports.getRemoveWebpBytesTx = getRemoveWebpBytesTx;
|
|
|
11
11
|
exports.getUpdateTailsStakingRegistryConfigTx = getUpdateTailsStakingRegistryConfigTx;
|
|
12
12
|
exports.getSetProfitSharingTx = getSetProfitSharingTx;
|
|
13
13
|
exports.getRemoveProfitSharingTx = getRemoveProfitSharingTx;
|
|
14
|
+
exports.getPublicExpUpTx = getPublicExpUpTx;
|
|
14
15
|
/**
|
|
15
16
|
entry fun upload_ids(
|
|
16
17
|
version: &Version,
|
|
@@ -223,3 +224,36 @@ function getRemoveProfitSharingTx(config, tx, input) {
|
|
|
223
224
|
});
|
|
224
225
|
return tx;
|
|
225
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
public fun public_exp_up(
|
|
229
|
+
_manager_cap: &ManagerCap,
|
|
230
|
+
version: &Version,
|
|
231
|
+
tails_staking_registry: &mut TailsStakingRegistry,
|
|
232
|
+
tails: address,
|
|
233
|
+
amount: u64,
|
|
234
|
+
) {
|
|
235
|
+
*/
|
|
236
|
+
function getPublicExpUpTx(config, tx, input) {
|
|
237
|
+
var managerCap = tx.moveCall({
|
|
238
|
+
target: "".concat(config.package.typus, "::ecosystem::issue_manager_cap"),
|
|
239
|
+
typeArguments: [],
|
|
240
|
+
arguments: [tx.object(config.version.typus)],
|
|
241
|
+
});
|
|
242
|
+
tx.moveCall({
|
|
243
|
+
target: "".concat(config.package.typus, "::tails_staking::public_exp_up"),
|
|
244
|
+
typeArguments: [],
|
|
245
|
+
arguments: [
|
|
246
|
+
managerCap,
|
|
247
|
+
tx.object(config.version.typus),
|
|
248
|
+
tx.object(config.registry.typus.tailsStaking),
|
|
249
|
+
tx.pure.address(input.tails),
|
|
250
|
+
tx.pure.u64(input.amount),
|
|
251
|
+
],
|
|
252
|
+
});
|
|
253
|
+
tx.moveCall({
|
|
254
|
+
target: "".concat(config.package.typus, "::ecosystem::burn_manager_cap"),
|
|
255
|
+
typeArguments: [],
|
|
256
|
+
arguments: [tx.object(config.version.typus), managerCap],
|
|
257
|
+
});
|
|
258
|
+
return tx;
|
|
259
|
+
}
|