@typus/typus-sdk 1.2.86-tails-exp → 1.2.86

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,59 +1,153 @@
1
1
  import { TransactionBlock, TransactionObjectArgument } from "@mysten/sui.js/transactions";
2
2
  /**
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,
3
+ public fun deposit<D_TOKEN, B_TOKEN>(
7
4
  registry: &mut Registry,
8
5
  index: u64,
6
+ coins: vector<Coin<D_TOKEN>>,
7
+ amount: u64,
9
8
  receipts: vector<TypusDepositReceipt>,
10
- raise_balance: Balance<D_TOKEN>,
11
- raise_from_premium: bool,
12
- raise_from_inactive: bool,
13
9
  clock: &Clock,
14
10
  ctx: &mut TxContext,
15
- ): (TypusDepositReceipt, vector<u64>) {
16
- */
17
- export declare function getRaiseFundTx(input: {
11
+ )
12
+ */
13
+ export declare function getDepositTx(input: {
18
14
  tx: TransactionBlock;
19
- typusEcosystemVersion: string;
20
- typusUserRegistry: string;
21
- typusLeaderboardRegistry: string;
22
15
  typusFrameworkOriginPackageId: string;
23
16
  typusFrameworkPackageId: string;
24
17
  typusDovSinglePackageId: string;
25
18
  typusDovSingleRegistry: string;
26
19
  typeArguments: string[];
27
20
  index: string;
21
+ coins: string[];
22
+ amount: string;
28
23
  receipts: string[] | TransactionObjectArgument[];
29
- raiseCoins: string[];
30
- raiseAmount: string;
31
- raiseFromPremium: boolean;
32
- raiseFromInactive: boolean;
33
24
  user: string;
25
+ usingSponsoredGasCoin?: boolean;
34
26
  }): TransactionBlock;
35
27
  /**
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,
28
+ public fun withdraw<D_TOKEN, B_TOKEN>(
40
29
  registry: &mut Registry,
41
30
  index: u64,
42
31
  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,
32
+ share: Option<u64>,
48
33
  clock: &Clock,
49
34
  ctx: &mut TxContext,
50
- ): (Option<TypusDepositReceipt>, Balance<D_TOKEN>, Balance<B_TOKEN>, Balance<I_TOKEN>, vector<u64>) {
51
- */
52
- export declare function getReduceFundTx(input: {
35
+ )
36
+ */
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;
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
+ }): TransactionBlock;
70
+ /**
71
+ public fun compound<D_TOKEN, B_TOKEN>(
72
+ registry: &mut Registry,
73
+ index: u64,
74
+ receipts: vector<TypusDepositReceipt>,
75
+ clock: &Clock,
76
+ 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: {
53
150
  tx: TransactionBlock;
54
- typusEcosystemVersion: string;
55
- typusUserRegistry: string;
56
- typusLeaderboardRegistry: string;
57
151
  typusFrameworkOriginPackageId: string;
58
152
  typusFrameworkPackageId: string;
59
153
  typusDovSinglePackageId: string;
@@ -61,12 +155,11 @@ export declare function getReduceFundTx(input: {
61
155
  typeArguments: string[];
62
156
  index: string;
63
157
  receipts: string[] | TransactionObjectArgument[];
64
- reduceFromWarmup: string;
65
- reduceFromActive: string;
66
- reduceFromPremium: boolean;
67
- reduceFromInactive: boolean;
68
- reduceFromIncentive: boolean;
69
158
  user: string;
159
+ withdraw: boolean;
160
+ harvest: boolean;
161
+ claim: boolean;
162
+ incentiveToken?: string;
70
163
  }): TransactionBlock;
71
164
  /**
72
165
  public(friend) entry fun new_bid<D_TOKEN, B_TOKEN>(