@typus/typus-sdk 1.1.56 → 1.1.58
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/utils/nft-staking/authorized-entry.d.ts +2 -2
- package/lib/utils/nft-staking/authorized-entry.js +29 -9
- package/lib/utils/nft-staking/user-entry.d.ts +3 -3
- package/lib/utils/nft-staking/user-entry.js +6 -6
- package/lib/utils/tails-exp-dice/fetch.d.ts +1 -0
- package/lib/utils/tails-exp-dice/fetch.js +9 -6
- package/lib/utils/token.js +4 -0
- package/lib/utils/typus-dov-single-v2/authorized-entry.d.ts +1 -0
- package/lib/utils/typus-dov-single-v2/authorized-entry.js +1 -0
- package/lib/utils/typus-dov-single-v2/mfud-user-entry.d.ts +125 -0
- package/lib/utils/typus-dov-single-v2/mfud-user-entry.js +269 -0
- package/lib/utils/typus-dov-single-v2/user-entry.d.ts +118 -15
- package/lib/utils/typus-dov-single-v2/user-entry.js +235 -199
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TransactionBlock } from "@mysten/sui.js/transactions";
|
|
1
|
+
import { TransactionBlock, TransactionObjectArgument } from "@mysten/sui.js/transactions";
|
|
2
2
|
/**
|
|
3
3
|
public fun deposit<D_TOKEN, B_TOKEN>(
|
|
4
4
|
registry: &mut Registry,
|
|
@@ -10,7 +10,20 @@ import { TransactionBlock } from "@mysten/sui.js/transactions";
|
|
|
10
10
|
ctx: &mut TxContext,
|
|
11
11
|
)
|
|
12
12
|
*/
|
|
13
|
-
export declare function getDepositTx(
|
|
13
|
+
export declare function getDepositTx(input: {
|
|
14
|
+
tx: TransactionBlock;
|
|
15
|
+
typusFrameworkOriginPackageId: string;
|
|
16
|
+
typusFrameworkPackageId: string;
|
|
17
|
+
typusDovSinglePackageId: string;
|
|
18
|
+
typusDovSingleRegistry: string;
|
|
19
|
+
typeArguments: string[];
|
|
20
|
+
index: string;
|
|
21
|
+
coins: string[];
|
|
22
|
+
amount: string;
|
|
23
|
+
receipts: string[] | TransactionObjectArgument[];
|
|
24
|
+
user: string;
|
|
25
|
+
usingSponsoredGasCoin?: boolean;
|
|
26
|
+
}): TransactionBlock;
|
|
14
27
|
/**
|
|
15
28
|
public fun withdraw<D_TOKEN, B_TOKEN>(
|
|
16
29
|
registry: &mut Registry,
|
|
@@ -21,7 +34,18 @@ export declare function getDepositTx(tx: TransactionBlock, typusFrameworkOriginP
|
|
|
21
34
|
ctx: &mut TxContext,
|
|
22
35
|
)
|
|
23
36
|
*/
|
|
24
|
-
export declare function getWithdrawTx(
|
|
37
|
+
export declare function getWithdrawTx(input: {
|
|
38
|
+
tx: TransactionBlock;
|
|
39
|
+
typusFrameworkOriginPackageId: string;
|
|
40
|
+
typusFrameworkPackageId: string;
|
|
41
|
+
typusDovSinglePackageId: string;
|
|
42
|
+
typusDovSingleRegistry: string;
|
|
43
|
+
typeArguments: string[];
|
|
44
|
+
index: string;
|
|
45
|
+
receipts: string[] | TransactionObjectArgument[];
|
|
46
|
+
user: string;
|
|
47
|
+
share?: string;
|
|
48
|
+
}): TransactionBlock;
|
|
25
49
|
/**
|
|
26
50
|
public fun unsubscribe<D_TOKEN, B_TOKEN>(
|
|
27
51
|
registry: &mut Registry,
|
|
@@ -32,7 +56,17 @@ export declare function getWithdrawTx(tx: TransactionBlock, typusFrameworkOrigin
|
|
|
32
56
|
ctx: &mut TxContext,
|
|
33
57
|
)
|
|
34
58
|
*/
|
|
35
|
-
export declare function getUnsubscribeTx(
|
|
59
|
+
export declare function getUnsubscribeTx(input: {
|
|
60
|
+
tx: TransactionBlock;
|
|
61
|
+
typusFrameworkOriginPackageId: string;
|
|
62
|
+
typusDovSinglePackageId: string;
|
|
63
|
+
typusDovSingleRegistry: string;
|
|
64
|
+
typeArguments: string[];
|
|
65
|
+
index: string;
|
|
66
|
+
receipts: string[] | TransactionObjectArgument[];
|
|
67
|
+
user: string;
|
|
68
|
+
share?: string;
|
|
69
|
+
}): TransactionBlock;
|
|
36
70
|
/**
|
|
37
71
|
public fun compound<D_TOKEN, B_TOKEN>(
|
|
38
72
|
registry: &mut Registry,
|
|
@@ -42,7 +76,18 @@ export declare function getUnsubscribeTx(tx: TransactionBlock, typusFrameworkOri
|
|
|
42
76
|
ctx: &mut TxContext,
|
|
43
77
|
)
|
|
44
78
|
*/
|
|
45
|
-
export declare function getCompoundTx(
|
|
79
|
+
export declare function getCompoundTx(input: {
|
|
80
|
+
tx: TransactionBlock;
|
|
81
|
+
typusFrameworkOriginPackageId: string;
|
|
82
|
+
typusFrameworkPackageId: string;
|
|
83
|
+
typusDovSinglePackageId: string;
|
|
84
|
+
typusDovSingleRegistry: string;
|
|
85
|
+
typeArguments: string[];
|
|
86
|
+
index: string;
|
|
87
|
+
receipts: string[] | TransactionObjectArgument[];
|
|
88
|
+
user: string;
|
|
89
|
+
incentiveToken?: string;
|
|
90
|
+
}): TransactionBlock;
|
|
46
91
|
/**
|
|
47
92
|
public fun claim<D_TOKEN, B_TOKEN>(
|
|
48
93
|
registry: &mut Registry,
|
|
@@ -51,7 +96,17 @@ export declare function getCompoundTx(tx: TransactionBlock, typusFrameworkOrigin
|
|
|
51
96
|
ctx: &mut TxContext,
|
|
52
97
|
)
|
|
53
98
|
*/
|
|
54
|
-
export declare function getClaimTx(
|
|
99
|
+
export declare function getClaimTx(input: {
|
|
100
|
+
tx: TransactionBlock;
|
|
101
|
+
typusFrameworkOriginPackageId: string;
|
|
102
|
+
typusFrameworkPackageId: string;
|
|
103
|
+
typusDovSinglePackageId: string;
|
|
104
|
+
typusDovSingleRegistry: string;
|
|
105
|
+
typeArguments: string[];
|
|
106
|
+
index: string;
|
|
107
|
+
receipts: string[] | TransactionObjectArgument[];
|
|
108
|
+
user: string;
|
|
109
|
+
}): TransactionBlock;
|
|
55
110
|
/**
|
|
56
111
|
public fun harvest<D_TOKEN, B_TOKEN>(
|
|
57
112
|
registry: &mut Registry,
|
|
@@ -60,7 +115,18 @@ export declare function getClaimTx(tx: TransactionBlock, typusFrameworkOriginPac
|
|
|
60
115
|
ctx: &mut TxContext,
|
|
61
116
|
)
|
|
62
117
|
*/
|
|
63
|
-
export declare function getHarvestTx(
|
|
118
|
+
export declare function getHarvestTx(input: {
|
|
119
|
+
tx: TransactionBlock;
|
|
120
|
+
typusFrameworkOriginPackageId: string;
|
|
121
|
+
typusFrameworkPackageId: string;
|
|
122
|
+
typusDovSinglePackageId: string;
|
|
123
|
+
typusDovSingleRegistry: string;
|
|
124
|
+
typeArguments: string[];
|
|
125
|
+
index: string;
|
|
126
|
+
receipts: string[] | TransactionObjectArgument[];
|
|
127
|
+
user: string;
|
|
128
|
+
incentiveToken?: string;
|
|
129
|
+
}): TransactionBlock;
|
|
64
130
|
/**
|
|
65
131
|
public fun redeem<D_TOKEN, B_TOKEN, I_TOKEN>(
|
|
66
132
|
registry: &mut Registry,
|
|
@@ -69,7 +135,17 @@ export declare function getHarvestTx(tx: TransactionBlock, typusFrameworkOriginP
|
|
|
69
135
|
ctx: &mut TxContext,
|
|
70
136
|
)
|
|
71
137
|
*/
|
|
72
|
-
export declare function getRedeemTx(
|
|
138
|
+
export declare function getRedeemTx(input: {
|
|
139
|
+
tx: TransactionBlock;
|
|
140
|
+
typusFrameworkOriginPackageId: string;
|
|
141
|
+
typusFrameworkPackageId: string;
|
|
142
|
+
typusDovSinglePackageId: string;
|
|
143
|
+
typusDovSingleRegistry: string;
|
|
144
|
+
typeArguments: string[];
|
|
145
|
+
index: string;
|
|
146
|
+
receipts: string[] | TransactionObjectArgument[];
|
|
147
|
+
user: string;
|
|
148
|
+
}): TransactionBlock;
|
|
73
149
|
/**
|
|
74
150
|
public(friend) entry fun new_bid<D_TOKEN, B_TOKEN>(
|
|
75
151
|
registry: &mut Registry,
|
|
@@ -80,8 +156,18 @@ export declare function getRedeemTx(tx: TransactionBlock, typusFrameworkOriginPa
|
|
|
80
156
|
ctx: &mut TxContext,
|
|
81
157
|
)
|
|
82
158
|
*/
|
|
83
|
-
export declare function getNewBidTx(
|
|
84
|
-
|
|
159
|
+
export declare function getNewBidTx(input: {
|
|
160
|
+
tx: TransactionBlock;
|
|
161
|
+
typusDovSinglePackageId: string;
|
|
162
|
+
typusDovSingleRegistry: string;
|
|
163
|
+
typeArguments: string[];
|
|
164
|
+
index: string;
|
|
165
|
+
coins: string[];
|
|
166
|
+
size: string;
|
|
167
|
+
premium_required: string;
|
|
168
|
+
user: string;
|
|
169
|
+
usingSponsoredGasCoin?: boolean;
|
|
170
|
+
}): TransactionBlock;
|
|
85
171
|
/**
|
|
86
172
|
public(friend) entry fun exercise<D_TOKEN, B_TOKEN>(
|
|
87
173
|
registry: &mut Registry,
|
|
@@ -90,7 +176,17 @@ user: string, usingSponsoredGasCoin?: boolean): TransactionBlock;
|
|
|
90
176
|
ctx: &mut TxContext,
|
|
91
177
|
)
|
|
92
178
|
*/
|
|
93
|
-
export declare function getExerciseTx(
|
|
179
|
+
export declare function getExerciseTx(input: {
|
|
180
|
+
tx: TransactionBlock;
|
|
181
|
+
typusFrameworkOriginPackageId: string;
|
|
182
|
+
typusFrameworkPackageId: string;
|
|
183
|
+
typusDovSinglePackageId: string;
|
|
184
|
+
typusDovSingleRegistry: string;
|
|
185
|
+
typeArguments: string[];
|
|
186
|
+
index: string;
|
|
187
|
+
receipts: string[] | TransactionObjectArgument[];
|
|
188
|
+
user: string;
|
|
189
|
+
}): TransactionBlock;
|
|
94
190
|
/**
|
|
95
191
|
public(friend) entry fun transfer_bid_receipt<D_TOKEN, B_TOKEN>(
|
|
96
192
|
registry: &mut Registry,
|
|
@@ -102,11 +198,11 @@ export declare function getExerciseTx(tx: TransactionBlock, typusFrameworkOrigin
|
|
|
102
198
|
) {
|
|
103
199
|
*/
|
|
104
200
|
export declare function getTransferBidReceiptTx(input: {
|
|
105
|
-
|
|
201
|
+
tx: TransactionBlock;
|
|
106
202
|
typusFrameworkOriginPackageId: string;
|
|
107
|
-
|
|
203
|
+
typusDovSinglePackageId: string;
|
|
204
|
+
typusDovSingleRegistry: string;
|
|
108
205
|
typeArguments: string[];
|
|
109
|
-
registry: string;
|
|
110
206
|
index: string;
|
|
111
207
|
receipts: string[];
|
|
112
208
|
share?: string;
|
|
@@ -118,7 +214,14 @@ export declare function getTransferBidReceiptTx(input: {
|
|
|
118
214
|
ctx: &mut TxContext,
|
|
119
215
|
)
|
|
120
216
|
*/
|
|
121
|
-
export declare function getRebateTx(
|
|
217
|
+
export declare function getRebateTx(input: {
|
|
218
|
+
tx: TransactionBlock;
|
|
219
|
+
typusFrameworkPackageId: string;
|
|
220
|
+
typusDovSinglePackageId: string;
|
|
221
|
+
typusDovSingleRegistry: string;
|
|
222
|
+
typeArgument: string;
|
|
223
|
+
user: string;
|
|
224
|
+
}): TransactionBlock;
|
|
122
225
|
/**
|
|
123
226
|
entry fun new_strategy<B_TOKEN>(
|
|
124
227
|
strategy_pool: &mut StrategyPool,
|