@typus/typus-sdk 1.6.27 → 1.6.29

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.
@@ -167,6 +167,8 @@ function typeArgToAsset(typeArg) {
167
167
  // LBTC
168
168
  case "0x3e8e9423d80e1774a7ca128fccd8bf5f1f7753be658c5e645929037f7c819040::lbtc::LBTC": // MAINNET
169
169
  return "LBTC";
170
+ case "0x732f66e6e97c0f6b7250a5f43dc3576e225ae6e7578862a9b122915f6ff63988::xau::XAU": // MAINNET
171
+ return "XAU";
170
172
  default:
171
173
  throw new Error("Unknown typeArg: ".concat(typeArg));
172
174
  }
@@ -266,7 +268,7 @@ exports.tokenType = {
266
268
  WAL: "0x356a26eb9e012a68958082340d4c4116e7f55615cf27affcff209cf0ae544f59::wal::WAL",
267
269
  LBTC: "0x3e8e9423d80e1774a7ca128fccd8bf5f1f7753be658c5e645929037f7c819040::lbtc::LBTC",
268
270
  JPY: "",
269
- XAU: "",
271
+ XAU: "0x732f66e6e97c0f6b7250a5f43dc3576e225ae6e7578862a9b122915f6ff63988::xau::XAU",
270
272
  HAEDAL: "0x3a304c7feba2d819ea57c3542d68439ca2c386ba02159c740f7b406e592c62ea::haedal::HAEDAL",
271
273
  },
272
274
  TESTNET: {
@@ -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
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typus/typus-sdk",
3
3
  "author": "Typus",
4
4
  "description": "typus sdk",
5
- "version": "1.6.27",
5
+ "version": "1.6.29",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.11.1",
8
8
  "@mysten/kiosk": "0.9.34",