@waterx/predict-sdk 0.1.0

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.
Files changed (105) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +67 -0
  3. package/dist/src/account.d.ts +64 -0
  4. package/dist/src/account.js +134 -0
  5. package/dist/src/admin.d.ts +47 -0
  6. package/dist/src/admin.js +104 -0
  7. package/dist/src/bcs.d.ts +20 -0
  8. package/dist/src/bcs.js +209 -0
  9. package/dist/src/client.d.ts +60 -0
  10. package/dist/src/client.js +59 -0
  11. package/dist/src/constants.d.ts +61 -0
  12. package/dist/src/constants.js +62 -0
  13. package/dist/src/fetch.d.ts +53 -0
  14. package/dist/src/fetch.js +187 -0
  15. package/dist/src/generated/bucket_v2_framework/account.d.ts +100 -0
  16. package/dist/src/generated/bucket_v2_framework/account.js +129 -0
  17. package/dist/src/generated/bucket_v2_framework/deps/std/type_name.d.ts +6 -0
  18. package/dist/src/generated/bucket_v2_framework/deps/std/type_name.js +19 -0
  19. package/dist/src/generated/bucket_v2_framework/deps/sui/balance.d.ts +10 -0
  20. package/dist/src/generated/bucket_v2_framework/deps/sui/balance.js +14 -0
  21. package/dist/src/generated/bucket_v2_framework/deps/sui/vec_map.d.ts +36 -0
  22. package/dist/src/generated/bucket_v2_framework/deps/sui/vec_map.js +27 -0
  23. package/dist/src/generated/bucket_v2_framework/deps/sui/vec_set.d.ts +16 -0
  24. package/dist/src/generated/bucket_v2_framework/deps/sui/vec_set.js +19 -0
  25. package/dist/src/generated/bucket_v2_framework/double.d.ts +382 -0
  26. package/dist/src/generated/bucket_v2_framework/double.js +466 -0
  27. package/dist/src/generated/bucket_v2_framework/float.d.ts +362 -0
  28. package/dist/src/generated/bucket_v2_framework/float.js +440 -0
  29. package/dist/src/generated/bucket_v2_framework/liability.d.ts +193 -0
  30. package/dist/src/generated/bucket_v2_framework/liability.js +205 -0
  31. package/dist/src/generated/bucket_v2_framework/linked_table.d.ts +384 -0
  32. package/dist/src/generated/bucket_v2_framework/linked_table.js +382 -0
  33. package/dist/src/generated/bucket_v2_framework/sheet.d.ts +344 -0
  34. package/dist/src/generated/bucket_v2_framework/sheet.js +344 -0
  35. package/dist/src/generated/utils/index.d.ts +30 -0
  36. package/dist/src/generated/utils/index.js +157 -0
  37. package/dist/src/generated/waterx_account/account.d.ts +1326 -0
  38. package/dist/src/generated/waterx_account/account.js +1487 -0
  39. package/dist/src/generated/waterx_account/deps/std/type_name.d.ts +6 -0
  40. package/dist/src/generated/waterx_account/deps/std/type_name.js +19 -0
  41. package/dist/src/generated/waterx_account/deps/sui/balance.d.ts +10 -0
  42. package/dist/src/generated/waterx_account/deps/sui/balance.js +14 -0
  43. package/dist/src/generated/waterx_account/deps/sui/table.d.ts +24 -0
  44. package/dist/src/generated/waterx_account/deps/sui/table.js +31 -0
  45. package/dist/src/generated/waterx_account/deps/sui/vec_map.d.ts +36 -0
  46. package/dist/src/generated/waterx_account/deps/sui/vec_map.js +27 -0
  47. package/dist/src/generated/waterx_account/deps/sui/vec_set.d.ts +16 -0
  48. package/dist/src/generated/waterx_account/deps/sui/vec_set.js +19 -0
  49. package/dist/src/generated/waterx_account/direct_rule.d.ts +72 -0
  50. package/dist/src/generated/waterx_account/direct_rule.js +75 -0
  51. package/dist/src/generated/waterx_account/events.d.ts +30 -0
  52. package/dist/src/generated/waterx_account/events.js +145 -0
  53. package/dist/src/generated/waterx_account/version.d.ts +10 -0
  54. package/dist/src/generated/waterx_account/version.js +8 -0
  55. package/dist/src/generated/waterx_prediction/account_data.d.ts +321 -0
  56. package/dist/src/generated/waterx_prediction/account_data.js +399 -0
  57. package/dist/src/generated/waterx_prediction/admin.d.ts +5 -0
  58. package/dist/src/generated/waterx_prediction/admin.js +9 -0
  59. package/dist/src/generated/waterx_prediction/deps/bucket_v2_framework/linked_table.d.ts +8 -0
  60. package/dist/src/generated/waterx_prediction/deps/bucket_v2_framework/linked_table.js +18 -0
  61. package/dist/src/generated/waterx_prediction/deps/sui/balance.d.ts +10 -0
  62. package/dist/src/generated/waterx_prediction/deps/sui/balance.js +14 -0
  63. package/dist/src/generated/waterx_prediction/deps/sui/table.d.ts +24 -0
  64. package/dist/src/generated/waterx_prediction/deps/sui/table.js +31 -0
  65. package/dist/src/generated/waterx_prediction/deps/sui/vec_set.d.ts +16 -0
  66. package/dist/src/generated/waterx_prediction/deps/sui/vec_set.js +19 -0
  67. package/dist/src/generated/waterx_prediction/events.d.ts +19 -0
  68. package/dist/src/generated/waterx_prediction/events.js +99 -0
  69. package/dist/src/generated/waterx_prediction/global_config.d.ts +68 -0
  70. package/dist/src/generated/waterx_prediction/global_config.js +83 -0
  71. package/dist/src/generated/waterx_prediction/order.d.ts +170 -0
  72. package/dist/src/generated/waterx_prediction/order.js +237 -0
  73. package/dist/src/generated/waterx_prediction/outcome.d.ts +58 -0
  74. package/dist/src/generated/waterx_prediction/outcome.js +73 -0
  75. package/dist/src/generated/waterx_prediction/position.d.ts +150 -0
  76. package/dist/src/generated/waterx_prediction/position.js +200 -0
  77. package/dist/src/generated/waterx_prediction/view.d.ts +353 -0
  78. package/dist/src/generated/waterx_prediction/view.js +426 -0
  79. package/dist/src/generated/waterx_prediction/waterx_prediction.d.ts +1520 -0
  80. package/dist/src/generated/waterx_prediction/waterx_prediction.js +1550 -0
  81. package/dist/src/index.d.ts +22 -0
  82. package/dist/src/index.js +17 -0
  83. package/dist/src/prediction.d.ts +81 -0
  84. package/dist/src/prediction.js +220 -0
  85. package/dist/src/types.d.ts +81 -0
  86. package/dist/src/types.js +1 -0
  87. package/dist/src/user/account.d.ts +2 -0
  88. package/dist/src/user/account.js +1 -0
  89. package/dist/src/user/admin.d.ts +4 -0
  90. package/dist/src/user/admin.js +2 -0
  91. package/dist/src/user/index.d.ts +4 -0
  92. package/dist/src/user/index.js +2 -0
  93. package/dist/src/user/keeper.d.ts +2 -0
  94. package/dist/src/user/keeper.js +1 -0
  95. package/dist/src/user/order.d.ts +2 -0
  96. package/dist/src/user/order.js +1 -0
  97. package/dist/src/user/position.d.ts +2 -0
  98. package/dist/src/user/position.js +1 -0
  99. package/dist/src/utils/bcs.d.ts +1 -0
  100. package/dist/src/utils/bcs.js +1 -0
  101. package/dist/src/utils/index.d.ts +1 -0
  102. package/dist/src/utils/index.js +1 -0
  103. package/dist/src/utils.d.ts +29 -0
  104. package/dist/src/utils.js +170 -0
  105. package/package.json +62 -0
