@typus/typus-perp-sdk 1.0.50 → 1.0.52-upgrade
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/_dependencies/source/0x2/bag/structs.d.ts +61 -0
- package/dist/src/_dependencies/source/0x2/bag/structs.js +229 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +88 -0
- package/dist/src/_dependencies/source/0x2/balance/structs.js +386 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +460 -0
- package/dist/src/_dependencies/source/0x2/coin/structs.js +1247 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +153 -0
- package/dist/src/_dependencies/source/0x2/linked-table/structs.js +438 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +46 -0
- package/dist/src/_dependencies/source/0x2/sui/structs.js +222 -0
- package/dist/src/_dependencies/source/0x2/table/structs.d.ts +61 -0
- package/dist/src/_dependencies/source/0x2/table/structs.js +248 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +68 -0
- package/dist/src/_dependencies/source/0x2/table-vec/structs.js +274 -0
- package/dist/src/_dependencies/source/0x2/token/structs.d.ts +449 -0
- package/dist/src/_dependencies/source/0x2/token/structs.js +1095 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +370 -0
- package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +1091 -0
- package/dist/src/_dependencies/source/0x2/url/structs.d.ts +53 -0
- package/dist/src/_dependencies/source/0x2/url/structs.js +223 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.d.ts +489 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/airdrop/structs.js +1084 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.d.ts +147 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/big-vector/structs.js +456 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.d.ts +239 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/critbit/structs.js +653 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.d.ts +405 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/ecosystem/structs.js +899 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.d.ts +8 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/index.js +11 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/init.js +102 -0
- package/dist/src/_dependencies/source/{0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277 → 0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a}/keyed-big-vector/structs.d.ts +70 -70
- package/dist/src/_dependencies/source/{0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277 → 0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a}/keyed-big-vector/structs.js +174 -174
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.d.ts +699 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/leaderboard/structs.js +1459 -0
- package/dist/src/_dependencies/source/{0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277 → 0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a}/linked-object-table/structs.d.ts +62 -62
- package/dist/src/_dependencies/source/{0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277 → 0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a}/linked-object-table/structs.js +170 -170
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.d.ts +147 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/linked-set/structs.js +430 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.d.ts +1071 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tails-staking/structs.js +2261 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.d.ts +279 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/tgld/structs.js +733 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.d.ts +328 -0
- package/dist/src/_dependencies/source/0x4b0f4ee1a40ce37ec81c987cc4e76a665419e74b863319492fc7d26f708b835a/user/structs.js +892 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.d.ts +88 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/authority/structs.js +263 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.d.ts +347 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/balance-pool/structs.js +591 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.d.ts +73 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/big-vector/structs.js +258 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.d.ts +876 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/dutch/structs.js +1721 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.d.ts +46 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/i64/structs.js +222 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.d.ts +3 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/index.js +6 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/init.js +89 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.d.ts +155 -0
- package/dist/src/_dependencies/source/0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274/linked-list/structs.js +444 -0
- package/dist/src/_dependencies/source/{0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded → 0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274}/vault/structs.d.ts +84 -84
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.d.ts +446 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/discount-mint/structs.js +844 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.d.ts +6 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/index.js +9 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.d.ts +2 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/init.js +69 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.d.ts +94 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/royalty-rule/structs.js +376 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.d.ts +454 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/staking/structs.js +881 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.d.ts +68 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/table-vec/structs.js +274 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.d.ts +1117 -0
- package/dist/src/_dependencies/source/0xbd147bc7f12f38f175d78947a61364e8e077b9b188b00e7094bc0c3623162196/typus-nft/structs.js +2387 -0
- package/dist/src/api/sentio.js +4 -1
- package/dist/src/fetch.d.ts +1 -1
- package/dist/src/fetch.js +1 -1
- package/dist/src/index.js +17 -17
- package/dist/src/typus_perp/admin/structs.d.ts +67 -5
- package/dist/src/typus_perp/admin/structs.js +155 -1
- package/dist/src/typus_perp/escrow/functions.js +1 -1
- package/dist/src/typus_perp/escrow/structs.d.ts +2 -2
- package/dist/src/typus_perp/escrow/structs.js +1 -1
- package/dist/src/typus_perp/lp-pool/structs.d.ts +28 -28
- package/dist/src/typus_perp/position/functions.js +1 -1
- package/dist/src/typus_perp/position/structs.d.ts +6 -6
- package/dist/src/typus_perp/symbol/structs.d.ts +1 -1
- package/dist/src/typus_perp/tlp/structs.d.ts +2 -2
- package/dist/src/typus_perp/trading/functions.js +1 -1
- package/dist/src/typus_perp/trading/structs.d.ts +32 -32
- package/dist/src/typus_perp/trading/structs.js +2 -2
- package/dist/src/typus_perp/treasury-caps/structs.d.ts +1 -1
- package/dist/src/typus_stake_pool/admin/functions.d.ts +25 -25
- package/dist/src/typus_stake_pool/admin/functions.js +66 -53
- package/dist/src/typus_stake_pool/admin/structs.d.ts +191 -191
- package/dist/src/typus_stake_pool/admin/structs.js +179 -179
- package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +50 -44
- package/dist/src/typus_stake_pool/stake-pool/functions.js +127 -88
- package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +202 -202
- package/dist/src/typus_stake_pool/stake-pool/structs.js +432 -432
- package/dist/src/user/history.js +7 -1
- package/package.json +1 -1
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +0 -8
- package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +0 -11
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +0 -6
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +0 -3
- package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +0 -6
- /package/dist/src/_dependencies/source/{0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded → 0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274}/vault/structs.js +0 -0
|
@@ -105,11 +105,11 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
105
105
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
106
106
|
};
|
|
107
107
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
108
|
-
exports.
|
|
109
|
-
exports.isVersion = isVersion;
|
|
108
|
+
exports.Version = exports.SendFeeEvent = exports.FeePool = exports.FeeInfo = void 0;
|
|
110
109
|
exports.isFeeInfo = isFeeInfo;
|
|
111
110
|
exports.isFeePool = isFeePool;
|
|
112
111
|
exports.isSendFeeEvent = isSendFeeEvent;
|
|
112
|
+
exports.isVersion = isVersion;
|
|
113
113
|
var reified = __importStar(require("../../_framework/reified"));
|
|
114
114
|
var structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
|
|
115
115
|
var structs_2 = require("../../_dependencies/source/0x2/object/structs");
|
|
@@ -119,183 +119,6 @@ var util_1 = require("../../_framework/util");
|
|
|
119
119
|
var index_1 = require("../index");
|
|
120
120
|
var bcs_1 = require("@mysten/sui/bcs");
|
|
121
121
|
var utils_1 = require("@mysten/sui/utils");
|
|
122
|
-
/* ============================== Version =============================== */
|
|
123
|
-
function isVersion(type) {
|
|
124
|
-
type = (0, util_1.compressSuiType)(type);
|
|
125
|
-
return type === "".concat(index_1.PKG_V1, "::admin::Version");
|
|
126
|
-
}
|
|
127
|
-
var Version = /** @class */ (function () {
|
|
128
|
-
function Version(typeArgs, fields) {
|
|
129
|
-
this.__StructClass = true;
|
|
130
|
-
this.$typeName = Version.$typeName;
|
|
131
|
-
this.$isPhantom = Version.$isPhantom;
|
|
132
|
-
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Version.$typeName], __read(typeArgs), false));
|
|
133
|
-
this.$typeArgs = typeArgs;
|
|
134
|
-
this.id = fields.id;
|
|
135
|
-
this.value = fields.value;
|
|
136
|
-
this.feePool = fields.feePool;
|
|
137
|
-
this.liquidatorFeePool = fields.liquidatorFeePool;
|
|
138
|
-
this.authority = fields.authority;
|
|
139
|
-
this.u64Padding = fields.u64Padding;
|
|
140
|
-
}
|
|
141
|
-
Version.reified = function () {
|
|
142
|
-
var _this = this;
|
|
143
|
-
return {
|
|
144
|
-
typeName: Version.$typeName,
|
|
145
|
-
fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Version.$typeName], [], false)),
|
|
146
|
-
typeArgs: [],
|
|
147
|
-
isPhantom: Version.$isPhantom,
|
|
148
|
-
reifiedTypeArgs: [],
|
|
149
|
-
fromFields: function (fields) { return Version.fromFields(fields); },
|
|
150
|
-
fromFieldsWithTypes: function (item) { return Version.fromFieldsWithTypes(item); },
|
|
151
|
-
fromBcs: function (data) { return Version.fromBcs(data); },
|
|
152
|
-
bcs: Version.bcs,
|
|
153
|
-
fromJSONField: function (field) { return Version.fromJSONField(field); },
|
|
154
|
-
fromJSON: function (json) { return Version.fromJSON(json); },
|
|
155
|
-
fromSuiParsedData: function (content) { return Version.fromSuiParsedData(content); },
|
|
156
|
-
fromSuiObjectData: function (content) { return Version.fromSuiObjectData(content); },
|
|
157
|
-
fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
158
|
-
return [2 /*return*/, Version.fetch(client, id)];
|
|
159
|
-
}); }); },
|
|
160
|
-
new: function (fields) {
|
|
161
|
-
return new Version([], fields);
|
|
162
|
-
},
|
|
163
|
-
kind: "StructClassReified",
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
Object.defineProperty(Version, "r", {
|
|
167
|
-
get: function () {
|
|
168
|
-
return Version.reified();
|
|
169
|
-
},
|
|
170
|
-
enumerable: false,
|
|
171
|
-
configurable: true
|
|
172
|
-
});
|
|
173
|
-
Version.phantom = function () {
|
|
174
|
-
return (0, reified_1.phantom)(Version.reified());
|
|
175
|
-
};
|
|
176
|
-
Object.defineProperty(Version, "p", {
|
|
177
|
-
get: function () {
|
|
178
|
-
return Version.phantom();
|
|
179
|
-
},
|
|
180
|
-
enumerable: false,
|
|
181
|
-
configurable: true
|
|
182
|
-
});
|
|
183
|
-
Object.defineProperty(Version, "bcs", {
|
|
184
|
-
get: function () {
|
|
185
|
-
return bcs_1.bcs.struct("Version", {
|
|
186
|
-
id: structs_2.UID.bcs,
|
|
187
|
-
value: bcs_1.bcs.u64(),
|
|
188
|
-
fee_pool: FeePool.bcs,
|
|
189
|
-
liquidator_fee_pool: FeePool.bcs,
|
|
190
|
-
authority: structs_3.VecSet.bcs(bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } })),
|
|
191
|
-
u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
|
|
192
|
-
});
|
|
193
|
-
},
|
|
194
|
-
enumerable: false,
|
|
195
|
-
configurable: true
|
|
196
|
-
});
|
|
197
|
-
Version.fromFields = function (fields) {
|
|
198
|
-
return Version.reified().new({
|
|
199
|
-
id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
|
|
200
|
-
value: (0, reified_1.decodeFromFields)("u64", fields.value),
|
|
201
|
-
feePool: (0, reified_1.decodeFromFields)(FeePool.reified(), fields.fee_pool),
|
|
202
|
-
liquidatorFeePool: (0, reified_1.decodeFromFields)(FeePool.reified(), fields.liquidator_fee_pool),
|
|
203
|
-
authority: (0, reified_1.decodeFromFields)(structs_3.VecSet.reified("address"), fields.authority),
|
|
204
|
-
u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
|
|
205
|
-
});
|
|
206
|
-
};
|
|
207
|
-
Version.fromFieldsWithTypes = function (item) {
|
|
208
|
-
if (!isVersion(item.type)) {
|
|
209
|
-
throw new Error("not a Version type");
|
|
210
|
-
}
|
|
211
|
-
return Version.reified().new({
|
|
212
|
-
id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
|
|
213
|
-
value: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.value),
|
|
214
|
-
feePool: (0, reified_1.decodeFromFieldsWithTypes)(FeePool.reified(), item.fields.fee_pool),
|
|
215
|
-
liquidatorFeePool: (0, reified_1.decodeFromFieldsWithTypes)(FeePool.reified(), item.fields.liquidator_fee_pool),
|
|
216
|
-
authority: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.VecSet.reified("address"), item.fields.authority),
|
|
217
|
-
u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
|
|
218
|
-
});
|
|
219
|
-
};
|
|
220
|
-
Version.fromBcs = function (data) {
|
|
221
|
-
return Version.fromFields(Version.bcs.parse(data));
|
|
222
|
-
};
|
|
223
|
-
Version.prototype.toJSONField = function () {
|
|
224
|
-
return {
|
|
225
|
-
id: this.id,
|
|
226
|
-
value: this.value.toString(),
|
|
227
|
-
feePool: this.feePool.toJSONField(),
|
|
228
|
-
liquidatorFeePool: this.liquidatorFeePool.toJSONField(),
|
|
229
|
-
authority: this.authority.toJSONField(),
|
|
230
|
-
u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
Version.prototype.toJSON = function () {
|
|
234
|
-
return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
|
|
235
|
-
};
|
|
236
|
-
Version.fromJSONField = function (field) {
|
|
237
|
-
return Version.reified().new({
|
|
238
|
-
id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
|
|
239
|
-
value: (0, reified_1.decodeFromJSONField)("u64", field.value),
|
|
240
|
-
feePool: (0, reified_1.decodeFromJSONField)(FeePool.reified(), field.feePool),
|
|
241
|
-
liquidatorFeePool: (0, reified_1.decodeFromJSONField)(FeePool.reified(), field.liquidatorFeePool),
|
|
242
|
-
authority: (0, reified_1.decodeFromJSONField)(structs_3.VecSet.reified("address"), field.authority),
|
|
243
|
-
u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
|
|
244
|
-
});
|
|
245
|
-
};
|
|
246
|
-
Version.fromJSON = function (json) {
|
|
247
|
-
if (json.$typeName !== Version.$typeName) {
|
|
248
|
-
throw new Error("not a WithTwoGenerics json object");
|
|
249
|
-
}
|
|
250
|
-
return Version.fromJSONField(json);
|
|
251
|
-
};
|
|
252
|
-
Version.fromSuiParsedData = function (content) {
|
|
253
|
-
if (content.dataType !== "moveObject") {
|
|
254
|
-
throw new Error("not an object");
|
|
255
|
-
}
|
|
256
|
-
if (!isVersion(content.type)) {
|
|
257
|
-
throw new Error("object at ".concat(content.fields.id, " is not a Version object"));
|
|
258
|
-
}
|
|
259
|
-
return Version.fromFieldsWithTypes(content);
|
|
260
|
-
};
|
|
261
|
-
Version.fromSuiObjectData = function (data) {
|
|
262
|
-
if (data.bcs) {
|
|
263
|
-
if (data.bcs.dataType !== "moveObject" || !isVersion(data.bcs.type)) {
|
|
264
|
-
throw new Error("object at is not a Version object");
|
|
265
|
-
}
|
|
266
|
-
return Version.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
|
|
267
|
-
}
|
|
268
|
-
if (data.content) {
|
|
269
|
-
return Version.fromSuiParsedData(data.content);
|
|
270
|
-
}
|
|
271
|
-
throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
|
|
272
|
-
};
|
|
273
|
-
Version.fetch = function (client, id) {
|
|
274
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
275
|
-
var res;
|
|
276
|
-
var _a, _b;
|
|
277
|
-
return __generator(this, function (_c) {
|
|
278
|
-
switch (_c.label) {
|
|
279
|
-
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
|
|
280
|
-
case 1:
|
|
281
|
-
res = _c.sent();
|
|
282
|
-
if (res.error) {
|
|
283
|
-
throw new Error("error fetching Version object at id ".concat(id, ": ").concat(res.error.code));
|
|
284
|
-
}
|
|
285
|
-
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isVersion(res.data.bcs.type)) {
|
|
286
|
-
throw new Error("object at id ".concat(id, " is not a Version object"));
|
|
287
|
-
}
|
|
288
|
-
return [2 /*return*/, Version.fromSuiObjectData(res.data)];
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
});
|
|
292
|
-
};
|
|
293
|
-
Version.$typeName = "".concat(index_1.PKG_V1, "::admin::Version");
|
|
294
|
-
Version.$numTypeParams = 0;
|
|
295
|
-
Version.$isPhantom = [];
|
|
296
|
-
return Version;
|
|
297
|
-
}());
|
|
298
|
-
exports.Version = Version;
|
|
299
122
|
/* ============================== FeeInfo =============================== */
|
|
300
123
|
function isFeeInfo(type) {
|
|
301
124
|
type = (0, util_1.compressSuiType)(type);
|
|
@@ -755,3 +578,180 @@ var SendFeeEvent = /** @class */ (function () {
|
|
|
755
578
|
return SendFeeEvent;
|
|
756
579
|
}());
|
|
757
580
|
exports.SendFeeEvent = SendFeeEvent;
|
|
581
|
+
/* ============================== Version =============================== */
|
|
582
|
+
function isVersion(type) {
|
|
583
|
+
type = (0, util_1.compressSuiType)(type);
|
|
584
|
+
return type === "".concat(index_1.PKG_V1, "::admin::Version");
|
|
585
|
+
}
|
|
586
|
+
var Version = /** @class */ (function () {
|
|
587
|
+
function Version(typeArgs, fields) {
|
|
588
|
+
this.__StructClass = true;
|
|
589
|
+
this.$typeName = Version.$typeName;
|
|
590
|
+
this.$isPhantom = Version.$isPhantom;
|
|
591
|
+
this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Version.$typeName], __read(typeArgs), false));
|
|
592
|
+
this.$typeArgs = typeArgs;
|
|
593
|
+
this.id = fields.id;
|
|
594
|
+
this.value = fields.value;
|
|
595
|
+
this.feePool = fields.feePool;
|
|
596
|
+
this.liquidatorFeePool = fields.liquidatorFeePool;
|
|
597
|
+
this.authority = fields.authority;
|
|
598
|
+
this.u64Padding = fields.u64Padding;
|
|
599
|
+
}
|
|
600
|
+
Version.reified = function () {
|
|
601
|
+
var _this = this;
|
|
602
|
+
return {
|
|
603
|
+
typeName: Version.$typeName,
|
|
604
|
+
fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Version.$typeName], [], false)),
|
|
605
|
+
typeArgs: [],
|
|
606
|
+
isPhantom: Version.$isPhantom,
|
|
607
|
+
reifiedTypeArgs: [],
|
|
608
|
+
fromFields: function (fields) { return Version.fromFields(fields); },
|
|
609
|
+
fromFieldsWithTypes: function (item) { return Version.fromFieldsWithTypes(item); },
|
|
610
|
+
fromBcs: function (data) { return Version.fromBcs(data); },
|
|
611
|
+
bcs: Version.bcs,
|
|
612
|
+
fromJSONField: function (field) { return Version.fromJSONField(field); },
|
|
613
|
+
fromJSON: function (json) { return Version.fromJSON(json); },
|
|
614
|
+
fromSuiParsedData: function (content) { return Version.fromSuiParsedData(content); },
|
|
615
|
+
fromSuiObjectData: function (content) { return Version.fromSuiObjectData(content); },
|
|
616
|
+
fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
617
|
+
return [2 /*return*/, Version.fetch(client, id)];
|
|
618
|
+
}); }); },
|
|
619
|
+
new: function (fields) {
|
|
620
|
+
return new Version([], fields);
|
|
621
|
+
},
|
|
622
|
+
kind: "StructClassReified",
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
Object.defineProperty(Version, "r", {
|
|
626
|
+
get: function () {
|
|
627
|
+
return Version.reified();
|
|
628
|
+
},
|
|
629
|
+
enumerable: false,
|
|
630
|
+
configurable: true
|
|
631
|
+
});
|
|
632
|
+
Version.phantom = function () {
|
|
633
|
+
return (0, reified_1.phantom)(Version.reified());
|
|
634
|
+
};
|
|
635
|
+
Object.defineProperty(Version, "p", {
|
|
636
|
+
get: function () {
|
|
637
|
+
return Version.phantom();
|
|
638
|
+
},
|
|
639
|
+
enumerable: false,
|
|
640
|
+
configurable: true
|
|
641
|
+
});
|
|
642
|
+
Object.defineProperty(Version, "bcs", {
|
|
643
|
+
get: function () {
|
|
644
|
+
return bcs_1.bcs.struct("Version", {
|
|
645
|
+
id: structs_2.UID.bcs,
|
|
646
|
+
value: bcs_1.bcs.u64(),
|
|
647
|
+
fee_pool: FeePool.bcs,
|
|
648
|
+
liquidator_fee_pool: FeePool.bcs,
|
|
649
|
+
authority: structs_3.VecSet.bcs(bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } })),
|
|
650
|
+
u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
|
|
651
|
+
});
|
|
652
|
+
},
|
|
653
|
+
enumerable: false,
|
|
654
|
+
configurable: true
|
|
655
|
+
});
|
|
656
|
+
Version.fromFields = function (fields) {
|
|
657
|
+
return Version.reified().new({
|
|
658
|
+
id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
|
|
659
|
+
value: (0, reified_1.decodeFromFields)("u64", fields.value),
|
|
660
|
+
feePool: (0, reified_1.decodeFromFields)(FeePool.reified(), fields.fee_pool),
|
|
661
|
+
liquidatorFeePool: (0, reified_1.decodeFromFields)(FeePool.reified(), fields.liquidator_fee_pool),
|
|
662
|
+
authority: (0, reified_1.decodeFromFields)(structs_3.VecSet.reified("address"), fields.authority),
|
|
663
|
+
u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
|
|
664
|
+
});
|
|
665
|
+
};
|
|
666
|
+
Version.fromFieldsWithTypes = function (item) {
|
|
667
|
+
if (!isVersion(item.type)) {
|
|
668
|
+
throw new Error("not a Version type");
|
|
669
|
+
}
|
|
670
|
+
return Version.reified().new({
|
|
671
|
+
id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
|
|
672
|
+
value: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.value),
|
|
673
|
+
feePool: (0, reified_1.decodeFromFieldsWithTypes)(FeePool.reified(), item.fields.fee_pool),
|
|
674
|
+
liquidatorFeePool: (0, reified_1.decodeFromFieldsWithTypes)(FeePool.reified(), item.fields.liquidator_fee_pool),
|
|
675
|
+
authority: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.VecSet.reified("address"), item.fields.authority),
|
|
676
|
+
u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
|
|
677
|
+
});
|
|
678
|
+
};
|
|
679
|
+
Version.fromBcs = function (data) {
|
|
680
|
+
return Version.fromFields(Version.bcs.parse(data));
|
|
681
|
+
};
|
|
682
|
+
Version.prototype.toJSONField = function () {
|
|
683
|
+
return {
|
|
684
|
+
id: this.id,
|
|
685
|
+
value: this.value.toString(),
|
|
686
|
+
feePool: this.feePool.toJSONField(),
|
|
687
|
+
liquidatorFeePool: this.liquidatorFeePool.toJSONField(),
|
|
688
|
+
authority: this.authority.toJSONField(),
|
|
689
|
+
u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
Version.prototype.toJSON = function () {
|
|
693
|
+
return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
|
|
694
|
+
};
|
|
695
|
+
Version.fromJSONField = function (field) {
|
|
696
|
+
return Version.reified().new({
|
|
697
|
+
id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
|
|
698
|
+
value: (0, reified_1.decodeFromJSONField)("u64", field.value),
|
|
699
|
+
feePool: (0, reified_1.decodeFromJSONField)(FeePool.reified(), field.feePool),
|
|
700
|
+
liquidatorFeePool: (0, reified_1.decodeFromJSONField)(FeePool.reified(), field.liquidatorFeePool),
|
|
701
|
+
authority: (0, reified_1.decodeFromJSONField)(structs_3.VecSet.reified("address"), field.authority),
|
|
702
|
+
u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
|
|
703
|
+
});
|
|
704
|
+
};
|
|
705
|
+
Version.fromJSON = function (json) {
|
|
706
|
+
if (json.$typeName !== Version.$typeName) {
|
|
707
|
+
throw new Error("not a WithTwoGenerics json object");
|
|
708
|
+
}
|
|
709
|
+
return Version.fromJSONField(json);
|
|
710
|
+
};
|
|
711
|
+
Version.fromSuiParsedData = function (content) {
|
|
712
|
+
if (content.dataType !== "moveObject") {
|
|
713
|
+
throw new Error("not an object");
|
|
714
|
+
}
|
|
715
|
+
if (!isVersion(content.type)) {
|
|
716
|
+
throw new Error("object at ".concat(content.fields.id, " is not a Version object"));
|
|
717
|
+
}
|
|
718
|
+
return Version.fromFieldsWithTypes(content);
|
|
719
|
+
};
|
|
720
|
+
Version.fromSuiObjectData = function (data) {
|
|
721
|
+
if (data.bcs) {
|
|
722
|
+
if (data.bcs.dataType !== "moveObject" || !isVersion(data.bcs.type)) {
|
|
723
|
+
throw new Error("object at is not a Version object");
|
|
724
|
+
}
|
|
725
|
+
return Version.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
|
|
726
|
+
}
|
|
727
|
+
if (data.content) {
|
|
728
|
+
return Version.fromSuiParsedData(data.content);
|
|
729
|
+
}
|
|
730
|
+
throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
|
|
731
|
+
};
|
|
732
|
+
Version.fetch = function (client, id) {
|
|
733
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
734
|
+
var res;
|
|
735
|
+
var _a, _b;
|
|
736
|
+
return __generator(this, function (_c) {
|
|
737
|
+
switch (_c.label) {
|
|
738
|
+
case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
|
|
739
|
+
case 1:
|
|
740
|
+
res = _c.sent();
|
|
741
|
+
if (res.error) {
|
|
742
|
+
throw new Error("error fetching Version object at id ".concat(id, ": ").concat(res.error.code));
|
|
743
|
+
}
|
|
744
|
+
if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isVersion(res.data.bcs.type)) {
|
|
745
|
+
throw new Error("object at id ".concat(id, " is not a Version object"));
|
|
746
|
+
}
|
|
747
|
+
return [2 /*return*/, Version.fromSuiObjectData(res.data)];
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
});
|
|
751
|
+
};
|
|
752
|
+
Version.$typeName = "".concat(index_1.PKG_V1, "::admin::Version");
|
|
753
|
+
Version.$numTypeParams = 0;
|
|
754
|
+
Version.$isPhantom = [];
|
|
755
|
+
return Version;
|
|
756
|
+
}());
|
|
757
|
+
exports.Version = Version;
|
|
@@ -1,28 +1,10 @@
|
|
|
1
1
|
import { Transaction, TransactionArgument, TransactionObjectInput } from "@mysten/sui/transactions";
|
|
2
|
-
export declare function multiplier(tx: Transaction, decimal: bigint | TransactionArgument): import("@mysten/sui/transactions").TransactionResult;
|
|
3
|
-
export declare function init(tx: Transaction): import("@mysten/sui/transactions").TransactionResult;
|
|
4
|
-
export interface UnsubscribeArgs {
|
|
5
|
-
version: TransactionObjectInput;
|
|
6
|
-
registry: TransactionObjectInput;
|
|
7
|
-
index: bigint | TransactionArgument;
|
|
8
|
-
userShareId: bigint | TransactionArgument;
|
|
9
|
-
unsubscribedShares: bigint | TransactionArgument | TransactionArgument | null;
|
|
10
|
-
clock: TransactionObjectInput;
|
|
11
|
-
}
|
|
12
|
-
export declare function unsubscribe(tx: Transaction, typeArg: string, args: UnsubscribeArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
13
|
-
export interface WithdrawIncentiveArgs {
|
|
14
|
-
version: TransactionObjectInput;
|
|
15
|
-
registry: TransactionObjectInput;
|
|
16
|
-
index: bigint | TransactionArgument;
|
|
17
|
-
amount: bigint | TransactionArgument | TransactionArgument | null;
|
|
18
|
-
}
|
|
19
|
-
export declare function withdrawIncentive(tx: Transaction, typeArg: string, args: WithdrawIncentiveArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
20
2
|
export interface ActivateIncentiveTokenArgs {
|
|
21
3
|
version: TransactionObjectInput;
|
|
22
4
|
registry: TransactionObjectInput;
|
|
23
5
|
index: bigint | TransactionArgument;
|
|
24
6
|
}
|
|
25
|
-
export declare function activateIncentiveToken(tx: Transaction, typeArg: string, args: ActivateIncentiveTokenArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
7
|
+
export declare function activateIncentiveToken(tx: Transaction, typeArg: string, args: ActivateIncentiveTokenArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
26
8
|
export interface AddIncentiveTokenArgs {
|
|
27
9
|
version: TransactionObjectInput;
|
|
28
10
|
registry: TransactionObjectInput;
|
|
@@ -31,71 +13,71 @@ export interface AddIncentiveTokenArgs {
|
|
|
31
13
|
incentiveIntervalTsMs: bigint | TransactionArgument;
|
|
32
14
|
clock: TransactionObjectInput;
|
|
33
15
|
}
|
|
34
|
-
export declare function addIncentiveToken(tx: Transaction, typeArg: string, args: AddIncentiveTokenArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
16
|
+
export declare function addIncentiveToken(tx: Transaction, typeArg: string, args: AddIncentiveTokenArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
35
17
|
export interface AllocateIncentiveArgs {
|
|
36
18
|
version: TransactionObjectInput;
|
|
37
19
|
registry: TransactionObjectInput;
|
|
38
20
|
index: bigint | TransactionArgument;
|
|
39
21
|
clock: TransactionObjectInput;
|
|
40
22
|
}
|
|
41
|
-
export declare function allocateIncentive(tx: Transaction, args: AllocateIncentiveArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
23
|
+
export declare function allocateIncentive(tx: Transaction, args: AllocateIncentiveArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
42
24
|
export interface CalculateIncentiveArgs {
|
|
43
25
|
stakePool: TransactionObjectInput;
|
|
44
26
|
incentiveToken: TransactionObjectInput;
|
|
45
27
|
lpUserShare: TransactionObjectInput;
|
|
46
28
|
}
|
|
47
|
-
export declare function calculateIncentive(tx: Transaction, args: CalculateIncentiveArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
29
|
+
export declare function calculateIncentive(tx: Transaction, args: CalculateIncentiveArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
48
30
|
export interface CreateUserLastIncentiveTsMsArgs {
|
|
49
31
|
stakePool: TransactionObjectInput;
|
|
50
32
|
currentTsMs: bigint | TransactionArgument;
|
|
51
33
|
}
|
|
52
|
-
export declare function createUserLastIncentiveTsMs(tx: Transaction, args: CreateUserLastIncentiveTsMsArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
34
|
+
export declare function createUserLastIncentiveTsMs(tx: Transaction, args: CreateUserLastIncentiveTsMsArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
53
35
|
export interface DeactivateIncentiveTokenArgs {
|
|
54
36
|
version: TransactionObjectInput;
|
|
55
37
|
registry: TransactionObjectInput;
|
|
56
38
|
index: bigint | TransactionArgument;
|
|
57
39
|
}
|
|
58
|
-
export declare function deactivateIncentiveToken(tx: Transaction, typeArg: string, args: DeactivateIncentiveTokenArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
40
|
+
export declare function deactivateIncentiveToken(tx: Transaction, typeArg: string, args: DeactivateIncentiveTokenArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
59
41
|
export interface DepositIncentiveArgs {
|
|
60
42
|
version: TransactionObjectInput;
|
|
61
43
|
registry: TransactionObjectInput;
|
|
62
44
|
index: bigint | TransactionArgument;
|
|
63
45
|
coin: TransactionObjectInput;
|
|
64
46
|
}
|
|
65
|
-
export declare function depositIncentive(tx: Transaction, typeArg: string, args: DepositIncentiveArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
47
|
+
export declare function depositIncentive(tx: Transaction, typeArg: string, args: DepositIncentiveArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
66
48
|
export interface GetIncentiveArgs {
|
|
67
49
|
stakePool: TransactionObjectInput;
|
|
68
50
|
tokenType: TransactionObjectInput;
|
|
69
51
|
}
|
|
70
|
-
export declare function getIncentive(tx: Transaction, args: GetIncentiveArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
71
|
-
export declare function getIncentiveTokens(tx: Transaction, stakePool: TransactionObjectInput): import("@mysten/sui/transactions").TransactionResult;
|
|
72
|
-
export declare function getLastIncentivePriceIndex(tx: Transaction, stakePool: TransactionObjectInput): import("@mysten/sui/transactions").TransactionResult;
|
|
52
|
+
export declare function getIncentive(tx: Transaction, args: GetIncentiveArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
53
|
+
export declare function getIncentiveTokens(tx: Transaction, stakePool: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
54
|
+
export declare function getLastIncentivePriceIndex(tx: Transaction, stakePool: TransactionObjectInput, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
73
55
|
export interface GetMutIncentiveArgs {
|
|
74
56
|
stakePool: TransactionObjectInput;
|
|
75
57
|
tokenType: TransactionObjectInput;
|
|
76
58
|
}
|
|
77
|
-
export declare function getMutIncentive(tx: Transaction, args: GetMutIncentiveArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
59
|
+
export declare function getMutIncentive(tx: Transaction, args: GetMutIncentiveArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
78
60
|
export interface GetMutStakePoolArgs {
|
|
79
61
|
id: TransactionObjectInput;
|
|
80
62
|
index: bigint | TransactionArgument;
|
|
81
63
|
}
|
|
82
|
-
export declare function getMutStakePool(tx: Transaction, args: GetMutStakePoolArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
64
|
+
export declare function getMutStakePool(tx: Transaction, args: GetMutStakePoolArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
83
65
|
export interface GetStakePoolArgs {
|
|
84
66
|
id: TransactionObjectInput;
|
|
85
67
|
index: bigint | TransactionArgument;
|
|
86
68
|
}
|
|
87
|
-
export declare function getStakePool(tx: Transaction, args: GetStakePoolArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
69
|
+
export declare function getStakePool(tx: Transaction, args: GetStakePoolArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
88
70
|
export interface GetUserShareIdsArgs {
|
|
89
71
|
stakePool: TransactionObjectInput;
|
|
90
72
|
user: string | TransactionArgument;
|
|
91
73
|
}
|
|
92
|
-
export declare function getUserShareIds(tx: Transaction, args: GetUserShareIdsArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
74
|
+
export declare function getUserShareIds(tx: Transaction, args: GetUserShareIdsArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
93
75
|
export interface GetUserSharesArgs {
|
|
94
76
|
registry: TransactionObjectInput;
|
|
95
77
|
index: bigint | TransactionArgument;
|
|
96
78
|
user: string | TransactionArgument;
|
|
97
79
|
}
|
|
98
|
-
export declare function getUserShares(tx: Transaction, args: GetUserSharesArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
80
|
+
export declare function getUserShares(tx: Transaction, args: GetUserSharesArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
99
81
|
export interface HarvestPerUserShareArgs {
|
|
100
82
|
version: TransactionObjectInput;
|
|
101
83
|
registry: TransactionObjectInput;
|
|
@@ -103,35 +85,43 @@ export interface HarvestPerUserShareArgs {
|
|
|
103
85
|
userShareId: bigint | TransactionArgument;
|
|
104
86
|
clock: TransactionObjectInput;
|
|
105
87
|
}
|
|
106
|
-
export declare function harvestPerUserShare(tx: Transaction, typeArg: string, args: HarvestPerUserShareArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
88
|
+
export declare function harvestPerUserShare(tx: Transaction, typeArg: string, args: HarvestPerUserShareArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
107
89
|
export interface HarvestProgressUpdatedArgs {
|
|
108
90
|
stakePool: TransactionObjectInput;
|
|
109
91
|
lpUserShare: TransactionObjectInput;
|
|
110
92
|
}
|
|
111
|
-
export declare function harvestProgressUpdated(tx: Transaction, args: HarvestProgressUpdatedArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
93
|
+
export declare function harvestProgressUpdated(tx: Transaction, args: HarvestProgressUpdatedArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
94
|
+
export declare function init(tx: Transaction, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
95
|
+
export interface MigrateToStakedTlpArgs {
|
|
96
|
+
version: TransactionObjectInput;
|
|
97
|
+
registry: TransactionObjectInput;
|
|
98
|
+
index: bigint | TransactionArgument;
|
|
99
|
+
}
|
|
100
|
+
export declare function migrateToStakedTlp(tx: Transaction, typeArg: string, args: MigrateToStakedTlpArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
101
|
+
export declare function multiplier(tx: Transaction, decimal: bigint | TransactionArgument, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
112
102
|
export interface NewStakePoolArgs {
|
|
113
103
|
version: TransactionObjectInput;
|
|
114
104
|
registry: TransactionObjectInput;
|
|
115
105
|
unlockCountdownTsMs: bigint | TransactionArgument;
|
|
116
106
|
}
|
|
117
|
-
export declare function newStakePool(tx: Transaction, typeArg: string, args: NewStakePoolArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
107
|
+
export declare function newStakePool(tx: Transaction, typeArg: string, args: NewStakePoolArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
118
108
|
export interface RemoveIncentiveArgs {
|
|
119
109
|
stakePool: TransactionObjectInput;
|
|
120
110
|
tokenType: TransactionObjectInput;
|
|
121
111
|
}
|
|
122
|
-
export declare function removeIncentive(tx: Transaction, args: RemoveIncentiveArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
112
|
+
export declare function removeIncentive(tx: Transaction, args: RemoveIncentiveArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
123
113
|
export interface RemoveIncentiveTokenArgs {
|
|
124
114
|
version: TransactionObjectInput;
|
|
125
115
|
registry: TransactionObjectInput;
|
|
126
116
|
index: bigint | TransactionArgument;
|
|
127
117
|
}
|
|
128
|
-
export declare function removeIncentiveToken(tx: Transaction, typeArg: string, args: RemoveIncentiveTokenArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
118
|
+
export declare function removeIncentiveToken(tx: Transaction, typeArg: string, args: RemoveIncentiveTokenArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
129
119
|
export interface RemoveUserShareByIdArgs {
|
|
130
120
|
id: TransactionObjectInput;
|
|
131
121
|
user: string | TransactionArgument;
|
|
132
122
|
userShareId: bigint | TransactionArgument;
|
|
133
123
|
}
|
|
134
|
-
export declare function removeUserShareById(tx: Transaction, args: RemoveUserShareByIdArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
124
|
+
export declare function removeUserShareById(tx: Transaction, args: RemoveUserShareByIdArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
135
125
|
export interface StakeArgs {
|
|
136
126
|
version: TransactionObjectInput;
|
|
137
127
|
registry: TransactionObjectInput;
|
|
@@ -140,13 +130,13 @@ export interface StakeArgs {
|
|
|
140
130
|
userShareId: bigint | TransactionArgument | TransactionArgument | null;
|
|
141
131
|
clock: TransactionObjectInput;
|
|
142
132
|
}
|
|
143
|
-
export declare function stake(tx: Transaction, typeArg: string, args: StakeArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
133
|
+
export declare function stake(tx: Transaction, typeArg: string, args: StakeArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
144
134
|
export interface StoreUserSharesArgs {
|
|
145
135
|
id: TransactionObjectInput;
|
|
146
136
|
user: string | TransactionArgument;
|
|
147
137
|
userShares: Array<TransactionObjectInput> | TransactionArgument;
|
|
148
138
|
}
|
|
149
|
-
export declare function storeUserShares(tx: Transaction, args: StoreUserSharesArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
139
|
+
export declare function storeUserShares(tx: Transaction, args: StoreUserSharesArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
150
140
|
export interface UnstakeArgs {
|
|
151
141
|
version: TransactionObjectInput;
|
|
152
142
|
registry: TransactionObjectInput;
|
|
@@ -154,7 +144,16 @@ export interface UnstakeArgs {
|
|
|
154
144
|
userShareId: bigint | TransactionArgument;
|
|
155
145
|
clock: TransactionObjectInput;
|
|
156
146
|
}
|
|
157
|
-
export declare function unstake(tx: Transaction, typeArg: string, args: UnstakeArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
147
|
+
export declare function unstake(tx: Transaction, typeArg: string, args: UnstakeArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
148
|
+
export interface UnsubscribeArgs {
|
|
149
|
+
version: TransactionObjectInput;
|
|
150
|
+
registry: TransactionObjectInput;
|
|
151
|
+
index: bigint | TransactionArgument;
|
|
152
|
+
userShareId: bigint | TransactionArgument;
|
|
153
|
+
unsubscribedShares: bigint | TransactionArgument | TransactionArgument | null;
|
|
154
|
+
clock: TransactionObjectInput;
|
|
155
|
+
}
|
|
156
|
+
export declare function unsubscribe(tx: Transaction, typeArg: string, args: UnsubscribeArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
158
157
|
export interface UpdateIncentiveConfigArgs {
|
|
159
158
|
version: TransactionObjectInput;
|
|
160
159
|
registry: TransactionObjectInput;
|
|
@@ -164,11 +163,18 @@ export interface UpdateIncentiveConfigArgs {
|
|
|
164
163
|
incentiveIntervalTsMs: bigint | TransactionArgument | TransactionArgument | null;
|
|
165
164
|
u64Padding: Array<bigint | TransactionArgument> | TransactionArgument | TransactionArgument | null;
|
|
166
165
|
}
|
|
167
|
-
export declare function updateIncentiveConfig(tx: Transaction, typeArg: string, args: UpdateIncentiveConfigArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
166
|
+
export declare function updateIncentiveConfig(tx: Transaction, typeArg: string, args: UpdateIncentiveConfigArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
168
167
|
export interface UpdateUnlockCountdownTsMsArgs {
|
|
169
168
|
version: TransactionObjectInput;
|
|
170
169
|
registry: TransactionObjectInput;
|
|
171
170
|
index: bigint | TransactionArgument;
|
|
172
171
|
unlockCountdownTsMs: bigint | TransactionArgument;
|
|
173
172
|
}
|
|
174
|
-
export declare function updateUnlockCountdownTsMs(tx: Transaction, args: UpdateUnlockCountdownTsMsArgs): import("@mysten/sui/transactions").TransactionResult;
|
|
173
|
+
export declare function updateUnlockCountdownTsMs(tx: Transaction, args: UpdateUnlockCountdownTsMsArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|
|
174
|
+
export interface WithdrawIncentiveArgs {
|
|
175
|
+
version: TransactionObjectInput;
|
|
176
|
+
registry: TransactionObjectInput;
|
|
177
|
+
index: bigint | TransactionArgument;
|
|
178
|
+
amount: bigint | TransactionArgument | TransactionArgument | null;
|
|
179
|
+
}
|
|
180
|
+
export declare function withdrawIncentive(tx: Transaction, typeArg: string, args: WithdrawIncentiveArgs, published_at?: string): import("@mysten/sui/transactions").TransactionResult;
|