@typus/typus-sdk 1.4.17 → 1.4.19
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/dist/config-mainnet.json +3 -3
- package/dist/src/auto-bid/token-user-entry.d.ts +9 -0
- package/dist/src/auto-bid/token-user-entry.js +126 -0
- package/dist/src/typus/airdrop/authority-entry.d.ts +14 -2
- package/dist/src/typus/airdrop/authority-entry.js +27 -32
- package/dist/src/typus/airdrop/user-entry.d.ts +2 -5
- package/dist/src/typus/airdrop/user-entry.js +8 -8
- package/dist/src/typus/airdrop/view-function.d.ts +2 -5
- package/dist/src/typus/airdrop/view-function.js +5 -5
- package/dist/src/typus/leaderboard/authority-entry.d.ts +10 -2
- package/dist/src/typus/leaderboard/authority-entry.js +12 -13
- package/dist/src/typus/leaderboard/view-function.d.ts +2 -5
- package/dist/src/typus/leaderboard/view-function.js +6 -6
- package/dist/src/typus/tails-staking/authority-entry.d.ts +12 -55
- package/dist/src/typus/tails-staking/authority-entry.js +73 -97
- package/dist/src/typus/tails-staking/user-entry.d.ts +14 -44
- package/dist/src/typus/tails-staking/user-entry.js +123 -123
- package/dist/src/typus/tails-staking/view-function.d.ts +3 -11
- package/dist/src/typus/tails-staking/view-function.js +10 -10
- package/dist/src/typus/user/view-function.d.ts +2 -5
- package/dist/src/typus/user/view-function.js +5 -5
- package/dist/src/typus-dov-single-v2/authority-entry.d.ts +26 -18
- package/dist/src/typus-dov-single-v2/authority-entry.js +23 -114
- package/dist/src/typus-dov-single-v2/function/bidding.js +4 -5
- package/dist/src/typus-dov-single-v2/token-user-entry.d.ts +11 -84
- package/dist/src/typus-dov-single-v2/token-user-entry.js +191 -316
- package/dist/src/typus-dov-single-v2/user-entry.d.ts +11 -69
- package/dist/src/typus-dov-single-v2/user-entry.js +183 -194
- package/dist/src/typus-dov-single-v2/view-function.d.ts +20 -6
- package/dist/src/typus-dov-single-v2/view-function.js +37 -43
- package/dist/src/typus-perp/user/orderWithBidReceipt.js +1 -5
- package/dist/src/typus-safu/index.d.ts +2 -1
- package/dist/src/typus-safu/index.js +2 -1
- package/dist/src/typus-safu/user-history.d.ts +12 -0
- package/dist/src/typus-safu/user-history.js +312 -0
- package/dist/src/utils/typusConfig.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TransactionBlock, TransactionObjectArgument } from "@mysten/sui.js/transactions";
|
|
2
|
+
import { TypusConfig } from "src/utils";
|
|
2
3
|
/**
|
|
3
4
|
public fun public_raise_fund<D_TOKEN, B_TOKEN>(
|
|
4
5
|
typus_ecosystem_version: &TypusEcosystemVersion,
|
|
@@ -14,15 +15,7 @@ import { TransactionBlock, TransactionObjectArgument } from "@mysten/sui.js/tran
|
|
|
14
15
|
ctx: &mut TxContext,
|
|
15
16
|
): (TypusDepositReceipt, vector<u64>) {
|
|
16
17
|
*/
|
|
17
|
-
export declare function getRaiseFundTx(input: {
|
|
18
|
-
tx: TransactionBlock;
|
|
19
|
-
typusEcosystemVersion: string;
|
|
20
|
-
typusUserRegistry: string;
|
|
21
|
-
typusLeaderboardRegistry: string;
|
|
22
|
-
typusFrameworkOriginPackageId: string;
|
|
23
|
-
typusFrameworkPackageId: string;
|
|
24
|
-
typusDovSinglePackageId: string;
|
|
25
|
-
typusDovSingleRegistry: string;
|
|
18
|
+
export declare function getRaiseFundTx(config: TypusConfig, tx: TransactionBlock, input: {
|
|
26
19
|
typeArguments: string[];
|
|
27
20
|
index: string;
|
|
28
21
|
receipts: string[] | TransactionObjectArgument[];
|
|
@@ -49,15 +42,7 @@ export declare function getRaiseFundTx(input: {
|
|
|
49
42
|
ctx: &mut TxContext,
|
|
50
43
|
): (Option<TypusDepositReceipt>, Balance<D_TOKEN>, Balance<B_TOKEN>, Balance<I_TOKEN>, vector<u64>) {
|
|
51
44
|
*/
|
|
52
|
-
export declare function getReduceFundTx(input: {
|
|
53
|
-
tx: TransactionBlock;
|
|
54
|
-
typusEcosystemVersion: string;
|
|
55
|
-
typusUserRegistry: string;
|
|
56
|
-
typusLeaderboardRegistry: string;
|
|
57
|
-
typusFrameworkOriginPackageId: string;
|
|
58
|
-
typusFrameworkPackageId: string;
|
|
59
|
-
typusDovSinglePackageId: string;
|
|
60
|
-
typusDovSingleRegistry: string;
|
|
45
|
+
export declare function getReduceFundTx(config: TypusConfig, tx: TransactionBlock, input: {
|
|
61
46
|
typeArguments: string[];
|
|
62
47
|
index: string;
|
|
63
48
|
receipts: string[] | TransactionObjectArgument[];
|
|
@@ -80,14 +65,7 @@ export declare function getReduceFundTx(input: {
|
|
|
80
65
|
ctx: &mut TxContext,
|
|
81
66
|
): (TypusDepositReceipt, vector<u64>) {
|
|
82
67
|
*/
|
|
83
|
-
export declare function getRefreshDepositSnapshotTx(input: {
|
|
84
|
-
tx: TransactionBlock;
|
|
85
|
-
typusEcosystemVersion: string;
|
|
86
|
-
typusUserRegistry: string;
|
|
87
|
-
typusLeaderboardRegistry: string;
|
|
88
|
-
typusFrameworkOriginPackageId: string;
|
|
89
|
-
typusDovSinglePackageId: string;
|
|
90
|
-
typusDovSingleRegistry: string;
|
|
68
|
+
export declare function getRefreshDepositSnapshotTx(config: TypusConfig, tx: TransactionBlock, input: {
|
|
91
69
|
typeArguments: string[];
|
|
92
70
|
index: string;
|
|
93
71
|
receipts: string[] | TransactionObjectArgument[];
|
|
@@ -103,15 +81,8 @@ export declare function getRefreshDepositSnapshotTx(input: {
|
|
|
103
81
|
ctx: &mut TxContext,
|
|
104
82
|
)
|
|
105
83
|
*/
|
|
106
|
-
export declare function getNewBidTx(input: {
|
|
107
|
-
tx: TransactionBlock;
|
|
108
|
-
typusEcosystemVersion: string;
|
|
109
|
-
typusUserRegistry: string;
|
|
84
|
+
export declare function getNewBidTx(config: TypusConfig, tx: TransactionBlock, input: {
|
|
110
85
|
tgldRegistry: string;
|
|
111
|
-
typusLeaderboardRegistry: string;
|
|
112
|
-
typusFrameworkPackageId: string;
|
|
113
|
-
typusDovSinglePackageId: string;
|
|
114
|
-
typusDovSingleRegistry: string;
|
|
115
86
|
typeArguments: string[];
|
|
116
87
|
index: string;
|
|
117
88
|
coins: string[];
|
|
@@ -128,12 +99,7 @@ export declare function getNewBidTx(input: {
|
|
|
128
99
|
ctx: &mut TxContext,
|
|
129
100
|
)
|
|
130
101
|
*/
|
|
131
|
-
export declare function getExerciseTx(input: {
|
|
132
|
-
tx: TransactionBlock;
|
|
133
|
-
typusFrameworkOriginPackageId: string;
|
|
134
|
-
typusFrameworkPackageId: string;
|
|
135
|
-
typusDovSinglePackageId: string;
|
|
136
|
-
typusDovSingleRegistry: string;
|
|
102
|
+
export declare function getExerciseTx(config: TypusConfig, tx: TransactionBlock, input: {
|
|
137
103
|
typeArguments: string[];
|
|
138
104
|
index: string;
|
|
139
105
|
receipts: string[] | TransactionObjectArgument[];
|
|
@@ -149,32 +115,20 @@ export declare function getExerciseTx(input: {
|
|
|
149
115
|
ctx: &mut TxContext,
|
|
150
116
|
) {
|
|
151
117
|
*/
|
|
152
|
-
export declare function getTransferBidReceiptTx(input: {
|
|
153
|
-
tx: TransactionBlock;
|
|
154
|
-
typusFrameworkOriginPackageId: string;
|
|
155
|
-
typusDovSinglePackageId: string;
|
|
156
|
-
typusDovSingleRegistry: string;
|
|
118
|
+
export declare function getTransferBidReceiptTx(config: TypusConfig, tx: TransactionBlock, input: {
|
|
157
119
|
typeArguments: string[];
|
|
158
120
|
index: string;
|
|
159
121
|
receipts: string[];
|
|
160
122
|
share?: string;
|
|
161
123
|
recipient: string;
|
|
162
124
|
}): TransactionBlock;
|
|
163
|
-
export declare function getSplitBidReceiptTx(input: {
|
|
164
|
-
tx: TransactionBlock;
|
|
165
|
-
typusFrameworkOriginPackageId: string;
|
|
166
|
-
typusDovSinglePackageId: string;
|
|
167
|
-
typusDovSingleRegistry: string;
|
|
125
|
+
export declare function getSplitBidReceiptTx(config: TypusConfig, tx: TransactionBlock, input: {
|
|
168
126
|
index: string;
|
|
169
127
|
receipts: string[];
|
|
170
128
|
share: string;
|
|
171
129
|
recipient: string;
|
|
172
130
|
}): import("@mysten/sui.js/transactions").TransactionResult;
|
|
173
|
-
export declare function getMultiTransferBidReceiptTx(input: {
|
|
174
|
-
typusFrameworkPackageId: string;
|
|
175
|
-
typusFrameworkOriginPackageId: string;
|
|
176
|
-
typusDovSinglePackageId: string;
|
|
177
|
-
typusDovSingleRegistry: string;
|
|
131
|
+
export declare function getMultiTransferBidReceiptTx(config: TypusConfig, input: {
|
|
178
132
|
typeArguments: string[];
|
|
179
133
|
index: string;
|
|
180
134
|
receipts: string[];
|
|
@@ -188,23 +142,11 @@ export declare function getMultiTransferBidReceiptTx(input: {
|
|
|
188
142
|
ctx: &mut TxContext,
|
|
189
143
|
)
|
|
190
144
|
*/
|
|
191
|
-
export declare function getRebateTx(input: {
|
|
192
|
-
tx: TransactionBlock;
|
|
193
|
-
typusFrameworkPackageId: string;
|
|
194
|
-
typusDovSinglePackageId: string;
|
|
195
|
-
typusDovSingleRegistry: string;
|
|
145
|
+
export declare function getRebateTx(config: TypusConfig, tx: TransactionBlock, input: {
|
|
196
146
|
typeArgument: string;
|
|
197
147
|
user: string;
|
|
198
148
|
}): TransactionBlock;
|
|
199
|
-
export declare function getCompoundWithRedeemTx(input: {
|
|
200
|
-
tx: TransactionBlock;
|
|
201
|
-
typusEcosystemVersion: string;
|
|
202
|
-
typusUserRegistry: string;
|
|
203
|
-
typusLeaderboardRegistry: string;
|
|
204
|
-
typusFrameworkOriginPackageId: string;
|
|
205
|
-
typusFrameworkPackageId: string;
|
|
206
|
-
typusDovSinglePackageId: string;
|
|
207
|
-
typusDovSingleRegistry: string;
|
|
149
|
+
export declare function getCompoundWithRedeemTx(config: TypusConfig, tx: TransactionBlock, input: {
|
|
208
150
|
typeArguments: string[];
|
|
209
151
|
index: string;
|
|
210
152
|
receipts: string[] | TransactionObjectArgument[];
|