@@ -0,0 +1,440 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /** Module for floating points */
5
+ import { MoveStruct, normalizeMoveArguments } from "../utils/index.js";
6
+ import { bcs } from '@mysten/sui/bcs';
7
+ const $moduleName = '@bucket/framework::float';
8
+ export const Float = new MoveStruct({ name: `${$moduleName}::Float`, fields: {
9
+ value: bcs.u128()
10
+ } });
11
+ /** Public Funs */
12
+ export function zero(options = {}) {
13
+ const packageAddress = options.package ?? '@bucket/framework';
14
+ return (tx) => tx.moveCall({
15
+ package: packageAddress,
16
+ module: 'float',
17
+ function: 'zero',
18
+ });
19
+ }
20
+ export function one(options = {}) {
21
+ const packageAddress = options.package ?? '@bucket/framework';
22
+ return (tx) => tx.moveCall({
23
+ package: packageAddress,
24
+ module: 'float',
25
+ function: 'one',
26
+ });
27
+ }
28
+ export function ten(options = {}) {
29
+ const packageAddress = options.package ?? '@bucket/framework';
30
+ return (tx) => tx.moveCall({
31
+ package: packageAddress,
32
+ module: 'float',
33
+ function: 'ten',
34
+ });
35
+ }
36
+ export function _from(options) {
37
+ const packageAddress = options.package ?? '@bucket/framework';
38
+ const argumentsTypes = [
39
+ 'u64'
40
+ ];
41
+ const parameterNames = ["v"];
42
+ return (tx) => tx.moveCall({
43
+ package: packageAddress,
44
+ module: 'float',
45
+ function: 'from',
46
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
47
+ });
48
+ }
49
+ export function fromPercent(options) {
50
+ const packageAddress = options.package ?? '@bucket/framework';
51
+ const argumentsTypes = [
52
+ 'u8'
53
+ ];
54
+ const parameterNames = ["v"];
55
+ return (tx) => tx.moveCall({
56
+ package: packageAddress,
57
+ module: 'float',
58
+ function: 'from_percent',
59
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
60
+ });
61
+ }
62
+ export function fromPercentU64(options) {
63
+ const packageAddress = options.package ?? '@bucket/framework';
64
+ const argumentsTypes = [
65
+ 'u64'
66
+ ];
67
+ const parameterNames = ["v"];
68
+ return (tx) => tx.moveCall({
69
+ package: packageAddress,
70
+ module: 'float',
71
+ function: 'from_percent_u64',
72
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
73
+ });
74
+ }
75
+ export function fromBps(options) {
76
+ const packageAddress = options.package ?? '@bucket/framework';
77
+ const argumentsTypes = [
78
+ 'u64'
79
+ ];
80
+ const parameterNames = ["v"];
81
+ return (tx) => tx.moveCall({
82
+ package: packageAddress,
83
+ module: 'float',
84
+ function: 'from_bps',
85
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
86
+ });
87
+ }
88
+ export function fromFraction(options) {
89
+ const packageAddress = options.package ?? '@bucket/framework';
90
+ const argumentsTypes = [
91
+ 'u64',
92
+ 'u64'
93
+ ];
94
+ const parameterNames = ["n", "m"];
95
+ return (tx) => tx.moveCall({
96
+ package: packageAddress,
97
+ module: 'float',
98
+ function: 'from_fraction',
99
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
100
+ });
101
+ }
102
+ export function fromScaledVal(options) {
103
+ const packageAddress = options.package ?? '@bucket/framework';
104
+ const argumentsTypes = [
105
+ 'u128'
106
+ ];
107
+ const parameterNames = ["v"];
108
+ return (tx) => tx.moveCall({
109
+ package: packageAddress,
110
+ module: 'float',
111
+ function: 'from_scaled_val',
112
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
113
+ });
114
+ }
115
+ export function toScaledVal(options) {
116
+ const packageAddress = options.package ?? '@bucket/framework';
117
+ const argumentsTypes = [
118
+ null
119
+ ];
120
+ const parameterNames = ["v"];
121
+ return (tx) => tx.moveCall({
122
+ package: packageAddress,
123
+ module: 'float',
124
+ function: 'to_scaled_val',
125
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
126
+ });
127
+ }
128
+ export function add(options) {
129
+ const packageAddress = options.package ?? '@bucket/framework';
130
+ const argumentsTypes = [
131
+ null,
132
+ null
133
+ ];
134
+ const parameterNames = ["a", "b"];
135
+ return (tx) => tx.moveCall({
136
+ package: packageAddress,
137
+ module: 'float',
138
+ function: 'add',
139
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
140
+ });
141
+ }
142
+ export function sub(options) {
143
+ const packageAddress = options.package ?? '@bucket/framework';
144
+ const argumentsTypes = [
145
+ null,
146
+ null
147
+ ];
148
+ const parameterNames = ["a", "b"];
149
+ return (tx) => tx.moveCall({
150
+ package: packageAddress,
151
+ module: 'float',
152
+ function: 'sub',
153
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
154
+ });
155
+ }
156
+ export function saturatingSub(options) {
157
+ const packageAddress = options.package ?? '@bucket/framework';
158
+ const argumentsTypes = [
159
+ null,
160
+ null
161
+ ];
162
+ const parameterNames = ["a", "b"];
163
+ return (tx) => tx.moveCall({
164
+ package: packageAddress,
165
+ module: 'float',
166
+ function: 'saturating_sub',
167
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
168
+ });
169
+ }
170
+ export function mul(options) {
171
+ const packageAddress = options.package ?? '@bucket/framework';
172
+ const argumentsTypes = [
173
+ null,
174
+ null
175
+ ];
176
+ const parameterNames = ["a", "b"];
177
+ return (tx) => tx.moveCall({
178
+ package: packageAddress,
179
+ module: 'float',
180
+ function: 'mul',
181
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
182
+ });
183
+ }
184
+ export function div(options) {
185
+ const packageAddress = options.package ?? '@bucket/framework';
186
+ const argumentsTypes = [
187
+ null,
188
+ null
189
+ ];
190
+ const parameterNames = ["a", "b"];
191
+ return (tx) => tx.moveCall({
192
+ package: packageAddress,
193
+ module: 'float',
194
+ function: 'div',
195
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
196
+ });
197
+ }
198
+ export function addU64(options) {
199
+ const packageAddress = options.package ?? '@bucket/framework';
200
+ const argumentsTypes = [
201
+ null,
202
+ 'u64'
203
+ ];
204
+ const parameterNames = ["a", "b"];
205
+ return (tx) => tx.moveCall({
206
+ package: packageAddress,
207
+ module: 'float',
208
+ function: 'add_u64',
209
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
210
+ });
211
+ }
212
+ export function subU64(options) {
213
+ const packageAddress = options.package ?? '@bucket/framework';
214
+ const argumentsTypes = [
215
+ null,
216
+ 'u64'
217
+ ];
218
+ const parameterNames = ["a", "b"];
219
+ return (tx) => tx.moveCall({
220
+ package: packageAddress,
221
+ module: 'float',
222
+ function: 'sub_u64',
223
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
224
+ });
225
+ }
226
+ export function saturatingSubU64(options) {
227
+ const packageAddress = options.package ?? '@bucket/framework';
228
+ const argumentsTypes = [
229
+ null,
230
+ 'u64'
231
+ ];
232
+ const parameterNames = ["a", "b"];
233
+ return (tx) => tx.moveCall({
234
+ package: packageAddress,
235
+ module: 'float',
236
+ function: 'saturating_sub_u64',
237
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
238
+ });
239
+ }
240
+ export function mulU64(options) {
241
+ const packageAddress = options.package ?? '@bucket/framework';
242
+ const argumentsTypes = [
243
+ null,
244
+ 'u64'
245
+ ];
246
+ const parameterNames = ["a", "b"];
247
+ return (tx) => tx.moveCall({
248
+ package: packageAddress,
249
+ module: 'float',
250
+ function: 'mul_u64',
251
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
252
+ });
253
+ }
254
+ export function divU64(options) {
255
+ const packageAddress = options.package ?? '@bucket/framework';
256
+ const argumentsTypes = [
257
+ null,
258
+ 'u64'
259
+ ];
260
+ const parameterNames = ["a", "b"];
261
+ return (tx) => tx.moveCall({
262
+ package: packageAddress,
263
+ module: 'float',
264
+ function: 'div_u64',
265
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
266
+ });
267
+ }
268
+ export function pow(options) {
269
+ const packageAddress = options.package ?? '@bucket/framework';
270
+ const argumentsTypes = [
271
+ null,
272
+ 'u64'
273
+ ];
274
+ const parameterNames = ["b", "e"];
275
+ return (tx) => tx.moveCall({
276
+ package: packageAddress,
277
+ module: 'float',
278
+ function: 'pow',
279
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
280
+ });
281
+ }
282
+ export function floor(options) {
283
+ const packageAddress = options.package ?? '@bucket/framework';
284
+ const argumentsTypes = [
285
+ null
286
+ ];
287
+ const parameterNames = ["v"];
288
+ return (tx) => tx.moveCall({
289
+ package: packageAddress,
290
+ module: 'float',
291
+ function: 'floor',
292
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
293
+ });
294
+ }
295
+ export function ceil(options) {
296
+ const packageAddress = options.package ?? '@bucket/framework';
297
+ const argumentsTypes = [
298
+ null
299
+ ];
300
+ const parameterNames = ["v"];
301
+ return (tx) => tx.moveCall({
302
+ package: packageAddress,
303
+ module: 'float',
304
+ function: 'ceil',
305
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
306
+ });
307
+ }
308
+ export function round(options) {
309
+ const packageAddress = options.package ?? '@bucket/framework';
310
+ const argumentsTypes = [
311
+ null
312
+ ];
313
+ const parameterNames = ["v"];
314
+ return (tx) => tx.moveCall({
315
+ package: packageAddress,
316
+ module: 'float',
317
+ function: 'round',
318
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
319
+ });
320
+ }
321
+ export function eq(options) {
322
+ const packageAddress = options.package ?? '@bucket/framework';
323
+ const argumentsTypes = [
324
+ null,
325
+ null
326
+ ];
327
+ const parameterNames = ["a", "b"];
328
+ return (tx) => tx.moveCall({
329
+ package: packageAddress,
330
+ module: 'float',
331
+ function: 'eq',
332
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
333
+ });
334
+ }
335
+ export function gt(options) {
336
+ const packageAddress = options.package ?? '@bucket/framework';
337
+ const argumentsTypes = [
338
+ null,
339
+ null
340
+ ];
341
+ const parameterNames = ["a", "b"];
342
+ return (tx) => tx.moveCall({
343
+ package: packageAddress,
344
+ module: 'float',
345
+ function: 'gt',
346
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
347
+ });
348
+ }
349
+ export function gte(options) {
350
+ const packageAddress = options.package ?? '@bucket/framework';
351
+ const argumentsTypes = [
352
+ null,
353
+ null
354
+ ];
355
+ const parameterNames = ["a", "b"];
356
+ return (tx) => tx.moveCall({
357
+ package: packageAddress,
358
+ module: 'float',
359
+ function: 'gte',
360
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
361
+ });
362
+ }
363
+ export function lt(options) {
364
+ const packageAddress = options.package ?? '@bucket/framework';
365
+ const argumentsTypes = [
366
+ null,
367
+ null
368
+ ];
369
+ const parameterNames = ["a", "b"];
370
+ return (tx) => tx.moveCall({
371
+ package: packageAddress,
372
+ module: 'float',
373
+ function: 'lt',
374
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
375
+ });
376
+ }
377
+ export function lte(options) {
378
+ const packageAddress = options.package ?? '@bucket/framework';
379
+ const argumentsTypes = [
380
+ null,
381
+ null
382
+ ];
383
+ const parameterNames = ["a", "b"];
384
+ return (tx) => tx.moveCall({
385
+ package: packageAddress,
386
+ module: 'float',
387
+ function: 'lte',
388
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
389
+ });
390
+ }
391
+ export function min(options) {
392
+ const packageAddress = options.package ?? '@bucket/framework';
393
+ const argumentsTypes = [
394
+ null,
395
+ null
396
+ ];
397
+ const parameterNames = ["a", "b"];
398
+ return (tx) => tx.moveCall({
399
+ package: packageAddress,
400
+ module: 'float',
401
+ function: 'min',
402
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
403
+ });
404
+ }
405
+ export function max(options) {
406
+ const packageAddress = options.package ?? '@bucket/framework';
407
+ const argumentsTypes = [
408
+ null,
409
+ null
410
+ ];
411
+ const parameterNames = ["a", "b"];
412
+ return (tx) => tx.moveCall({
413
+ package: packageAddress,
414
+ module: 'float',
415
+ function: 'max',
416
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
417
+ });
418
+ }
419
+ export function diff(options) {
420
+ const packageAddress = options.package ?? '@bucket/framework';
421
+ const argumentsTypes = [
422
+ null,
423
+ null
424
+ ];
425
+ const parameterNames = ["a", "b"];
426
+ return (tx) => tx.moveCall({
427
+ package: packageAddress,
428
+ module: 'float',
429
+ function: 'diff',
430
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
431
+ });
432
+ }
433
+ export function precision(options = {}) {
434
+ const packageAddress = options.package ?? '@bucket/framework';
435
+ return (tx) => tx.moveCall({
436
+ package: packageAddress,
437
+ module: 'float',
438
+ function: 'precision',
439
+ });
440
+ }
@@ -0,0 +1,193 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /** Module for managing Credit and Debt for DeFi protocol usage */
5
+ import { MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
6
+ import { type Transaction } from '@mysten/sui/transactions';
7
+ export declare const Credit: MoveStruct<any, any>;
8
+ export declare const Debt: MoveStruct<any, any>;
9
+ export interface NewArguments {
10
+ value: RawTransactionArgument<number | bigint>;
11
+ }
12
+ export interface NewOptions {
13
+ package?: string;
14
+ arguments: NewArguments | [
15
+ value: RawTransactionArgument<number | bigint>
16
+ ];
17
+ typeArguments: [
18
+ string
19
+ ];
20
+ }
21
+ /** Public Funs */
22
+ export declare function _new(options: NewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
23
+ export interface ZeroCreditOptions {
24
+ package?: string;
25
+ arguments?: [
26
+ ];
27
+ typeArguments: [
28
+ string
29
+ ];
30
+ }
31
+ export declare function zeroCredit(options: ZeroCreditOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
32
+ export interface ZeroDebtOptions {
33
+ package?: string;
34
+ arguments?: [
35
+ ];
36
+ typeArguments: [
37
+ string
38
+ ];
39
+ }
40
+ export declare function zeroDebt(options: ZeroDebtOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
41
+ export interface DestroyZeroCreditArguments {
42
+ credit: RawTransactionArgument<string>;
43
+ }
44
+ export interface DestroyZeroCreditOptions {
45
+ package?: string;
46
+ arguments: DestroyZeroCreditArguments | [
47
+ credit: RawTransactionArgument<string>
48
+ ];
49
+ typeArguments: [
50
+ string
51
+ ];
52
+ }
53
+ export declare function destroyZeroCredit(options: DestroyZeroCreditOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
54
+ export interface DestroyZeroDebtArguments {
55
+ debt: RawTransactionArgument<string>;
56
+ }
57
+ export interface DestroyZeroDebtOptions {
58
+ package?: string;
59
+ arguments: DestroyZeroDebtArguments | [
60
+ debt: RawTransactionArgument<string>
61
+ ];
62
+ typeArguments: [
63
+ string
64
+ ];
65
+ }
66
+ export declare function destroyZeroDebt(options: DestroyZeroDebtOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
67
+ export interface AddCreditArguments {
68
+ self: RawTransactionArgument<string>;
69
+ credit: RawTransactionArgument<string>;
70
+ }
71
+ export interface AddCreditOptions {
72
+ package?: string;
73
+ arguments: AddCreditArguments | [
74
+ self: RawTransactionArgument<string>,
75
+ credit: RawTransactionArgument<string>
76
+ ];
77
+ typeArguments: [
78
+ string
79
+ ];
80
+ }
81
+ export declare function addCredit(options: AddCreditOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
82
+ export interface AddDebtArguments {
83
+ self: RawTransactionArgument<string>;
84
+ debt: RawTransactionArgument<string>;
85
+ }
86
+ export interface AddDebtOptions {
87
+ package?: string;
88
+ arguments: AddDebtArguments | [
89
+ self: RawTransactionArgument<string>,
90
+ debt: RawTransactionArgument<string>
91
+ ];
92
+ typeArguments: [
93
+ string
94
+ ];
95
+ }
96
+ export declare function addDebt(options: AddDebtOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
97
+ export interface AutoSettleArguments {
98
+ credit: RawTransactionArgument<string>;
99
+ debt: RawTransactionArgument<string>;
100
+ }
101
+ export interface AutoSettleOptions {
102
+ package?: string;
103
+ arguments: AutoSettleArguments | [
104
+ credit: RawTransactionArgument<string>,
105
+ debt: RawTransactionArgument<string>
106
+ ];
107
+ typeArguments: [
108
+ string
109
+ ];
110
+ }
111
+ export declare function autoSettle(options: AutoSettleOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
112
+ export interface SettleDebtArguments {
113
+ credit: RawTransactionArgument<string>;
114
+ debt: RawTransactionArgument<string>;
115
+ }
116
+ export interface SettleDebtOptions {
117
+ package?: string;
118
+ arguments: SettleDebtArguments | [
119
+ credit: RawTransactionArgument<string>,
120
+ debt: RawTransactionArgument<string>
121
+ ];
122
+ typeArguments: [
123
+ string
124
+ ];
125
+ }
126
+ export declare function settleDebt(options: SettleDebtOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
127
+ export interface SettleCreditArguments {
128
+ debt: RawTransactionArgument<string>;
129
+ credit: RawTransactionArgument<string>;
130
+ }
131
+ export interface SettleCreditOptions {
132
+ package?: string;
133
+ arguments: SettleCreditArguments | [
134
+ debt: RawTransactionArgument<string>,
135
+ credit: RawTransactionArgument<string>
136
+ ];
137
+ typeArguments: [
138
+ string
139
+ ];
140
+ }
141
+ export declare function settleCredit(options: SettleCreditOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
142
+ export interface CreditValueArguments {
143
+ credit: RawTransactionArgument<string>;
144
+ }
145
+ export interface CreditValueOptions {
146
+ package?: string;
147
+ arguments: CreditValueArguments | [
148
+ credit: RawTransactionArgument<string>
149
+ ];
150
+ typeArguments: [
151
+ string
152
+ ];
153
+ }
154
+ export declare function creditValue(options: CreditValueOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
155
+ export interface DebtValueArguments {
156
+ debt: RawTransactionArgument<string>;
157
+ }
158
+ export interface DebtValueOptions {
159
+ package?: string;
160
+ arguments: DebtValueArguments | [
161
+ debt: RawTransactionArgument<string>
162
+ ];
163
+ typeArguments: [
164
+ string
165
+ ];
166
+ }
167
+ export declare function debtValue(options: DebtValueOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
168
+ export interface DestroyCreditForTestingArguments {
169
+ credit: RawTransactionArgument<string>;
170
+ }
171
+ export interface DestroyCreditForTestingOptions {
172
+ package?: string;
173
+ arguments: DestroyCreditForTestingArguments | [
174
+ credit: RawTransactionArgument<string>
175
+ ];
176
+ typeArguments: [
177
+ string
178
+ ];
179
+ }
180
+ export declare function destroyCreditForTesting(options: DestroyCreditForTestingOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
181
+ export interface DestroyDebtForTestingArguments {
182
+ debt: RawTransactionArgument<string>;
183
+ }
184
+ export interface DestroyDebtForTestingOptions {
185
+ package?: string;
186
+ arguments: DestroyDebtForTestingArguments | [
187
+ debt: RawTransactionArgument<string>
188
+ ];
189
+ typeArguments: [
190
+ string
191
+ ];
192
+ }
193
+ export declare function destroyDebtForTesting(options: DestroyDebtForTestingOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;