@typus/typus-sdk 1.8.21-testnet → 1.8.22

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.
@@ -88,5 +88,4 @@ export declare function getWithdrawBidReceiptTx(config: TypusConfig, tx: Transac
88
88
  signalIndex: string;
89
89
  strategyIndex: string;
90
90
  user: string;
91
- share?: string;
92
91
  }): Argument;
@@ -149,33 +149,5 @@ function getWithdrawBidReceiptTx(config, tx, input) {
149
149
  tx.pure.u64(input.strategyIndex),
150
150
  ],
151
151
  });
152
- if (input.share) {
153
- var result = tx.moveCall({
154
- target: "".concat(config.package.dovSingle, "::tds_user_entry::simple_split_bid_receipt"),
155
- typeArguments: [],
156
- arguments: [
157
- tx.object(config.registry.dov.dovSingle),
158
- tx.pure.u64(input.vaultIndex),
159
- tx.makeMoveVec({
160
- type: "".concat(config.packageOrigin.framework, "::vault::TypusBidReceipt"),
161
- elements: [receipt],
162
- }),
163
- tx.pure.option("u64", input.share),
164
- ],
165
- });
166
- var unwrap0 = tx.moveCall({
167
- target: "0x1::option::destroy_some",
168
- typeArguments: ["".concat(config.packageOrigin.framework, "::vault::TypusBidReceipt")],
169
- arguments: [tx.object(result[0])],
170
- });
171
- tx.moveCall({
172
- target: "".concat(config.package.framework, "::vault::transfer_bid_receipt"),
173
- typeArguments: [],
174
- arguments: [tx.object(result[1]), tx.pure.address(input.user)],
175
- });
176
- return unwrap0;
177
- }
178
- else {
179
- return receipt;
180
- }
152
+ return receipt;
181
153
  }
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.8.21-testnet",
5
+ "version": "1.8.22",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^1.6.1",
8
8
  "@mysten/kiosk": "^0.12.6",
@@ -38,7 +38,8 @@
38
38
  ],
39
39
  "scripts": {
40
40
  "build": "rm -rf dist && tsc -p tsconfig.build.json && tsc-alias",
41
- "test": "rm -rf dist && tsc -p tsconfig.build.json && ts-mocha test/test*.ts"
41
+ "test": "rm -rf dist && tsc -p tsconfig.build.json && ts-mocha test/test*.ts",
42
+ "publish": "yarn build && npm publish"
42
43
  },
43
44
  "repository": {
44
45
  "type": "git",
@@ -50,4 +51,4 @@
50
51
  },
51
52
  "homepage": "https://github.com/Typus-Lab/typus-sdk#readme",
52
53
  "packageManager": "yarn@4.10.3+sha512.c38cafb5c7bb273f3926d04e55e1d8c9dfa7d9c3ea1f36a4868fa028b9e5f72298f0b7f401ad5eb921749eb012eb1c3bb74bf7503df3ee43fd600d14a018266f"
53
- }
54
+ }