stable-layer-sdk 1.0.3 → 1.0.4

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 (36) hide show
  1. package/dist/index.cjs +39 -33
  2. package/dist/index.cjs.map +2 -2
  3. package/dist/index.mjs +39 -33
  4. package/dist/index.mjs.map +2 -2
  5. package/dist/types/client.test.d.ts +1 -0
  6. package/dist/types/generated/stable_layer/deps/bucket_v2_framework/liability.d.ts +11 -0
  7. package/dist/types/generated/stable_layer/deps/bucket_v2_framework/sheet.d.ts +57 -0
  8. package/dist/types/generated/stable_layer/deps/std/type_name.d.ts +17 -0
  9. package/dist/types/generated/stable_layer/deps/sui/balance.d.ts +12 -0
  10. package/dist/types/generated/stable_layer/deps/sui/coin.d.ts +16 -0
  11. package/dist/types/generated/stable_layer/deps/sui/object.d.ts +8 -0
  12. package/dist/types/generated/stable_layer/deps/sui/vec_map.d.ts +36 -0
  13. package/dist/types/generated/stable_layer/deps/sui/vec_set.d.ts +20 -0
  14. package/dist/types/generated/stable_layer/stable_layer.d.ts +427 -0
  15. package/dist/types/generated/stable_vault_farm/deps/bucket_v2_framework/liability.d.ts +11 -0
  16. package/dist/types/generated/stable_vault_farm/deps/bucket_v2_framework/sheet.d.ts +57 -0
  17. package/dist/types/generated/stable_vault_farm/deps/std/type_name.d.ts +17 -0
  18. package/dist/types/generated/stable_vault_farm/deps/sui/balance.d.ts +12 -0
  19. package/dist/types/generated/stable_vault_farm/deps/sui/object.d.ts +8 -0
  20. package/dist/types/generated/stable_vault_farm/deps/sui/table.d.ts +31 -0
  21. package/dist/types/generated/stable_vault_farm/deps/sui/vec_map.d.ts +36 -0
  22. package/dist/types/generated/stable_vault_farm/deps/sui/vec_set.d.ts +20 -0
  23. package/dist/types/generated/stable_vault_farm/stable_vault_farm.d.ts +242 -0
  24. package/dist/types/generated/utils/index.d.ts +11 -0
  25. package/dist/types/generated/yield_usdb/buffer.d.ts +137 -0
  26. package/dist/types/generated/yield_usdb/deps/bucket_v2_framework/account.d.ts +11 -0
  27. package/dist/types/generated/yield_usdb/deps/bucket_v2_framework/double.d.ts +8 -0
  28. package/dist/types/generated/yield_usdb/deps/sui/balance.d.ts +15 -0
  29. package/dist/types/generated/yield_usdb/deps/sui/coin.d.ts +16 -0
  30. package/dist/types/generated/yield_usdb/deps/sui/object.d.ts +8 -0
  31. package/dist/types/generated/yield_usdb/deps/sui/vec_set.d.ts +20 -0
  32. package/dist/types/generated/yield_usdb/yield_usdb.d.ts +475 -0
  33. package/dist/types/index.d.ts +16 -0
  34. package/dist/types/interface.d.ts +32 -0
  35. package/dist/types/libs/constants.d.ts +15 -0
  36. package/package.json +4 -4
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
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 } from '../../../utils/index.js';
6
+ export declare const Credit: MoveStruct<{
7
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
8
+ }, "bucket_v2_framework::liability::Credit">;
9
+ export declare const Debt: MoveStruct<{
10
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
11
+ }, "bucket_v2_framework::liability::Debt">;
@@ -0,0 +1,57 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /** Module for the record of Credit and Debt of certain entity */
5
+ import { MoveTuple, MoveStruct } from '../../../utils/index.js';
6
+ export declare const Entity: MoveTuple<MoveStruct<{
7
+ name: import("@mysten/bcs").BcsType<string, string, "string">;
8
+ }, "std::type_name::TypeName">[], "bucket_v2_framework::sheet::Entity">;
9
+ export declare const Sheet: MoveStruct<{
10
+ credits: MoveStruct<{
11
+ contents: import("@mysten/bcs").BcsType<{
12
+ key: {
13
+ name: string;
14
+ }[];
15
+ value: {
16
+ value: string;
17
+ };
18
+ }[], Iterable<{
19
+ key: {
20
+ name: string;
21
+ }[];
22
+ value: {
23
+ value: string | number | bigint;
24
+ };
25
+ }> & {
26
+ length: number;
27
+ }, string>;
28
+ }, "0x2::vec_map::VecMap<bucket_v2_framework::sheet::Entity, bucket_v2_framework::liability::Credit>">;
29
+ debts: MoveStruct<{
30
+ contents: import("@mysten/bcs").BcsType<{
31
+ key: {
32
+ name: string;
33
+ }[];
34
+ value: {
35
+ value: string;
36
+ };
37
+ }[], Iterable<{
38
+ key: {
39
+ name: string;
40
+ }[];
41
+ value: {
42
+ value: string | number | bigint;
43
+ };
44
+ }> & {
45
+ length: number;
46
+ }, string>;
47
+ }, "0x2::vec_map::VecMap<bucket_v2_framework::sheet::Entity, bucket_v2_framework::liability::Debt>">;
48
+ blacklist: MoveStruct<{
49
+ contents: import("@mysten/bcs").BcsType<{
50
+ name: string;
51
+ }[][], Iterable<{
52
+ name: string;
53
+ }[]> & {
54
+ length: number;
55
+ }, string>;
56
+ }, "0x2::vec_set::VecSet<bucket_v2_framework::sheet::Entity>">;
57
+ }, "bucket_v2_framework::sheet::Sheet">;
@@ -0,0 +1,17 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /** Functionality for converting Move types into values. Use with care! */
5
+ import { MoveStruct } from '../../../utils/index.js';
6
+ export declare const TypeName: MoveStruct<{
7
+ /**
8
+ * String representation of the type. All types are represented using their source
9
+ * syntax: "u8", "u64", "bool", "address", "vector", and so on for primitive types.
10
+ * Struct types are represented as fully qualified type names; e.g.
11
+ * `00000000000000000000000000000001::string::String` or
12
+ * `0000000000000000000000000000000a::module_name1::type_name1<0000000000000000000000000000000a::module_name2::type_name2<u64>>`
13
+ * Addresses are hex-encoded lowercase values of length ADDRESS_LENGTH (16, 20, or
14
+ * 32 depending on the Move platform)
15
+ */
16
+ name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
17
+ }, "std::type_name::TypeName">;
@@ -0,0 +1,12 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * A storable handler for Balances in general. Is used in the `Coin` module to
6
+ * allow balance operations and can be used to implement custom coins with `Supply`
7
+ * and `Balance`s.
8
+ */
9
+ import { MoveStruct } from '../../../utils/index.js';
10
+ export declare const Supply: MoveStruct<{
11
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
12
+ }, "0x2::balance::Supply">;
@@ -0,0 +1,16 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /**
5
+ * Defines the `Coin` type - platform wide representation of fungible tokens and
6
+ * coins. `Coin` can be described as a secure wrapper around `Balance` type.
7
+ */
8
+ import { MoveStruct } from '../../../utils/index.js';
9
+ export declare const TreasuryCap: MoveStruct<{
10
+ id: MoveStruct<{
11
+ id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
12
+ }, "0x2::object::UID">;
13
+ total_supply: MoveStruct<{
14
+ value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
15
+ }, "0x2::balance::Supply">;
16
+ }, "0x2::coin::TreasuryCap">;
@@ -0,0 +1,8 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /** Sui object identifiers */
5
+ import { MoveStruct } from '../../../utils/index.js';
6
+ export declare const UID: MoveStruct<{
7
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
8
+ }, "0x2::object::UID">;
@@ -0,0 +1,36 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { type BcsType } from '@mysten/sui/bcs';
5
+ import { MoveStruct } from '../../../utils/index.js';
6
+ /** An entry in the map */
7
+ export declare function Entry<K extends BcsType<any>, V extends BcsType<any>>(...typeParameters: [
8
+ K,
9
+ V
10
+ ]): MoveStruct<{
11
+ key: K;
12
+ value: V;
13
+ }, `0x2::vec_map::Entry<${K["name"]}, ${V["name"]}>`>;
14
+ /**
15
+ * A map data structure backed by a vector. The map is guaranteed not to contain
16
+ * duplicate keys, but entries are _not_ sorted by key--entries are included in
17
+ * insertion order. All operations are O(N) in the size of the map--the intention
18
+ * of this data structure is only to provide the convenience of programming against
19
+ * a map API. Large maps should use handwritten parent/child relationships instead.
20
+ * Maps that need sorted iteration rather than insertion order iteration should
21
+ * also be handwritten.
22
+ */
23
+ export declare function VecMap<K extends BcsType<any>, V extends BcsType<any>>(...typeParameters: [
24
+ K,
25
+ V
26
+ ]): MoveStruct<{
27
+ contents: BcsType<{
28
+ key: K extends BcsType<infer U, any, string> ? U : never;
29
+ value: V extends BcsType<infer U, any, string> ? U : never;
30
+ }[], Iterable<{
31
+ key: K extends BcsType<any, infer U_1, string> ? U_1 : never;
32
+ value: V extends BcsType<any, infer U_1, string> ? U_1 : never;
33
+ }> & {
34
+ length: number;
35
+ }, string>;
36
+ }, `0x2::vec_map::VecMap<${K["name"]}, ${V["name"]}>`>;
@@ -0,0 +1,20 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { type BcsType } from '@mysten/sui/bcs';
5
+ import { MoveStruct } from '../../../utils/index.js';
6
+ /**
7
+ * A set data structure backed by a vector. The set is guaranteed not to contain
8
+ * duplicate keys. All operations are O(N) in the size of the set
9
+ *
10
+ * - the intention of this data structure is only to provide the convenience of
11
+ * programming against a set API. Sets that need sorted iteration rather than
12
+ * insertion order iteration should be handwritten.
13
+ */
14
+ export declare function VecSet<K extends BcsType<any>>(...typeParameters: [
15
+ K
16
+ ]): MoveStruct<{
17
+ contents: BcsType<import("@mysten/bcs").InferBcsType<K>[], Iterable<import("@mysten/bcs").InferBcsInput<K>> & {
18
+ length: number;
19
+ }, string>;
20
+ }, `0x2::vec_set::VecSet<${K["name"]}>`>;
@@ -0,0 +1,427 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveStruct, type RawTransactionArgument } from '../utils/index.js';
5
+ import { type Transaction } from '@mysten/sui/transactions';
6
+ export declare const NewStable: MoveStruct<{
7
+ u_type: import("@mysten/sui/bcs").BcsType<string, string, "string">;
8
+ stable_type: import("@mysten/sui/bcs").BcsType<string, string, "string">;
9
+ factory_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
10
+ factory_cap_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
11
+ }, "@local-pkg/stable_factory.move::stable_layer::NewStable">;
12
+ export declare const Mint: MoveStruct<{
13
+ u_type: import("@mysten/sui/bcs").BcsType<string, string, "string">;
14
+ stable_type: import("@mysten/sui/bcs").BcsType<string, string, "string">;
15
+ mint_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
16
+ farm_type: import("@mysten/sui/bcs").BcsType<string, string, "string">;
17
+ }, "@local-pkg/stable_factory.move::stable_layer::Mint">;
18
+ export declare const Burn: MoveStruct<{
19
+ u_type: import("@mysten/sui/bcs").BcsType<string, string, "string">;
20
+ stable_type: import("@mysten/sui/bcs").BcsType<string, string, "string">;
21
+ burn_amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
22
+ farm_types: import("@mysten/sui/bcs").BcsType<{
23
+ name: string;
24
+ }[][], Iterable<{
25
+ name: string;
26
+ }[]> & {
27
+ length: number;
28
+ }, string>;
29
+ repayment_amounts: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
30
+ length: number;
31
+ }, string>;
32
+ }, "@local-pkg/stable_factory.move::stable_layer::Burn">;
33
+ export declare const StableFactoryEntity: MoveStruct<{
34
+ dummy_field: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
35
+ }, "@local-pkg/stable_factory.move::stable_layer::StableFactoryEntity">;
36
+ export declare const StableRegistry: MoveStruct<{
37
+ id: MoveStruct<{
38
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
39
+ }, "0x2::object::UID">;
40
+ versions: MoveStruct<{
41
+ contents: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
42
+ length: number;
43
+ }, string>;
44
+ }, "0x2::vec_set::VecSet<u16>">;
45
+ total_supply: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
46
+ }, "@local-pkg/stable_factory.move::stable_layer::StableRegistry">;
47
+ export declare const AdminCap: MoveStruct<{
48
+ id: MoveStruct<{
49
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
50
+ }, "0x2::object::UID">;
51
+ }, "@local-pkg/stable_factory.move::stable_layer::AdminCap">;
52
+ export declare const StableFactory: MoveStruct<{
53
+ id: MoveStruct<{
54
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
55
+ }, "0x2::object::UID">;
56
+ treasury_cap: MoveStruct<{
57
+ id: MoveStruct<{
58
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
59
+ }, "0x2::object::UID">;
60
+ total_supply: MoveStruct<{
61
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
62
+ }, "0x2::balance::Supply">;
63
+ }, "0x2::coin::TreasuryCap">;
64
+ max_supply: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
65
+ sheet: MoveStruct<{
66
+ credits: MoveStruct<{
67
+ contents: import("@mysten/sui/bcs").BcsType<{
68
+ key: {
69
+ name: string;
70
+ }[];
71
+ value: {
72
+ value: string;
73
+ };
74
+ }[], Iterable<{
75
+ key: {
76
+ name: string;
77
+ }[];
78
+ value: {
79
+ value: string | number | bigint;
80
+ };
81
+ }> & {
82
+ length: number;
83
+ }, string>;
84
+ }, "0x2::vec_map::VecMap<bucket_v2_framework::sheet::Entity, bucket_v2_framework::liability::Credit>">;
85
+ debts: MoveStruct<{
86
+ contents: import("@mysten/sui/bcs").BcsType<{
87
+ key: {
88
+ name: string;
89
+ }[];
90
+ value: {
91
+ value: string;
92
+ };
93
+ }[], Iterable<{
94
+ key: {
95
+ name: string;
96
+ }[];
97
+ value: {
98
+ value: string | number | bigint;
99
+ };
100
+ }> & {
101
+ length: number;
102
+ }, string>;
103
+ }, "0x2::vec_map::VecMap<bucket_v2_framework::sheet::Entity, bucket_v2_framework::liability::Debt>">;
104
+ blacklist: MoveStruct<{
105
+ contents: import("@mysten/sui/bcs").BcsType<{
106
+ name: string;
107
+ }[][], Iterable<{
108
+ name: string;
109
+ }[]> & {
110
+ length: number;
111
+ }, string>;
112
+ }, "0x2::vec_set::VecSet<bucket_v2_framework::sheet::Entity>">;
113
+ }, "bucket_v2_framework::sheet::Sheet">;
114
+ managers: MoveStruct<{
115
+ contents: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & {
116
+ length: number;
117
+ }, string>;
118
+ }, "0x2::vec_set::VecSet<bytes[32]>">;
119
+ }, "@local-pkg/stable_factory.move::stable_layer::StableFactory">;
120
+ export declare const FactoryCap: MoveStruct<{
121
+ id: MoveStruct<{
122
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
123
+ }, "0x2::object::UID">;
124
+ factory_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
125
+ }, "@local-pkg/stable_factory.move::stable_layer::FactoryCap">;
126
+ export interface PackageVersionOptions {
127
+ package?: string;
128
+ arguments?: [
129
+ ];
130
+ }
131
+ export declare function packageVersion(options?: PackageVersionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
132
+ export interface NewArguments {
133
+ registry: RawTransactionArgument<string>;
134
+ treasuryCap: RawTransactionArgument<string>;
135
+ maxSupply: RawTransactionArgument<number | bigint>;
136
+ }
137
+ export interface NewOptions {
138
+ package?: string;
139
+ arguments: NewArguments | [
140
+ registry: RawTransactionArgument<string>,
141
+ treasuryCap: RawTransactionArgument<string>,
142
+ maxSupply: RawTransactionArgument<number | bigint>
143
+ ];
144
+ typeArguments: [
145
+ string,
146
+ string
147
+ ];
148
+ }
149
+ /** Admin Funs */
150
+ export declare function _new(options: NewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
151
+ export interface DefaultArguments {
152
+ registry: RawTransactionArgument<string>;
153
+ treasuryCap: RawTransactionArgument<string>;
154
+ maxSupply: RawTransactionArgument<number | bigint>;
155
+ }
156
+ export interface DefaultOptions {
157
+ package?: string;
158
+ arguments: DefaultArguments | [
159
+ registry: RawTransactionArgument<string>,
160
+ treasuryCap: RawTransactionArgument<string>,
161
+ maxSupply: RawTransactionArgument<number | bigint>
162
+ ];
163
+ typeArguments: [
164
+ string,
165
+ string
166
+ ];
167
+ }
168
+ export declare function _default(options: DefaultOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
169
+ export interface AddVersionArguments {
170
+ AdminCap: RawTransactionArgument<string>;
171
+ registry: RawTransactionArgument<string>;
172
+ version: RawTransactionArgument<number>;
173
+ }
174
+ export interface AddVersionOptions {
175
+ package?: string;
176
+ arguments: AddVersionArguments | [
177
+ AdminCap: RawTransactionArgument<string>,
178
+ registry: RawTransactionArgument<string>,
179
+ version: RawTransactionArgument<number>
180
+ ];
181
+ }
182
+ /** Admin Funs */
183
+ export declare function addVersion(options: AddVersionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
184
+ export interface RemoveVersionArguments {
185
+ AdminCap: RawTransactionArgument<string>;
186
+ registry: RawTransactionArgument<string>;
187
+ version: RawTransactionArgument<number>;
188
+ }
189
+ export interface RemoveVersionOptions {
190
+ package?: string;
191
+ arguments: RemoveVersionArguments | [
192
+ AdminCap: RawTransactionArgument<string>,
193
+ registry: RawTransactionArgument<string>,
194
+ version: RawTransactionArgument<number>
195
+ ];
196
+ }
197
+ export declare function removeVersion(options: RemoveVersionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
198
+ export interface AddEntityArguments {
199
+ registry: RawTransactionArgument<string>;
200
+ FactoryCap: RawTransactionArgument<string>;
201
+ }
202
+ export interface AddEntityOptions {
203
+ package?: string;
204
+ arguments: AddEntityArguments | [
205
+ registry: RawTransactionArgument<string>,
206
+ FactoryCap: RawTransactionArgument<string>
207
+ ];
208
+ typeArguments: [
209
+ string,
210
+ string,
211
+ string
212
+ ];
213
+ }
214
+ /** Factory Cap Funs */
215
+ export declare function addEntity(options: AddEntityOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
216
+ export interface BanEntityArguments {
217
+ registry: RawTransactionArgument<string>;
218
+ FactoryCap: RawTransactionArgument<string>;
219
+ }
220
+ export interface BanEntityOptions {
221
+ package?: string;
222
+ arguments: BanEntityArguments | [
223
+ registry: RawTransactionArgument<string>,
224
+ FactoryCap: RawTransactionArgument<string>
225
+ ];
226
+ typeArguments: [
227
+ string,
228
+ string,
229
+ string
230
+ ];
231
+ }
232
+ export declare function banEntity(options: BanEntityOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
233
+ export interface AddManagerArguments {
234
+ registry: RawTransactionArgument<string>;
235
+ FactoryCap: RawTransactionArgument<string>;
236
+ manager: RawTransactionArgument<string>;
237
+ }
238
+ export interface AddManagerOptions {
239
+ package?: string;
240
+ arguments: AddManagerArguments | [
241
+ registry: RawTransactionArgument<string>,
242
+ FactoryCap: RawTransactionArgument<string>,
243
+ manager: RawTransactionArgument<string>
244
+ ];
245
+ typeArguments: [
246
+ string,
247
+ string
248
+ ];
249
+ }
250
+ export declare function addManager(options: AddManagerOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
251
+ export interface RemoveManagerArguments {
252
+ registry: RawTransactionArgument<string>;
253
+ FactoryCap: RawTransactionArgument<string>;
254
+ manager: RawTransactionArgument<string>;
255
+ }
256
+ export interface RemoveManagerOptions {
257
+ package?: string;
258
+ arguments: RemoveManagerArguments | [
259
+ registry: RawTransactionArgument<string>,
260
+ FactoryCap: RawTransactionArgument<string>,
261
+ manager: RawTransactionArgument<string>
262
+ ];
263
+ typeArguments: [
264
+ string,
265
+ string
266
+ ];
267
+ }
268
+ export declare function removeManager(options: RemoveManagerOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
269
+ export interface SetMaxSupplyArguments {
270
+ registry: RawTransactionArgument<string>;
271
+ FactoryCap: RawTransactionArgument<string>;
272
+ maxSupply: RawTransactionArgument<number | bigint>;
273
+ }
274
+ export interface SetMaxSupplyOptions {
275
+ package?: string;
276
+ arguments: SetMaxSupplyArguments | [
277
+ registry: RawTransactionArgument<string>,
278
+ FactoryCap: RawTransactionArgument<string>,
279
+ maxSupply: RawTransactionArgument<number | bigint>
280
+ ];
281
+ typeArguments: [
282
+ string,
283
+ string
284
+ ];
285
+ }
286
+ export declare function setMaxSupply(options: SetMaxSupplyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
287
+ export interface MintArguments {
288
+ registry: RawTransactionArgument<string>;
289
+ uCoin: RawTransactionArgument<string>;
290
+ }
291
+ export interface MintOptions {
292
+ package?: string;
293
+ arguments: MintArguments | [
294
+ registry: RawTransactionArgument<string>,
295
+ uCoin: RawTransactionArgument<string>
296
+ ];
297
+ typeArguments: [
298
+ string,
299
+ string,
300
+ string
301
+ ];
302
+ }
303
+ /** Public Funs */
304
+ export declare function mint(options: MintOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
305
+ export interface RequestBurnArguments {
306
+ registry: RawTransactionArgument<string>;
307
+ stableCoin: RawTransactionArgument<string>;
308
+ }
309
+ export interface RequestBurnOptions {
310
+ package?: string;
311
+ arguments: RequestBurnArguments | [
312
+ registry: RawTransactionArgument<string>,
313
+ stableCoin: RawTransactionArgument<string>
314
+ ];
315
+ typeArguments: [
316
+ string,
317
+ string
318
+ ];
319
+ }
320
+ export declare function requestBurn(options: RequestBurnOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
321
+ export interface FulfillBurnArguments {
322
+ registry: RawTransactionArgument<string>;
323
+ burnRequest: RawTransactionArgument<string>;
324
+ }
325
+ export interface FulfillBurnOptions {
326
+ package?: string;
327
+ arguments: FulfillBurnArguments | [
328
+ registry: RawTransactionArgument<string>,
329
+ burnRequest: RawTransactionArgument<string>
330
+ ];
331
+ typeArguments: [
332
+ string,
333
+ string
334
+ ];
335
+ }
336
+ export declare function fulfillBurn(options: FulfillBurnOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
337
+ export interface VersionsArguments {
338
+ registry: RawTransactionArgument<string>;
339
+ }
340
+ export interface VersionsOptions {
341
+ package?: string;
342
+ arguments: VersionsArguments | [
343
+ registry: RawTransactionArgument<string>
344
+ ];
345
+ }
346
+ /** Getter Fun */
347
+ export declare function versions(options: VersionsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
348
+ export interface TotalSupplyArguments {
349
+ registry: RawTransactionArgument<string>;
350
+ }
351
+ export interface TotalSupplyOptions {
352
+ package?: string;
353
+ arguments: TotalSupplyArguments | [
354
+ registry: RawTransactionArgument<string>
355
+ ];
356
+ }
357
+ export declare function totalSupply(options: TotalSupplyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
358
+ export interface BorrowFactoryArguments {
359
+ registry: RawTransactionArgument<string>;
360
+ }
361
+ export interface BorrowFactoryOptions {
362
+ package?: string;
363
+ arguments: BorrowFactoryArguments | [
364
+ registry: RawTransactionArgument<string>
365
+ ];
366
+ typeArguments: [
367
+ string,
368
+ string
369
+ ];
370
+ }
371
+ export declare function borrowFactory(options: BorrowFactoryOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
372
+ export interface SheetArguments {
373
+ factory: RawTransactionArgument<string>;
374
+ }
375
+ export interface SheetOptions {
376
+ package?: string;
377
+ arguments: SheetArguments | [
378
+ factory: RawTransactionArgument<string>
379
+ ];
380
+ typeArguments: [
381
+ string,
382
+ string
383
+ ];
384
+ }
385
+ export declare function sheet(options: SheetOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
386
+ export interface StableSupplyArguments {
387
+ factory: RawTransactionArgument<string>;
388
+ }
389
+ export interface StableSupplyOptions {
390
+ package?: string;
391
+ arguments: StableSupplyArguments | [
392
+ factory: RawTransactionArgument<string>
393
+ ];
394
+ typeArguments: [
395
+ string,
396
+ string
397
+ ];
398
+ }
399
+ export declare function stableSupply(options: StableSupplyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
400
+ export interface MaxSupplyArguments {
401
+ factory: RawTransactionArgument<string>;
402
+ }
403
+ export interface MaxSupplyOptions {
404
+ package?: string;
405
+ arguments: MaxSupplyArguments | [
406
+ factory: RawTransactionArgument<string>
407
+ ];
408
+ typeArguments: [
409
+ string,
410
+ string
411
+ ];
412
+ }
413
+ export declare function maxSupply(options: MaxSupplyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
414
+ export interface ManagersArguments {
415
+ factory: RawTransactionArgument<string>;
416
+ }
417
+ export interface ManagersOptions {
418
+ package?: string;
419
+ arguments: ManagersArguments | [
420
+ factory: RawTransactionArgument<string>
421
+ ];
422
+ typeArguments: [
423
+ string,
424
+ string
425
+ ];
426
+ }
427
+ export declare function managers(options: ManagersOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
@@ -0,0 +1,11 @@
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 } from '../../../utils/index.js';
6
+ export declare const Credit: MoveStruct<{
7
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
8
+ }, "bucket_v2_framework::liability::Credit">;
9
+ export declare const Debt: MoveStruct<{
10
+ value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
11
+ }, "bucket_v2_framework::liability::Debt">;