stable-layer-sdk 0.0.3 → 1.0.1
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/client.test.d.ts +1 -0
- package/dist/client.test.js +146 -0
- package/dist/generated/stable_layer/deps/bucket_v2_framework/liability.d.ts +11 -0
- package/dist/generated/stable_layer/deps/bucket_v2_framework/liability.js +13 -0
- package/dist/generated/stable_layer/deps/bucket_v2_framework/sheet.d.ts +57 -0
- package/dist/generated/stable_layer/deps/bucket_v2_framework/sheet.js +16 -0
- package/dist/generated/stable_layer/deps/std/type_name.d.ts +17 -0
- package/dist/generated/stable_layer/deps/std/type_name.js +19 -0
- package/dist/generated/stable_layer/deps/sui/balance.d.ts +12 -0
- package/dist/generated/stable_layer/deps/sui/balance.js +14 -0
- package/dist/generated/stable_layer/deps/sui/coin.d.ts +16 -0
- package/dist/generated/stable_layer/deps/sui/coin.js +15 -0
- package/dist/generated/stable_layer/deps/sui/object.d.ts +8 -0
- package/dist/generated/stable_layer/deps/sui/object.js +10 -0
- package/dist/generated/stable_layer/deps/sui/vec_map.d.ts +36 -0
- package/dist/generated/stable_layer/deps/sui/vec_map.js +27 -0
- package/dist/generated/stable_layer/deps/sui/vec_set.d.ts +20 -0
- package/dist/generated/stable_layer/deps/sui/vec_set.js +19 -0
- package/dist/generated/stable_layer/stable_layer.d.ts +427 -0
- package/dist/generated/stable_layer/stable_layer.js +365 -0
- package/dist/generated/stable_vault_farm/deps/bucket_v2_framework/liability.d.ts +11 -0
- package/dist/generated/stable_vault_farm/deps/bucket_v2_framework/liability.js +13 -0
- package/dist/generated/stable_vault_farm/deps/bucket_v2_framework/sheet.d.ts +57 -0
- package/dist/generated/stable_vault_farm/deps/bucket_v2_framework/sheet.js +16 -0
- package/dist/generated/stable_vault_farm/deps/std/type_name.d.ts +17 -0
- package/dist/generated/stable_vault_farm/deps/std/type_name.js +19 -0
- package/dist/generated/stable_vault_farm/deps/sui/balance.d.ts +12 -0
- package/dist/generated/stable_vault_farm/deps/sui/balance.js +14 -0
- package/dist/generated/stable_vault_farm/deps/sui/object.d.ts +8 -0
- package/dist/generated/stable_vault_farm/deps/sui/object.js +10 -0
- package/dist/generated/stable_vault_farm/deps/sui/table.d.ts +31 -0
- package/dist/generated/stable_vault_farm/deps/sui/table.js +32 -0
- package/dist/generated/stable_vault_farm/deps/sui/vec_map.d.ts +36 -0
- package/dist/generated/stable_vault_farm/deps/sui/vec_map.js +27 -0
- package/dist/generated/stable_vault_farm/deps/sui/vec_set.d.ts +20 -0
- package/dist/generated/stable_vault_farm/deps/sui/vec_set.js +19 -0
- package/dist/generated/stable_vault_farm/stable_vault_farm.d.ts +242 -0
- package/dist/generated/stable_vault_farm/stable_vault_farm.js +163 -0
- package/dist/generated/utils/index.d.ts +11 -0
- package/dist/generated/utils/index.js +131 -0
- package/dist/generated/yield_usdb/buffer.d.ts +137 -0
- package/dist/generated/yield_usdb/buffer.js +157 -0
- package/dist/generated/yield_usdb/deps/bucket_v2_framework/account.d.ts +11 -0
- package/dist/generated/yield_usdb/deps/bucket_v2_framework/account.js +12 -0
- package/dist/generated/yield_usdb/deps/bucket_v2_framework/double.d.ts +8 -0
- package/dist/generated/yield_usdb/deps/bucket_v2_framework/double.js +10 -0
- package/dist/generated/yield_usdb/deps/sui/balance.d.ts +15 -0
- package/dist/generated/yield_usdb/deps/sui/balance.js +17 -0
- package/dist/generated/yield_usdb/deps/sui/coin.d.ts +16 -0
- package/dist/generated/yield_usdb/deps/sui/coin.js +15 -0
- package/dist/generated/yield_usdb/deps/sui/object.d.ts +8 -0
- package/dist/generated/yield_usdb/deps/sui/object.js +10 -0
- package/dist/generated/yield_usdb/deps/sui/vec_set.d.ts +20 -0
- package/dist/generated/yield_usdb/deps/sui/vec_set.js +19 -0
- package/dist/generated/yield_usdb/yield_usdb.d.ts +475 -0
- package/dist/generated/yield_usdb/yield_usdb.js +444 -0
- package/dist/index.d.ts +16 -19
- package/dist/index.js +235 -30
- package/dist/interface.d.ts +25 -0
- package/dist/interface.js +1 -0
- package/dist/libs/constants.d.ts +15 -0
- package/dist/libs/constants.js +18 -0
- package/package.json +19 -4
|
@@ -0,0 +1,137 @@
|
|
|
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 Buffer: MoveStruct<{
|
|
7
|
+
balance: MoveStruct<{
|
|
8
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
9
|
+
}, "0x2::balance::Balance">;
|
|
10
|
+
flow_rate: MoveStruct<{
|
|
11
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
12
|
+
}, "bucket_v2_framework::double::Double">;
|
|
13
|
+
timestamp: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
14
|
+
}, "@local-pkg/yield_usdb.move::buffer::Buffer">;
|
|
15
|
+
export interface NewArguments {
|
|
16
|
+
flowRate: RawTransactionArgument<string>;
|
|
17
|
+
}
|
|
18
|
+
export interface NewOptions {
|
|
19
|
+
package?: string;
|
|
20
|
+
arguments: NewArguments | [
|
|
21
|
+
flowRate: RawTransactionArgument<string>
|
|
22
|
+
];
|
|
23
|
+
typeArguments: [
|
|
24
|
+
string
|
|
25
|
+
];
|
|
26
|
+
}
|
|
27
|
+
/** Public Funs */
|
|
28
|
+
export declare function _new(options: NewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
29
|
+
export interface DestroyArguments {
|
|
30
|
+
buffer: RawTransactionArgument<string>;
|
|
31
|
+
}
|
|
32
|
+
export interface DestroyOptions {
|
|
33
|
+
package?: string;
|
|
34
|
+
arguments: DestroyArguments | [
|
|
35
|
+
buffer: RawTransactionArgument<string>
|
|
36
|
+
];
|
|
37
|
+
typeArguments: [
|
|
38
|
+
string
|
|
39
|
+
];
|
|
40
|
+
}
|
|
41
|
+
export declare function destroy(options: DestroyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
42
|
+
export interface JoinArguments {
|
|
43
|
+
buffer: RawTransactionArgument<string>;
|
|
44
|
+
input: RawTransactionArgument<string>;
|
|
45
|
+
}
|
|
46
|
+
export interface JoinOptions {
|
|
47
|
+
package?: string;
|
|
48
|
+
arguments: JoinArguments | [
|
|
49
|
+
buffer: RawTransactionArgument<string>,
|
|
50
|
+
input: RawTransactionArgument<string>
|
|
51
|
+
];
|
|
52
|
+
typeArguments: [
|
|
53
|
+
string
|
|
54
|
+
];
|
|
55
|
+
}
|
|
56
|
+
export declare function join(options: JoinOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
57
|
+
export interface ReleaseArguments {
|
|
58
|
+
buffer: RawTransactionArgument<string>;
|
|
59
|
+
}
|
|
60
|
+
export interface ReleaseOptions {
|
|
61
|
+
package?: string;
|
|
62
|
+
arguments: ReleaseArguments | [
|
|
63
|
+
buffer: RawTransactionArgument<string>
|
|
64
|
+
];
|
|
65
|
+
typeArguments: [
|
|
66
|
+
string
|
|
67
|
+
];
|
|
68
|
+
}
|
|
69
|
+
export declare function release(options: ReleaseOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
70
|
+
export interface SetFlowRateArguments {
|
|
71
|
+
buffer: RawTransactionArgument<string>;
|
|
72
|
+
flowRate: RawTransactionArgument<string>;
|
|
73
|
+
}
|
|
74
|
+
export interface SetFlowRateOptions {
|
|
75
|
+
package?: string;
|
|
76
|
+
arguments: SetFlowRateArguments | [
|
|
77
|
+
buffer: RawTransactionArgument<string>,
|
|
78
|
+
flowRate: RawTransactionArgument<string>
|
|
79
|
+
];
|
|
80
|
+
typeArguments: [
|
|
81
|
+
string
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
export declare function setFlowRate(options: SetFlowRateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
85
|
+
export interface BalanceArguments {
|
|
86
|
+
buffer: RawTransactionArgument<string>;
|
|
87
|
+
}
|
|
88
|
+
export interface BalanceOptions {
|
|
89
|
+
package?: string;
|
|
90
|
+
arguments: BalanceArguments | [
|
|
91
|
+
buffer: RawTransactionArgument<string>
|
|
92
|
+
];
|
|
93
|
+
typeArguments: [
|
|
94
|
+
string
|
|
95
|
+
];
|
|
96
|
+
}
|
|
97
|
+
/** Getter Funs */
|
|
98
|
+
export declare function balance(options: BalanceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
99
|
+
export interface FlowRateArguments {
|
|
100
|
+
buffer: RawTransactionArgument<string>;
|
|
101
|
+
}
|
|
102
|
+
export interface FlowRateOptions {
|
|
103
|
+
package?: string;
|
|
104
|
+
arguments: FlowRateArguments | [
|
|
105
|
+
buffer: RawTransactionArgument<string>
|
|
106
|
+
];
|
|
107
|
+
typeArguments: [
|
|
108
|
+
string
|
|
109
|
+
];
|
|
110
|
+
}
|
|
111
|
+
export declare function flowRate(options: FlowRateOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
112
|
+
export interface TimestampArguments {
|
|
113
|
+
buffer: RawTransactionArgument<string>;
|
|
114
|
+
}
|
|
115
|
+
export interface TimestampOptions {
|
|
116
|
+
package?: string;
|
|
117
|
+
arguments: TimestampArguments | [
|
|
118
|
+
buffer: RawTransactionArgument<string>
|
|
119
|
+
];
|
|
120
|
+
typeArguments: [
|
|
121
|
+
string
|
|
122
|
+
];
|
|
123
|
+
}
|
|
124
|
+
export declare function timestamp(options: TimestampOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
125
|
+
export interface ReleasableAmountArguments {
|
|
126
|
+
buffer: RawTransactionArgument<string>;
|
|
127
|
+
}
|
|
128
|
+
export interface ReleasableAmountOptions {
|
|
129
|
+
package?: string;
|
|
130
|
+
arguments: ReleasableAmountArguments | [
|
|
131
|
+
buffer: RawTransactionArgument<string>
|
|
132
|
+
];
|
|
133
|
+
typeArguments: [
|
|
134
|
+
string
|
|
135
|
+
];
|
|
136
|
+
}
|
|
137
|
+
export declare function releasableAmount(options: ReleasableAmountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { MoveStruct, normalizeMoveArguments } from '../utils/index.js';
|
|
5
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
6
|
+
import * as balance_1 from './deps/sui/balance.js';
|
|
7
|
+
import * as double from './deps/bucket_v2_framework/double.js';
|
|
8
|
+
const $moduleName = '@local-pkg/yield_usdb.move::buffer';
|
|
9
|
+
export const Buffer = new MoveStruct({ name: `${$moduleName}::Buffer`, fields: {
|
|
10
|
+
balance: balance_1.Balance,
|
|
11
|
+
flow_rate: double.Double,
|
|
12
|
+
timestamp: bcs.u64()
|
|
13
|
+
} });
|
|
14
|
+
/** Public Funs */
|
|
15
|
+
export function _new(options) {
|
|
16
|
+
var _a;
|
|
17
|
+
const packageAddress = (_a = options.package) !== null && _a !== void 0 ? _a : '@local-pkg/yield_usdb.move';
|
|
18
|
+
const argumentsTypes = [
|
|
19
|
+
'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',
|
|
20
|
+
`${packageAddress}::double::Double`
|
|
21
|
+
];
|
|
22
|
+
const parameterNames = ["flowRate"];
|
|
23
|
+
return (tx) => tx.moveCall({
|
|
24
|
+
package: packageAddress,
|
|
25
|
+
module: 'buffer',
|
|
26
|
+
function: 'new',
|
|
27
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
28
|
+
typeArguments: options.typeArguments
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
export function destroy(options) {
|
|
32
|
+
var _a;
|
|
33
|
+
const packageAddress = (_a = options.package) !== null && _a !== void 0 ? _a : '@local-pkg/yield_usdb.move';
|
|
34
|
+
const argumentsTypes = [
|
|
35
|
+
`${packageAddress}::buffer::Buffer<${options.typeArguments[0]}>`
|
|
36
|
+
];
|
|
37
|
+
const parameterNames = ["buffer"];
|
|
38
|
+
return (tx) => tx.moveCall({
|
|
39
|
+
package: packageAddress,
|
|
40
|
+
module: 'buffer',
|
|
41
|
+
function: 'destroy',
|
|
42
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
43
|
+
typeArguments: options.typeArguments
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
export function join(options) {
|
|
47
|
+
var _a;
|
|
48
|
+
const packageAddress = (_a = options.package) !== null && _a !== void 0 ? _a : '@local-pkg/yield_usdb.move';
|
|
49
|
+
const argumentsTypes = [
|
|
50
|
+
`${packageAddress}::buffer::Buffer<${options.typeArguments[0]}>`,
|
|
51
|
+
'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',
|
|
52
|
+
`0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance<${options.typeArguments[0]}>`
|
|
53
|
+
];
|
|
54
|
+
const parameterNames = ["buffer", "input"];
|
|
55
|
+
return (tx) => tx.moveCall({
|
|
56
|
+
package: packageAddress,
|
|
57
|
+
module: 'buffer',
|
|
58
|
+
function: 'join',
|
|
59
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
60
|
+
typeArguments: options.typeArguments
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
export function release(options) {
|
|
64
|
+
var _a;
|
|
65
|
+
const packageAddress = (_a = options.package) !== null && _a !== void 0 ? _a : '@local-pkg/yield_usdb.move';
|
|
66
|
+
const argumentsTypes = [
|
|
67
|
+
`${packageAddress}::buffer::Buffer<${options.typeArguments[0]}>`,
|
|
68
|
+
'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock'
|
|
69
|
+
];
|
|
70
|
+
const parameterNames = ["buffer"];
|
|
71
|
+
return (tx) => tx.moveCall({
|
|
72
|
+
package: packageAddress,
|
|
73
|
+
module: 'buffer',
|
|
74
|
+
function: 'release',
|
|
75
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
76
|
+
typeArguments: options.typeArguments
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
export function setFlowRate(options) {
|
|
80
|
+
var _a;
|
|
81
|
+
const packageAddress = (_a = options.package) !== null && _a !== void 0 ? _a : '@local-pkg/yield_usdb.move';
|
|
82
|
+
const argumentsTypes = [
|
|
83
|
+
`${packageAddress}::buffer::Buffer<${options.typeArguments[0]}>`,
|
|
84
|
+
'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock',
|
|
85
|
+
`${packageAddress}::double::Double`
|
|
86
|
+
];
|
|
87
|
+
const parameterNames = ["buffer", "flowRate"];
|
|
88
|
+
return (tx) => tx.moveCall({
|
|
89
|
+
package: packageAddress,
|
|
90
|
+
module: 'buffer',
|
|
91
|
+
function: 'set_flow_rate',
|
|
92
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
93
|
+
typeArguments: options.typeArguments
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/** Getter Funs */
|
|
97
|
+
export function balance(options) {
|
|
98
|
+
var _a;
|
|
99
|
+
const packageAddress = (_a = options.package) !== null && _a !== void 0 ? _a : '@local-pkg/yield_usdb.move';
|
|
100
|
+
const argumentsTypes = [
|
|
101
|
+
`${packageAddress}::buffer::Buffer<${options.typeArguments[0]}>`
|
|
102
|
+
];
|
|
103
|
+
const parameterNames = ["buffer"];
|
|
104
|
+
return (tx) => tx.moveCall({
|
|
105
|
+
package: packageAddress,
|
|
106
|
+
module: 'buffer',
|
|
107
|
+
function: 'balance',
|
|
108
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
109
|
+
typeArguments: options.typeArguments
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
export function flowRate(options) {
|
|
113
|
+
var _a;
|
|
114
|
+
const packageAddress = (_a = options.package) !== null && _a !== void 0 ? _a : '@local-pkg/yield_usdb.move';
|
|
115
|
+
const argumentsTypes = [
|
|
116
|
+
`${packageAddress}::buffer::Buffer<${options.typeArguments[0]}>`
|
|
117
|
+
];
|
|
118
|
+
const parameterNames = ["buffer"];
|
|
119
|
+
return (tx) => tx.moveCall({
|
|
120
|
+
package: packageAddress,
|
|
121
|
+
module: 'buffer',
|
|
122
|
+
function: 'flow_rate',
|
|
123
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
124
|
+
typeArguments: options.typeArguments
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
export function timestamp(options) {
|
|
128
|
+
var _a;
|
|
129
|
+
const packageAddress = (_a = options.package) !== null && _a !== void 0 ? _a : '@local-pkg/yield_usdb.move';
|
|
130
|
+
const argumentsTypes = [
|
|
131
|
+
`${packageAddress}::buffer::Buffer<${options.typeArguments[0]}>`
|
|
132
|
+
];
|
|
133
|
+
const parameterNames = ["buffer"];
|
|
134
|
+
return (tx) => tx.moveCall({
|
|
135
|
+
package: packageAddress,
|
|
136
|
+
module: 'buffer',
|
|
137
|
+
function: 'timestamp',
|
|
138
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
139
|
+
typeArguments: options.typeArguments
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
export function releasableAmount(options) {
|
|
143
|
+
var _a;
|
|
144
|
+
const packageAddress = (_a = options.package) !== null && _a !== void 0 ? _a : '@local-pkg/yield_usdb.move';
|
|
145
|
+
const argumentsTypes = [
|
|
146
|
+
`${packageAddress}::buffer::Buffer<${options.typeArguments[0]}>`,
|
|
147
|
+
'0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock'
|
|
148
|
+
];
|
|
149
|
+
const parameterNames = ["buffer"];
|
|
150
|
+
return (tx) => tx.moveCall({
|
|
151
|
+
package: packageAddress,
|
|
152
|
+
module: 'buffer',
|
|
153
|
+
function: 'releasable_amount',
|
|
154
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
155
|
+
typeArguments: options.typeArguments
|
|
156
|
+
});
|
|
157
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Module for Account Abstraction */
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
6
|
+
export declare const Account: MoveStruct<{
|
|
7
|
+
id: MoveStruct<{
|
|
8
|
+
id: import("@mysten/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
9
|
+
}, "0x2::object::UID">;
|
|
10
|
+
alias: import("@mysten/bcs").BcsType<string | null, string | null | undefined, "Option<string>">;
|
|
11
|
+
}, "bucket_v2_framework::account::Account">;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Module for Account Abstraction */
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
6
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
7
|
+
import * as object from '../sui/object.js';
|
|
8
|
+
const $moduleName = 'bucket_v2_framework::account';
|
|
9
|
+
export const Account = new MoveStruct({ name: `${$moduleName}::Account`, fields: {
|
|
10
|
+
id: object.UID,
|
|
11
|
+
alias: bcs.option(bcs.string())
|
|
12
|
+
} });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Module for double precision floating points */
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
6
|
+
export declare const Double: MoveStruct<{
|
|
7
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
8
|
+
}, "bucket_v2_framework::double::Double">;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Module for double precision floating points */
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
6
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
7
|
+
const $moduleName = 'bucket_v2_framework::double';
|
|
8
|
+
export const Double = new MoveStruct({ name: `${$moduleName}::Double`, fields: {
|
|
9
|
+
value: bcs.u256()
|
|
10
|
+
} });
|
|
@@ -0,0 +1,15 @@
|
|
|
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 Balance: MoveStruct<{
|
|
11
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
12
|
+
}, "0x2::balance::Balance">;
|
|
13
|
+
export declare const Supply: MoveStruct<{
|
|
14
|
+
value: import("@mysten/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
15
|
+
}, "0x2::balance::Supply">;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
11
|
+
const $moduleName = '0x2::balance';
|
|
12
|
+
export const Balance = new MoveStruct({ name: `${$moduleName}::Balance`, fields: {
|
|
13
|
+
value: bcs.u64()
|
|
14
|
+
} });
|
|
15
|
+
export const Supply = new MoveStruct({ name: `${$moduleName}::Supply`, fields: {
|
|
16
|
+
value: bcs.u64()
|
|
17
|
+
} });
|
|
@@ -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,15 @@
|
|
|
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
|
+
import * as object from './object.js';
|
|
10
|
+
import * as balance from './balance.js';
|
|
11
|
+
const $moduleName = '0x2::coin';
|
|
12
|
+
export const TreasuryCap = new MoveStruct({ name: `${$moduleName}::TreasuryCap`, fields: {
|
|
13
|
+
id: object.UID,
|
|
14
|
+
total_supply: balance.Supply
|
|
15
|
+
} });
|
|
@@ -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/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
8
|
+
}, "0x2::object::UID">;
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
7
|
+
const $moduleName = '0x2::object';
|
|
8
|
+
export const UID = new MoveStruct({ name: `${$moduleName}::UID`, fields: {
|
|
9
|
+
id: bcs.Address
|
|
10
|
+
} });
|
|
@@ -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,19 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
6
|
+
const $moduleName = '0x2::vec_set';
|
|
7
|
+
/**
|
|
8
|
+
* A set data structure backed by a vector. The set is guaranteed not to contain
|
|
9
|
+
* duplicate keys. All operations are O(N) in the size of the set
|
|
10
|
+
*
|
|
11
|
+
* - the intention of this data structure is only to provide the convenience of
|
|
12
|
+
* programming against a set API. Sets that need sorted iteration rather than
|
|
13
|
+
* insertion order iteration should be handwritten.
|
|
14
|
+
*/
|
|
15
|
+
export function VecSet(...typeParameters) {
|
|
16
|
+
return new MoveStruct({ name: `${$moduleName}::VecSet<${typeParameters[0].name}>`, fields: {
|
|
17
|
+
contents: bcs.vector(typeParameters[0])
|
|
18
|
+
} });
|
|
19
|
+
}
|