@typus/typus-sdk 1.2.86 → 1.2.87

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.
@@ -1,41 +1,24 @@
1
1
  import { TransactionBlock, TransactionObjectArgument } from "@mysten/sui.js/transactions";
2
2
  /**
3
- public fun deposit<D_TOKEN, B_TOKEN>(
3
+ public fun public_raise_fund<D_TOKEN, B_TOKEN>(
4
+ typus_ecosystem_version: &TypusEcosystemVersion,
5
+ typus_user_registry: &mut TypusUserRegistry,
6
+ typus_leaderboard_registry: &mut TypusLeaderboardRegistry,
4
7
  registry: &mut Registry,
5
8
  index: u64,
6
- coins: vector<Coin<D_TOKEN>>,
7
- amount: u64,
8
9
  receipts: vector<TypusDepositReceipt>,
10
+ raise_balance: Balance<D_TOKEN>,
11
+ raise_from_premium: bool,
12
+ raise_from_inactive: bool,
9
13
  clock: &Clock,
10
14
  ctx: &mut TxContext,
11
- )
12
- */
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;
27
- /**
28
- public fun withdraw<D_TOKEN, B_TOKEN>(
29
- registry: &mut Registry,
30
- index: u64,
31
- receipts: vector<TypusDepositReceipt>,
32
- share: Option<u64>,
33
- clock: &Clock,
34
- ctx: &mut TxContext,
35
- )
36
- */
37
- export declare function getWithdrawTx(input: {
15
+ ): (TypusDepositReceipt, vector<u64>) {
16
+ */
17
+ export declare function getRaiseFundTx(input: {
38
18
  tx: TransactionBlock;
19
+ typusEcosystemVersion: string;
20
+ typusUserRegistry: string;
21
+ typusLeaderboardRegistry: string;
39
22
  typusFrameworkOriginPackageId: string;
40
23
  typusFrameworkPackageId: string;
41
24
  typusDovSinglePackageId: string;
@@ -43,111 +26,34 @@ export declare function getWithdrawTx(input: {
43
26
  typeArguments: string[];
44
27
  index: string;
45
28
  receipts: string[] | TransactionObjectArgument[];
29
+ raiseCoins: string[];
30
+ raiseAmount: string;
31
+ raiseFromPremium: boolean;
32
+ raiseFromInactive: boolean;
46
33
  user: string;
47
- share?: string;
48
- }): TransactionBlock;
49
- /**
50
- public fun unsubscribe<D_TOKEN, B_TOKEN>(
51
- registry: &mut Registry,
52
- index: u64,
53
- receipts: vector<TypusDepositReceipt>,
54
- share: Option<u64>,
55
- clock: &Clock,
56
- ctx: &mut TxContext,
57
- )
58
- */
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
34
  }): TransactionBlock;
70
35
  /**
71
- public fun compound<D_TOKEN, B_TOKEN>(
36
+ public fun public_reduce_fund<D_TOKEN, B_TOKEN, I_TOKEN>(
37
+ typus_ecosystem_version: &TypusEcosystemVersion,
38
+ typus_user_registry: &mut TypusUserRegistry,
39
+ typus_leaderboard_registry: &mut TypusLeaderboardRegistry,
72
40
  registry: &mut Registry,
73
41
  index: u64,
74
42
  receipts: vector<TypusDepositReceipt>,
43
+ reduce_from_warmup: u64,
44
+ reduce_from_active: u64,
45
+ reduce_from_premium: bool,
46
+ reduce_from_inactive: bool,
47
+ reduce_from_incentive: bool,
75
48
  clock: &Clock,
76
49
  ctx: &mut TxContext,
77
- )
78
- */
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;
91
- /**
92
- public fun claim<D_TOKEN, B_TOKEN>(
93
- registry: &mut Registry,
94
- index: u64,
95
- receipts: vector<TypusDepositReceipt>,
96
- ctx: &mut TxContext,
97
- )
98
- */
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;
110
- /**
111
- public fun harvest<D_TOKEN, B_TOKEN>(
112
- registry: &mut Registry,
113
- index: u64,
114
- receipts: vector<TypusDepositReceipt>,
115
- ctx: &mut TxContext,
116
- )
117
- */
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;
130
- /**
131
- public fun redeem<D_TOKEN, B_TOKEN, I_TOKEN>(
132
- registry: &mut Registry,
133
- index: u64,
134
- receipts: vector<TypusDepositReceipt>,
135
- ctx: &mut TxContext,
136
- )
137
- */
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;
149
- export declare function getWithdrawHarvestClaimTx(input: {
50
+ ): (Option<TypusDepositReceipt>, Balance<D_TOKEN>, Balance<B_TOKEN>, Balance<I_TOKEN>, vector<u64>) {
51
+ */
52
+ export declare function getReduceFundTx(input: {
150
53
  tx: TransactionBlock;
54
+ typusEcosystemVersion: string;
55
+ typusUserRegistry: string;
56
+ typusLeaderboardRegistry: string;
151
57
  typusFrameworkOriginPackageId: string;
152
58
  typusFrameworkPackageId: string;
153
59
  typusDovSinglePackageId: string;
@@ -155,11 +61,12 @@ export declare function getWithdrawHarvestClaimTx(input: {
155
61
  typeArguments: string[];
156
62
  index: string;
157
63
  receipts: string[] | TransactionObjectArgument[];
64
+ reduceFromWarmup: string;
65
+ reduceFromActive: string;
66
+ reduceFromPremium: boolean;
67
+ reduceFromInactive: boolean;
68
+ reduceFromIncentive: boolean;
158
69
  user: string;
159
- withdraw: boolean;
160
- harvest: boolean;
161
- claim: boolean;
162
- incentiveToken?: string;
163
70
  }): TransactionBlock;
164
71
  /**
165
72
  public(friend) entry fun new_bid<D_TOKEN, B_TOKEN>(