@typus/typus-perp-sdk 1.2.2 → 1.3.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/src/client.d.ts +22 -3
- package/dist/src/client.js +66 -8
- package/dist/src/fetch.d.ts +61 -17
- package/dist/src/fetch.js +20 -14
- package/dist/src/generated/typus_perp/admin.d.ts +65 -21
- package/dist/src/generated/typus_perp/admin.js +139 -123
- package/dist/src/generated/typus_perp/competition.d.ts +5 -17
- package/dist/src/generated/typus_perp/competition.js +63 -39
- package/dist/src/generated/typus_perp/deps/std/type_name.d.ts +9 -9
- package/dist/src/generated/typus_perp/deps/std/type_name.js +13 -16
- package/dist/src/generated/typus_perp/deps/sui/balance.d.ts +2 -2
- package/dist/src/generated/typus_perp/deps/sui/balance.js +5 -8
- package/dist/src/generated/typus_perp/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_perp/deps/sui/object.js +13 -0
- package/dist/src/generated/typus_perp/deps/sui/object_table.d.ts +5 -3
- package/dist/src/generated/typus_perp/deps/sui/object_table.js +40 -9
- package/dist/src/generated/typus_perp/deps/sui/table.d.ts +5 -3
- package/dist/src/generated/typus_perp/deps/sui/table.js +40 -9
- package/dist/src/generated/typus_perp/deps/sui/vec_set.d.ts +5 -3
- package/dist/src/generated/typus_perp/deps/sui/vec_set.js +5 -8
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.d.ts +4 -2
- package/dist/src/generated/typus_perp/deps/typus/keyed_big_vector.js +9 -12
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.d.ts +12 -6
- package/dist/src/generated/typus_perp/deps/typus/linked_object_table.js +41 -10
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.d.ts +4 -2
- package/dist/src/generated/typus_perp/deps/typus_framework/vault.js +40 -9
- package/dist/src/generated/typus_perp/error.d.ts +201 -94
- package/dist/src/generated/typus_perp/error.js +300 -273
- package/dist/src/generated/typus_perp/escrow.d.ts +14 -6
- package/dist/src/generated/typus_perp/escrow.js +38 -37
- package/dist/src/generated/typus_perp/lending.d.ts +1 -1
- package/dist/src/generated/typus_perp/lending.js +3 -3
- package/dist/src/generated/typus_perp/lp_pool.d.ts +438 -392
- package/dist/src/generated/typus_perp/lp_pool.js +987 -934
- package/dist/src/generated/typus_perp/math.d.ts +13 -16
- package/dist/src/generated/typus_perp/math.js +51 -50
- package/dist/src/generated/typus_perp/position.d.ts +194 -104
- package/dist/src/generated/typus_perp/position.js +714 -731
- package/dist/src/generated/typus_perp/profit_vault.d.ts +62 -20
- package/dist/src/generated/typus_perp/profit_vault.js +162 -148
- package/dist/src/generated/typus_perp/symbol.d.ts +12 -5
- package/dist/src/generated/typus_perp/symbol.js +28 -25
- package/dist/src/generated/typus_perp/trading.d.ts +955 -133
- package/dist/src/generated/typus_perp/trading.js +1575 -1146
- package/dist/src/generated/typus_perp/treasury_caps.d.ts +16 -7
- package/dist/src/generated/typus_perp/treasury_caps.js +60 -24
- package/dist/src/generated/typus_perp/user_account.d.ts +40 -0
- package/dist/src/generated/typus_perp/user_account.js +66 -0
- package/dist/src/generated/typus_stake_pool/admin.d.ts +144 -10
- package/dist/src/generated/typus_stake_pool/admin.js +132 -49
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.d.ts +9 -9
- package/dist/src/generated/typus_stake_pool/deps/std/type_name.js +13 -16
- package/dist/src/generated/typus_stake_pool/deps/sui/object.d.ts +8 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/object.js +13 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.d.ts +36 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_map.js +31 -0
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.d.ts +5 -3
- package/dist/src/generated/typus_stake_pool/deps/sui/vec_set.js +5 -8
- package/dist/src/generated/typus_stake_pool/stake_pool.d.ts +180 -79
- package/dist/src/generated/typus_stake_pool/stake_pool.js +446 -414
- package/dist/src/generated/utils/index.d.ts +4 -23
- package/dist/src/generated/utils/index.js +34 -54
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.js +35 -13
- package/dist/src/user/order.d.ts +0 -4
- package/dist/src/user/order.js +31 -74
- package/dist/src/user/orderWithBidReceipt.d.ts +0 -3
- package/dist/src/user/orderWithBidReceipt.js +24 -45
- package/dist/src/user/tlp.d.ts +0 -5
- package/dist/src/user/tlp.js +28 -73
- package/package.json +47 -40
|
@@ -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';
|
|
6
|
+
export declare const UID: MoveStruct<{
|
|
7
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
8
|
+
}, "0x2::object::UID">;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**************************************************************
|
|
3
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
4
|
+
**************************************************************/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UID = void 0;
|
|
7
|
+
/** Sui object identifiers */
|
|
8
|
+
const index_1 = require("../../../utils/index");
|
|
9
|
+
const bcs_1 = require("@mysten/sui/bcs");
|
|
10
|
+
const $moduleName = '0x2::object';
|
|
11
|
+
exports.UID = new index_1.MoveStruct({ name: `${$moduleName}::UID`, fields: {
|
|
12
|
+
id: bcs_1.bcs.Address
|
|
13
|
+
} });
|
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
* may be important for external tools. The difference is otherwise not observable
|
|
9
9
|
* from within Move.
|
|
10
10
|
*/
|
|
11
|
-
import { MoveStruct } from
|
|
11
|
+
import { MoveStruct } from '../../../utils/index';
|
|
12
12
|
export declare const ObjectTable: MoveStruct<{
|
|
13
13
|
/** the ID of this table */
|
|
14
|
-
id:
|
|
14
|
+
id: MoveStruct<{
|
|
15
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
16
|
+
}, "0x2::object::UID">;
|
|
15
17
|
/** the number of key-value pairs in the table */
|
|
16
18
|
size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
17
|
-
}, "0x2::object_table::ObjectTable
|
|
19
|
+
}, "0x2::object_table::ObjectTable">;
|
|
@@ -2,6 +2,39 @@
|
|
|
2
2
|
/**************************************************************
|
|
3
3
|
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
4
4
|
**************************************************************/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
39
|
exports.ObjectTable = void 0;
|
|
7
40
|
/**
|
|
@@ -11,15 +44,13 @@ exports.ObjectTable = void 0;
|
|
|
11
44
|
* may be important for external tools. The difference is otherwise not observable
|
|
12
45
|
* from within Move.
|
|
13
46
|
*/
|
|
14
|
-
const
|
|
47
|
+
const index_1 = require("../../../utils/index");
|
|
15
48
|
const bcs_1 = require("@mysten/sui/bcs");
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
fields: {
|
|
49
|
+
const object = __importStar(require("./object"));
|
|
50
|
+
const $moduleName = '0x2::object_table';
|
|
51
|
+
exports.ObjectTable = new index_1.MoveStruct({ name: `${$moduleName}::ObjectTable`, fields: {
|
|
20
52
|
/** the ID of this table */
|
|
21
|
-
id:
|
|
53
|
+
id: object.UID,
|
|
22
54
|
/** the number of key-value pairs in the table */
|
|
23
|
-
size: bcs_1.bcs.u64()
|
|
24
|
-
}
|
|
25
|
-
});
|
|
55
|
+
size: bcs_1.bcs.u64()
|
|
56
|
+
} });
|
|
@@ -20,10 +20,12 @@
|
|
|
20
20
|
* assert!(&table1 != &table2);
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
import { MoveStruct } from
|
|
23
|
+
import { MoveStruct } from '../../../utils/index';
|
|
24
24
|
export declare const Table: MoveStruct<{
|
|
25
25
|
/** the ID of this table */
|
|
26
|
-
id:
|
|
26
|
+
id: MoveStruct<{
|
|
27
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
28
|
+
}, "0x2::object::UID">;
|
|
27
29
|
/** the number of key-value pairs in the table */
|
|
28
30
|
size: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | number | bigint, "u64">;
|
|
29
|
-
}, "0x2::table::Table
|
|
31
|
+
}, "0x2::table::Table">;
|
|
@@ -2,6 +2,39 @@
|
|
|
2
2
|
/**************************************************************
|
|
3
3
|
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
4
4
|
**************************************************************/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
39
|
exports.Table = void 0;
|
|
7
40
|
/**
|
|
@@ -23,15 +56,13 @@ exports.Table = void 0;
|
|
|
23
56
|
* assert!(&table1 != &table2);
|
|
24
57
|
* ```
|
|
25
58
|
*/
|
|
26
|
-
const
|
|
59
|
+
const index_1 = require("../../../utils/index");
|
|
27
60
|
const bcs_1 = require("@mysten/sui/bcs");
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
fields: {
|
|
61
|
+
const object = __importStar(require("./object"));
|
|
62
|
+
const $moduleName = '0x2::table';
|
|
63
|
+
exports.Table = new index_1.MoveStruct({ name: `${$moduleName}::Table`, fields: {
|
|
32
64
|
/** the ID of this table */
|
|
33
|
-
id:
|
|
65
|
+
id: object.UID,
|
|
34
66
|
/** the number of key-value pairs in the table */
|
|
35
|
-
size: bcs_1.bcs.u64()
|
|
36
|
-
}
|
|
37
|
-
});
|
|
67
|
+
size: bcs_1.bcs.u64()
|
|
68
|
+
} });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**************************************************************
|
|
2
2
|
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
3
|
**************************************************************/
|
|
4
|
-
import { type BcsType } from
|
|
5
|
-
import { MoveStruct } from
|
|
4
|
+
import { type BcsType } from '@mysten/sui/bcs';
|
|
5
|
+
import { MoveStruct } from '../../../utils/index';
|
|
6
6
|
/**
|
|
7
7
|
* A set data structure backed by a vector. The set is guaranteed not to contain
|
|
8
8
|
* duplicate keys. All operations are O(N) in the size of the set
|
|
@@ -11,7 +11,9 @@ import { MoveStruct } from "../../../utils/index.js";
|
|
|
11
11
|
* programming against a set API. Sets that need sorted iteration rather than
|
|
12
12
|
* insertion order iteration should be handwritten.
|
|
13
13
|
*/
|
|
14
|
-
export declare function VecSet<K extends BcsType<any>>(...typeParameters: [
|
|
14
|
+
export declare function VecSet<K extends BcsType<any>>(...typeParameters: [
|
|
15
|
+
K
|
|
16
|
+
]): MoveStruct<{
|
|
15
17
|
contents: BcsType<import("@mysten/bcs", { with: { "resolution-mode": "import" } }).InferBcsType<K>[], Iterable<import("@mysten/bcs", { with: { "resolution-mode": "import" } }).InferBcsInput<K>> & {
|
|
16
18
|
length: number;
|
|
17
19
|
}, string>;
|
|
@@ -5,8 +5,8 @@ exports.VecSet = VecSet;
|
|
|
5
5
|
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
6
6
|
**************************************************************/
|
|
7
7
|
const bcs_1 = require("@mysten/sui/bcs");
|
|
8
|
-
const
|
|
9
|
-
const $moduleName =
|
|
8
|
+
const index_1 = require("../../../utils/index");
|
|
9
|
+
const $moduleName = '0x2::vec_set';
|
|
10
10
|
/**
|
|
11
11
|
* A set data structure backed by a vector. The set is guaranteed not to contain
|
|
12
12
|
* duplicate keys. All operations are O(N) in the size of the set
|
|
@@ -16,10 +16,7 @@ const $moduleName = "0x2::vec_set";
|
|
|
16
16
|
* insertion order iteration should be handwritten.
|
|
17
17
|
*/
|
|
18
18
|
function VecSet(...typeParameters) {
|
|
19
|
-
return new
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
contents: bcs_1.bcs.vector(typeParameters[0]),
|
|
23
|
-
},
|
|
24
|
-
});
|
|
19
|
+
return new index_1.MoveStruct({ name: `${$moduleName}::VecSet<${typeParameters[0].name}>`, fields: {
|
|
20
|
+
contents: bcs_1.bcs.vector(typeParameters[0])
|
|
21
|
+
} });
|
|
25
22
|
}
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
* access to a large number of elements by storing them in slices, while
|
|
8
8
|
* maintaining a mapping from keys to indices in a `Table`.
|
|
9
9
|
*/
|
|
10
|
-
import { MoveStruct } from
|
|
10
|
+
import { MoveStruct } from '../../../utils/index';
|
|
11
11
|
export declare const KeyedBigVector: MoveStruct<{
|
|
12
12
|
/** The unique identifier of the KeyedBigVector object. */
|
|
13
|
-
id:
|
|
13
|
+
id: MoveStruct<{
|
|
14
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
15
|
+
}, "0x2::object::UID">;
|
|
14
16
|
/** The type name of the keys. */
|
|
15
17
|
key_type: MoveStruct<{
|
|
16
18
|
name: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string, "string">;
|
|
@@ -43,25 +43,22 @@ exports.KeyedBigVector = void 0;
|
|
|
43
43
|
* access to a large number of elements by storing them in slices, while
|
|
44
44
|
* maintaining a mapping from keys to indices in a `Table`.
|
|
45
45
|
*/
|
|
46
|
-
const
|
|
46
|
+
const index_1 = require("../../../utils/index");
|
|
47
47
|
const bcs_1 = require("@mysten/sui/bcs");
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const $moduleName =
|
|
51
|
-
exports.KeyedBigVector = new
|
|
52
|
-
name: `${$moduleName}::KeyedBigVector`,
|
|
53
|
-
fields: {
|
|
48
|
+
const object = __importStar(require("../sui/object"));
|
|
49
|
+
const type_name = __importStar(require("../std/type_name"));
|
|
50
|
+
const $moduleName = 'typus::keyed_big_vector';
|
|
51
|
+
exports.KeyedBigVector = new index_1.MoveStruct({ name: `${$moduleName}::KeyedBigVector`, fields: {
|
|
54
52
|
/** The unique identifier of the KeyedBigVector object. */
|
|
55
|
-
id:
|
|
53
|
+
id: object.UID,
|
|
56
54
|
/** The type name of the keys. */
|
|
57
55
|
key_type: type_name.TypeName,
|
|
58
56
|
/** The type name of the values. */
|
|
59
|
-
value_type:
|
|
57
|
+
value_type: type_name.TypeName,
|
|
60
58
|
/** The index of the latest slice. */
|
|
61
59
|
slice_idx: bcs_1.bcs.u16(),
|
|
62
60
|
/** The maximum size of each slice. */
|
|
63
61
|
slice_size: bcs_1.bcs.u32(),
|
|
64
62
|
/** The total number of elements in the KeyedBigVector. */
|
|
65
|
-
length: bcs_1.bcs.u64()
|
|
66
|
-
}
|
|
67
|
-
});
|
|
63
|
+
length: bcs_1.bcs.u64()
|
|
64
|
+
} });
|
|
@@ -8,21 +8,27 @@
|
|
|
8
8
|
* data structures. The table maintains a doubly-linked list of its entries,
|
|
9
9
|
* allowing for efficient iteration in both forward and reverse order.
|
|
10
10
|
*/
|
|
11
|
-
import { type BcsType } from
|
|
12
|
-
import { MoveStruct } from
|
|
11
|
+
import { type BcsType } from '@mysten/sui/bcs';
|
|
12
|
+
import { MoveStruct } from '../../../utils/index';
|
|
13
13
|
/**
|
|
14
14
|
* A doubly-linked list of key-value pairs where values are stored as dynamic
|
|
15
15
|
* object fields.
|
|
16
16
|
*/
|
|
17
|
-
export declare function LinkedObjectTable<K extends BcsType<any>>(...typeParameters: [
|
|
17
|
+
export declare function LinkedObjectTable<K extends BcsType<any>>(...typeParameters: [
|
|
18
|
+
K
|
|
19
|
+
]): MoveStruct<{
|
|
18
20
|
/** The UID for storing the nodes of the linked list. */
|
|
19
|
-
id:
|
|
21
|
+
id: MoveStruct<{
|
|
22
|
+
id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
23
|
+
}, "0x2::object::UID">;
|
|
20
24
|
/** The UID for storing the values as dynamic object fields. */
|
|
21
|
-
vid:
|
|
25
|
+
vid: MoveStruct<{
|
|
26
|
+
id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
27
|
+
}, "0x2::object::UID">;
|
|
22
28
|
/** The number of key-value pairs in the table. */
|
|
23
29
|
size: BcsType<string, string | number | bigint, "u64">;
|
|
24
30
|
/** The key of the first entry in the table. */
|
|
25
31
|
head: BcsType<import("@mysten/bcs", { with: { "resolution-mode": "import" } }).InferBcsType<K> | null, import("@mysten/bcs", { with: { "resolution-mode": "import" } }).InferBcsInput<K> | null | undefined, `Option<${K["name"]}>`>;
|
|
26
32
|
/** The key of the last entry in the table. */
|
|
27
33
|
tail: BcsType<import("@mysten/bcs", { with: { "resolution-mode": "import" } }).InferBcsType<K> | null, import("@mysten/bcs", { with: { "resolution-mode": "import" } }).InferBcsInput<K> | null | undefined, `Option<${K["name"]}>`>;
|
|
28
|
-
}, `typus::linked_object_table::LinkedObjectTable<${K["name"]}
|
|
34
|
+
}, `typus::linked_object_table::LinkedObjectTable<${K["name"]}>`>;
|
|
@@ -2,6 +2,39 @@
|
|
|
2
2
|
/**************************************************************
|
|
3
3
|
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
4
4
|
**************************************************************/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
39
|
exports.LinkedObjectTable = LinkedObjectTable;
|
|
7
40
|
/**
|
|
@@ -12,26 +45,24 @@ exports.LinkedObjectTable = LinkedObjectTable;
|
|
|
12
45
|
* allowing for efficient iteration in both forward and reverse order.
|
|
13
46
|
*/
|
|
14
47
|
const bcs_1 = require("@mysten/sui/bcs");
|
|
15
|
-
const
|
|
16
|
-
const
|
|
48
|
+
const index_1 = require("../../../utils/index");
|
|
49
|
+
const object = __importStar(require("../sui/object"));
|
|
50
|
+
const $moduleName = 'typus::linked_object_table';
|
|
17
51
|
/**
|
|
18
52
|
* A doubly-linked list of key-value pairs where values are stored as dynamic
|
|
19
53
|
* object fields.
|
|
20
54
|
*/
|
|
21
55
|
function LinkedObjectTable(...typeParameters) {
|
|
22
|
-
return new
|
|
23
|
-
name: `${$moduleName}::LinkedObjectTable<${typeParameters[0].name}, phantom V>`,
|
|
24
|
-
fields: {
|
|
56
|
+
return new index_1.MoveStruct({ name: `${$moduleName}::LinkedObjectTable<${typeParameters[0].name}>`, fields: {
|
|
25
57
|
/** The UID for storing the nodes of the linked list. */
|
|
26
|
-
id:
|
|
58
|
+
id: object.UID,
|
|
27
59
|
/** The UID for storing the values as dynamic object fields. */
|
|
28
|
-
vid:
|
|
60
|
+
vid: object.UID,
|
|
29
61
|
/** The number of key-value pairs in the table. */
|
|
30
62
|
size: bcs_1.bcs.u64(),
|
|
31
63
|
/** The key of the first entry in the table. */
|
|
32
64
|
head: bcs_1.bcs.option(typeParameters[0]),
|
|
33
65
|
/** The key of the last entry in the table. */
|
|
34
|
-
tail: bcs_1.bcs.option(typeParameters[0])
|
|
35
|
-
}
|
|
36
|
-
});
|
|
66
|
+
tail: bcs_1.bcs.option(typeParameters[0])
|
|
67
|
+
} });
|
|
37
68
|
}
|
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
* No authority chech in these public functions, do not let `DepositVault`
|
|
6
6
|
* `BidVault` and `RefundVault` be exposed.
|
|
7
7
|
*/
|
|
8
|
-
import { MoveStruct } from
|
|
8
|
+
import { MoveStruct } from '../../../utils/index';
|
|
9
9
|
export declare const TypusBidReceipt: MoveStruct<{
|
|
10
|
-
id:
|
|
10
|
+
id: MoveStruct<{
|
|
11
|
+
id: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
12
|
+
}, "0x2::object::UID">;
|
|
11
13
|
/** The ID of the `BidVault`. */
|
|
12
14
|
vid: import("@mysten/sui/bcs", { with: { "resolution-mode": "import" } }).BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
13
15
|
/** The index of the vault. */
|
|
@@ -2,19 +2,51 @@
|
|
|
2
2
|
/**************************************************************
|
|
3
3
|
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
4
4
|
**************************************************************/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
39
|
exports.TypusBidReceipt = void 0;
|
|
7
40
|
/**
|
|
8
41
|
* No authority chech in these public functions, do not let `DepositVault`
|
|
9
42
|
* `BidVault` and `RefundVault` be exposed.
|
|
10
43
|
*/
|
|
11
|
-
const
|
|
44
|
+
const index_1 = require("../../../utils/index");
|
|
12
45
|
const bcs_1 = require("@mysten/sui/bcs");
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
id: bcs_1.bcs.Address,
|
|
46
|
+
const object = __importStar(require("../sui/object"));
|
|
47
|
+
const $moduleName = 'typus_framework::vault';
|
|
48
|
+
exports.TypusBidReceipt = new index_1.MoveStruct({ name: `${$moduleName}::TypusBidReceipt`, fields: {
|
|
49
|
+
id: object.UID,
|
|
18
50
|
/** The ID of the `BidVault`. */
|
|
19
51
|
vid: bcs_1.bcs.Address,
|
|
20
52
|
/** The index of the vault. */
|
|
@@ -22,6 +54,5 @@ exports.TypusBidReceipt = new index_js_1.MoveStruct({
|
|
|
22
54
|
/** Metadata for display purposes. */
|
|
23
55
|
metadata: bcs_1.bcs.string(),
|
|
24
56
|
/** Padding for additional u64 fields. */
|
|
25
|
-
u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64())
|
|
26
|
-
}
|
|
27
|
-
});
|
|
57
|
+
u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64())
|
|
58
|
+
} });
|