@typus/typus-sdk 1.8.21 → 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.
|
@@ -38,7 +38,7 @@ var utils_1 = require("../../src/utils");
|
|
|
38
38
|
function getNewStrategyTx(config, tx, input) {
|
|
39
39
|
var input_coin = (0, utils_1.splitCoin)(tx, input.typeArguments[1], input.coins, input.amount, config.sponsored);
|
|
40
40
|
tx.moveCall({
|
|
41
|
-
target: "".concat(config.package.dovSingle, "::auto_bid::
|
|
41
|
+
target: "".concat(config.package.dovSingle, "::auto_bid::new_strategy_v3"),
|
|
42
42
|
typeArguments: input.typeArguments,
|
|
43
43
|
arguments: [
|
|
44
44
|
tx.object(config.registry.dov.dovSingle),
|
|
@@ -65,7 +65,7 @@ function getNewStrategyTx(config, tx, input) {
|
|
|
65
65
|
*/
|
|
66
66
|
function getCloseStrategyTx(config, tx, input) {
|
|
67
67
|
var _a = __read(tx.moveCall({
|
|
68
|
-
target: "".concat(config.package.dovSingle, "::auto_bid::
|
|
68
|
+
target: "".concat(config.package.dovSingle, "::auto_bid::close_strategy_v3"),
|
|
69
69
|
typeArguments: input.typeArguments,
|
|
70
70
|
arguments: [
|
|
71
71
|
tx.object(config.registry.dov.dovSingle),
|
|
@@ -80,7 +80,7 @@ function getCloseStrategyTx(config, tx, input) {
|
|
|
80
80
|
}
|
|
81
81
|
function getWithdrawProfitStrategyTx(config, tx, input) {
|
|
82
82
|
var d_token = tx.moveCall({
|
|
83
|
-
target: "".concat(config.package.dovSingle, "::auto_bid::
|
|
83
|
+
target: "".concat(config.package.dovSingle, "::auto_bid::withdraw_profit_v3"),
|
|
84
84
|
typeArguments: input.typeArguments,
|
|
85
85
|
arguments: [
|
|
86
86
|
tx.object(config.registry.dov.dovSingle),
|
|
@@ -110,7 +110,7 @@ function getWithdrawProfitStrategyTx(config, tx, input) {
|
|
|
110
110
|
function getUpdateStrategyTx(config, tx, input) {
|
|
111
111
|
var input_coin = (0, utils_1.splitCoin)(tx, input.typeArguments[1], input.coins, input.amount, config.sponsored);
|
|
112
112
|
tx.moveCall({
|
|
113
|
-
target: "".concat(config.package.dovSingle, "::auto_bid::
|
|
113
|
+
target: "".concat(config.package.dovSingle, "::auto_bid::update_strategy_v3"),
|
|
114
114
|
typeArguments: input.typeArguments,
|
|
115
115
|
arguments: [
|
|
116
116
|
tx.object(config.registry.dov.dovSingle),
|
|
@@ -139,7 +139,7 @@ public fun withdraw_bid_receipt(
|
|
|
139
139
|
*/
|
|
140
140
|
function getWithdrawBidReceiptTx(config, tx, input) {
|
|
141
141
|
var receipt = tx.moveCall({
|
|
142
|
-
target: "".concat(config.package.dovSingle, "::auto_bid::
|
|
142
|
+
target: "".concat(config.package.dovSingle, "::auto_bid::withdraw_bid_receipt_v3"),
|
|
143
143
|
typeArguments: [],
|
|
144
144
|
arguments: [
|
|
145
145
|
tx.object(config.registry.dov.dovSingle),
|
|
@@ -149,33 +149,5 @@ function getWithdrawBidReceiptTx(config, tx, input) {
|
|
|
149
149
|
tx.pure.u64(input.strategyIndex),
|
|
150
150
|
],
|
|
151
151
|
});
|
|
152
|
-
|
|
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
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
2
|
+
"name": "@typus/typus-sdk",
|
|
3
|
+
"author": "Typus",
|
|
4
|
+
"description": "typus sdk",
|
|
5
|
+
"version": "1.8.22",
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@mysten/bcs": "^1.6.1",
|
|
8
|
+
"@mysten/kiosk": "^0.12.6",
|
|
9
|
+
"@mysten/sui": "^1.30.0",
|
|
10
|
+
"@pythnetwork/pyth-sui-js": "^2.2.0",
|
|
11
|
+
"@shinami/clients": "^0.9.6",
|
|
12
|
+
"@types/node": "^20.5.7",
|
|
13
|
+
"bignumber.js": "^9.1.2",
|
|
14
|
+
"camelcase-keys-deep": "^0.1.0",
|
|
15
|
+
"crypto-js": "^4.2.0",
|
|
16
|
+
"dotenv": "^16.4.7",
|
|
17
|
+
"lodash": "^4.17.21",
|
|
18
|
+
"moment": "^2.30.1",
|
|
19
|
+
"node-rsa": "^1.1.1"
|
|
20
|
+
},
|
|
21
|
+
"resolutions": {
|
|
22
|
+
"@mysten/sui": "^1.30.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@types/camelcase-keys-deep": "^0.1.2",
|
|
26
|
+
"@types/crypto-js": "^4.2.2",
|
|
27
|
+
"@types/node-rsa": "^1.1.4",
|
|
28
|
+
"prettier": "^3.0.0",
|
|
29
|
+
"slack": "^11.0.2",
|
|
30
|
+
"tsc-alias": "^1.8.10",
|
|
31
|
+
"tsconfig-paths": "^4.2.0",
|
|
32
|
+
"typescript": "^5.1.6"
|
|
33
|
+
},
|
|
34
|
+
"main": "dist/src/index.js",
|
|
35
|
+
"types": "dist/src/index.d.ts",
|
|
36
|
+
"files": [
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
39
|
+
"scripts": {
|
|
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",
|
|
42
|
+
"publish": "yarn build && npm publish"
|
|
43
|
+
},
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "git+https://github.com/Typus-Lab/typus-sdk.git"
|
|
47
|
+
},
|
|
48
|
+
"license": "ISC",
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/Typus-Lab/typus-sdk/issues"
|
|
51
|
+
},
|
|
52
|
+
"homepage": "https://github.com/Typus-Lab/typus-sdk#readme",
|
|
53
|
+
"packageManager": "yarn@4.10.3+sha512.c38cafb5c7bb273f3926d04e55e1d8c9dfa7d9c3ea1f36a4868fa028b9e5f72298f0b7f401ad5eb921749eb012eb1c3bb74bf7503df3ee43fd600d14a018266f"
|
|
54
|
+
}
|