@typus/typus-sdk 1.0.0 → 1.0.2
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/package.json +3 -3
- package/lib/config.json +0 -20
- package/lib/constants.d.ts +0 -26
- package/lib/constants.js +0 -37
- package/lib/scripts/getSubVault.d.ts +0 -0
- package/lib/scripts/getSubVault.js +0 -6
- package/lib/scripts/sui.d.ts +0 -1
- package/lib/scripts/sui.js +0 -175
- package/lib/test/authorized/testAuthorizedNewPortfolioVault.d.ts +0 -1
- package/lib/test/authorized/testAuthorizedNewPortfolioVault.js +0 -82
- package/lib/test/authorized/testAuthorizedUpdateUpcomingVaultConfig.d.ts +0 -1
- package/lib/test/authorized/testAuthorizedUpdateUpcomingVaultConfig.js +0 -71
- package/lib/test/authorized/testAuthorizedUpdateWarmupVaultConfig.d.ts +0 -1
- package/lib/test/authorized/testAuthorizedUpdateWarmupVaultConfig.js +0 -68
- package/lib/test/getBidData.d.ts +0 -1
- package/lib/test/getBidData.js +0 -55
- package/lib/test/getVaultData.d.ts +0 -1
- package/lib/test/getVaultData.js +0 -55
- package/lib/test/getWhiteListFromRegistry.d.ts +0 -1
- package/lib/test/getWhiteListFromRegistry.js +0 -55
- package/lib/test/helper/getAuctionMaxSize.d.ts +0 -1
- package/lib/test/helper/getAuctionMaxSize.js +0 -76
- package/lib/test/helper/getUserStatus.d.ts +0 -1
- package/lib/test/helper/getUserStatus.js +0 -75
- package/lib/test/testCrypto.d.ts +0 -1
- package/lib/test/testCrypto.js +0 -54
- package/lib/test/testMint.d.ts +0 -1
- package/lib/test/testMint.js +0 -137
- package/lib/test/testSubscribeEvent.d.ts +0 -1
- package/lib/test/testSubscribeEvent.js +0 -97
- package/lib/test/user/testClaim.d.ts +0 -1
- package/lib/test/user/testClaim.js +0 -68
- package/lib/test/user/testCompound.d.ts +0 -1
- package/lib/test/user/testCompound.js +0 -68
- package/lib/test/user/testDeposit.d.ts +0 -1
- package/lib/test/user/testDeposit.js +0 -79
- package/lib/test/user/testHarvest.d.ts +0 -1
- package/lib/test/user/testHarvest.js +0 -68
- package/lib/test/user/testNewBid.d.ts +0 -1
- package/lib/test/user/testNewBid.js +0 -77
- package/lib/test/user/testUnsubscribe.d.ts +0 -1
- package/lib/test/user/testUnsubscribe.js +0 -69
- package/lib/test/user/testWithdraw.d.ts +0 -1
- package/lib/test/user/testWithdraw.js +0 -70
- package/lib/utils/auction/getBid.d.ts +0 -3
- package/lib/utils/auction/getBid.js +0 -78
- package/lib/utils/auction/sealedAuction.d.ts +0 -33
- package/lib/utils/auction/sealedAuction.js +0 -64
- package/lib/utils/fetchData.d.ts +0 -96
- package/lib/utils/fetchData.js +0 -34
- package/lib/utils/getMintTx.d.ts +0 -1
- package/lib/utils/getMintTx.js +0 -62
- package/lib/utils/getTypeArgumentFromToken.d.ts +0 -2
- package/lib/utils/getTypeArgumentFromToken.js +0 -69
- package/lib/utils/getVaultData.d.ts +0 -5
- package/lib/utils/getVaultData.js +0 -243
- package/lib/utils/getWhiteListFromRegistry.d.ts +0 -2
- package/lib/utils/getWhiteListFromRegistry.js +0 -70
- package/lib/utils/portfolio/authorized/getAuthorizedAddPortfolioVaultAuthorizedUserTx.d.ts +0 -4
- package/lib/utils/portfolio/authorized/getAuthorizedAddPortfolioVaultAuthorizedUserTx.js +0 -63
- package/lib/utils/portfolio/authorized/getAuthorizedDeliveryTx.d.ts +0 -1
- package/lib/utils/portfolio/authorized/getAuthorizedDeliveryTx.js +0 -61
- package/lib/utils/portfolio/authorized/getAuthorizedNewPortfolioVaultTx.d.ts +0 -38
- package/lib/utils/portfolio/authorized/getAuthorizedNewPortfolioVaultTx.js +0 -116
- package/lib/utils/portfolio/authorized/getAuthorizedRemovePortfolioVaultAuthorizedUserTx.d.ts +0 -4
- package/lib/utils/portfolio/authorized/getAuthorizedRemovePortfolioVaultAuthorizedUserTx.js +0 -63
- package/lib/utils/portfolio/authorized/getAuthorizedUpdateCapacityTx.d.ts +0 -1
- package/lib/utils/portfolio/authorized/getAuthorizedUpdateCapacityTx.js +0 -60
- package/lib/utils/portfolio/authorized/getAuthorizedUpdateUpcomingVaultConfigTx.d.ts +0 -4
- package/lib/utils/portfolio/authorized/getAuthorizedUpdateUpcomingVaultConfigTx.js +0 -70
- package/lib/utils/portfolio/authorized/getAuthorizedUpdateWarmupVaultConfigTx.d.ts +0 -1
- package/lib/utils/portfolio/authorized/getAuthorizedUpdateWarmupVaultConfigTx.js +0 -64
- package/lib/utils/portfolio/helper/getAuctionMaxSize.d.ts +0 -8
- package/lib/utils/portfolio/helper/getAuctionMaxSize.js +0 -66
- package/lib/utils/portfolio/helper/getUserStatus.d.ts +0 -29
- package/lib/utils/portfolio/helper/getUserStatus.js +0 -104
- package/lib/utils/portfolio/manager/getAddAuthorizedUserTx.d.ts +0 -8
- package/lib/utils/portfolio/manager/getAddAuthorizedUserTx.js +0 -67
- package/lib/utils/portfolio/manager/getAddPortfolioVaultAuthorizedUserTx.d.ts +0 -10
- package/lib/utils/portfolio/manager/getAddPortfolioVaultAuthorizedUserTx.js +0 -70
- package/lib/utils/portfolio/manager/getCloseAuctionTx.d.ts +0 -1
- package/lib/utils/portfolio/manager/getCloseAuctionTx.js +0 -62
- package/lib/utils/portfolio/manager/getCloseVaultTx.d.ts +0 -1
- package/lib/utils/portfolio/manager/getCloseVaultTx.js +0 -60
- package/lib/utils/portfolio/manager/getDeliveryTx.d.ts +0 -1
- package/lib/utils/portfolio/manager/getDeliveryTx.js +0 -62
- package/lib/utils/portfolio/manager/getEvolutionTx.d.ts +0 -15
- package/lib/utils/portfolio/manager/getEvolutionTx.js +0 -78
- package/lib/utils/portfolio/manager/getNewManagerTx.d.ts +0 -8
- package/lib/utils/portfolio/manager/getNewManagerTx.js +0 -66
- package/lib/utils/portfolio/manager/getNewPortfolioVaultTx.d.ts +0 -38
- package/lib/utils/portfolio/manager/getNewPortfolioVaultTx.js +0 -116
- package/lib/utils/portfolio/manager/getRemoveAuthorizedUserTx.d.ts +0 -8
- package/lib/utils/portfolio/manager/getRemoveAuthorizedUserTx.js +0 -67
- package/lib/utils/portfolio/manager/getRemoveManagerTx.d.ts +0 -6
- package/lib/utils/portfolio/manager/getRemoveManagerTx.js +0 -63
- package/lib/utils/portfolio/manager/getRemovePortfolioVaultAuthorizedUserTx.d.ts +0 -10
- package/lib/utils/portfolio/manager/getRemovePortfolioVaultAuthorizedUserTx.js +0 -70
- package/lib/utils/portfolio/manager/getUpdateCapacityTx.d.ts +0 -1
- package/lib/utils/portfolio/manager/getUpdateCapacityTx.js +0 -61
- package/lib/utils/portfolio/user/getClaimAndHarvestTx.d.ts +0 -9
- package/lib/utils/portfolio/user/getClaimAndHarvestTx.js +0 -67
- package/lib/utils/portfolio/user/getClaimTx.d.ts +0 -9
- package/lib/utils/portfolio/user/getClaimTx.js +0 -67
- package/lib/utils/portfolio/user/getCompoundTx.d.ts +0 -9
- package/lib/utils/portfolio/user/getCompoundTx.js +0 -67
- package/lib/utils/portfolio/user/getDepositTx.d.ts +0 -11
- package/lib/utils/portfolio/user/getDepositTx.js +0 -71
- package/lib/utils/portfolio/user/getHarvestTx.d.ts +0 -9
- package/lib/utils/portfolio/user/getHarvestTx.js +0 -67
- package/lib/utils/portfolio/user/getNewBidTx.d.ts +0 -13
- package/lib/utils/portfolio/user/getNewBidTx.js +0 -75
- package/lib/utils/portfolio/user/getUnsubscribeTx.d.ts +0 -10
- package/lib/utils/portfolio/user/getUnsubscribeTx.js +0 -69
- package/lib/utils/portfolio/user/getWithdrawTx.d.ts +0 -10
- package/lib/utils/portfolio/user/getWithdrawTx.js +0 -69
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getAuthorizedDeliveryTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string, priceOracle: string, timeOracle: string): Promise<any>;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.getAuthorizedDeliveryTx = void 0;
|
|
40
|
-
function getAuthorizedDeliveryTx(gasBudget, packageId, registry, typeArguments, index, priceOracle, timeOracle) {
|
|
41
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
42
|
-
var tx;
|
|
43
|
-
return __generator(this, function (_a) {
|
|
44
|
-
tx = {
|
|
45
|
-
packageObjectId: packageId,
|
|
46
|
-
module: 'portfolio',
|
|
47
|
-
function: 'authorized_delivery',
|
|
48
|
-
typeArguments: typeArguments,
|
|
49
|
-
arguments: [
|
|
50
|
-
registry,
|
|
51
|
-
index,
|
|
52
|
-
priceOracle,
|
|
53
|
-
timeOracle,
|
|
54
|
-
],
|
|
55
|
-
gasBudget: gasBudget,
|
|
56
|
-
};
|
|
57
|
-
return [2 /*return*/, tx];
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
exports.getAuthorizedDeliveryTx = getAuthorizedDeliveryTx;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* registry: & mut Registry,
|
|
3
|
-
time_oracle: & Time,
|
|
4
|
-
option_type: u64,
|
|
5
|
-
period: u8,
|
|
6
|
-
activation_ts_ms: u64,
|
|
7
|
-
expiration_ts_ms: u64,
|
|
8
|
-
d_token_decimal: u64,
|
|
9
|
-
b_token_decimal: u64,
|
|
10
|
-
o_token_decimal: u64,
|
|
11
|
-
capacity: u64,
|
|
12
|
-
strike_pct: vector<u64>,
|
|
13
|
-
weight: vector<u64>,
|
|
14
|
-
is_buyer: vector<bool>,
|
|
15
|
-
strike_increment: u64,
|
|
16
|
-
lot_size: u64,
|
|
17
|
-
decay_speed: u64,
|
|
18
|
-
initial_price: u64,
|
|
19
|
-
final_price: u64,
|
|
20
|
-
auction_duration_in_ms: u64,
|
|
21
|
-
leverage: u64,
|
|
22
|
-
has_next: bool,
|
|
23
|
-
whitelist: vector<address>,
|
|
24
|
-
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
25
|
-
*/
|
|
26
|
-
export declare function getAuthorizedNewPortfolioVaultTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], timeOracle: string, optionType: string, // u64
|
|
27
|
-
period: string, // u8
|
|
28
|
-
activationTsMs: string, // u64
|
|
29
|
-
expirationTsMs: string, // u64
|
|
30
|
-
dTokenDecimal: string, // u64
|
|
31
|
-
bTokenDecimal: string, // u64
|
|
32
|
-
oTokenDecimal: string, // u64
|
|
33
|
-
capacity: string, // u64
|
|
34
|
-
strikePct: string[], // vector<u64>
|
|
35
|
-
weight: string[], // vector<u64>
|
|
36
|
-
isBuyer: boolean[], // vector<bool>
|
|
37
|
-
strikeIncrement: string, // u64
|
|
38
|
-
lotSize: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string, whitelist: string[], leverage: string, hasNext: boolean): Promise<any>;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.getAuthorizedNewPortfolioVaultTx = void 0;
|
|
40
|
-
/**
|
|
41
|
-
* registry: & mut Registry,
|
|
42
|
-
time_oracle: & Time,
|
|
43
|
-
option_type: u64,
|
|
44
|
-
period: u8,
|
|
45
|
-
activation_ts_ms: u64,
|
|
46
|
-
expiration_ts_ms: u64,
|
|
47
|
-
d_token_decimal: u64,
|
|
48
|
-
b_token_decimal: u64,
|
|
49
|
-
o_token_decimal: u64,
|
|
50
|
-
capacity: u64,
|
|
51
|
-
strike_pct: vector<u64>,
|
|
52
|
-
weight: vector<u64>,
|
|
53
|
-
is_buyer: vector<bool>,
|
|
54
|
-
strike_increment: u64,
|
|
55
|
-
lot_size: u64,
|
|
56
|
-
decay_speed: u64,
|
|
57
|
-
initial_price: u64,
|
|
58
|
-
final_price: u64,
|
|
59
|
-
auction_duration_in_ms: u64,
|
|
60
|
-
leverage: u64,
|
|
61
|
-
has_next: bool,
|
|
62
|
-
whitelist: vector<address>,
|
|
63
|
-
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
64
|
-
*/
|
|
65
|
-
function getAuthorizedNewPortfolioVaultTx(gasBudget, packageId, registry, typeArguments, timeOracle, optionType, // u64
|
|
66
|
-
period, // u8
|
|
67
|
-
activationTsMs, // u64
|
|
68
|
-
expirationTsMs, // u64
|
|
69
|
-
dTokenDecimal, // u64
|
|
70
|
-
bTokenDecimal, // u64
|
|
71
|
-
oTokenDecimal, // u64
|
|
72
|
-
capacity, // u64
|
|
73
|
-
strikePct, // vector<u64>
|
|
74
|
-
weight, // vector<u64>
|
|
75
|
-
isBuyer, // vector<bool>
|
|
76
|
-
strikeIncrement, // u64
|
|
77
|
-
lotSize, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, leverage, hasNext) {
|
|
78
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
79
|
-
var tx;
|
|
80
|
-
return __generator(this, function (_a) {
|
|
81
|
-
tx = {
|
|
82
|
-
packageObjectId: packageId,
|
|
83
|
-
module: 'portfolio',
|
|
84
|
-
function: 'authorized_new_portfolio_vault',
|
|
85
|
-
typeArguments: typeArguments,
|
|
86
|
-
arguments: [
|
|
87
|
-
registry,
|
|
88
|
-
timeOracle,
|
|
89
|
-
optionType,
|
|
90
|
-
period,
|
|
91
|
-
activationTsMs,
|
|
92
|
-
expirationTsMs,
|
|
93
|
-
dTokenDecimal,
|
|
94
|
-
bTokenDecimal,
|
|
95
|
-
oTokenDecimal,
|
|
96
|
-
capacity,
|
|
97
|
-
strikePct,
|
|
98
|
-
weight,
|
|
99
|
-
isBuyer,
|
|
100
|
-
strikeIncrement,
|
|
101
|
-
lotSize,
|
|
102
|
-
decaySpeed,
|
|
103
|
-
initialPrice,
|
|
104
|
-
finalPrice,
|
|
105
|
-
auctionDurationInMs,
|
|
106
|
-
leverage,
|
|
107
|
-
hasNext,
|
|
108
|
-
whitelist,
|
|
109
|
-
],
|
|
110
|
-
gasBudget: gasBudget,
|
|
111
|
-
};
|
|
112
|
-
return [2 /*return*/, tx];
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
exports.getAuthorizedNewPortfolioVaultTx = getAuthorizedNewPortfolioVaultTx;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.getAuthorizedRemovePortfolioVaultAuthorizedUserTx = void 0;
|
|
40
|
-
/**
|
|
41
|
-
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
42
|
-
*/
|
|
43
|
-
function getAuthorizedRemovePortfolioVaultAuthorizedUserTx(gasBudget, packageId, registry, typeArguments, index, addresses) {
|
|
44
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
45
|
-
var tx;
|
|
46
|
-
return __generator(this, function (_a) {
|
|
47
|
-
tx = {
|
|
48
|
-
packageObjectId: packageId,
|
|
49
|
-
module: 'portfolio',
|
|
50
|
-
function: 'authorized_remove_portfolio_vault_authorized_user',
|
|
51
|
-
typeArguments: typeArguments,
|
|
52
|
-
arguments: [
|
|
53
|
-
registry,
|
|
54
|
-
index,
|
|
55
|
-
addresses,
|
|
56
|
-
],
|
|
57
|
-
gasBudget: gasBudget,
|
|
58
|
-
};
|
|
59
|
-
return [2 /*return*/, tx];
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
exports.getAuthorizedRemovePortfolioVaultAuthorizedUserTx = getAuthorizedRemovePortfolioVaultAuthorizedUserTx;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getAuthorizedUpdateCapacityTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, index: string, capacity: string): Promise<any>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.getAuthorizedUpdateCapacityTx = void 0;
|
|
40
|
-
function getAuthorizedUpdateCapacityTx(gasBudget, packageId, typeArguments, registry, index, capacity) {
|
|
41
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
42
|
-
var tx;
|
|
43
|
-
return __generator(this, function (_a) {
|
|
44
|
-
tx = {
|
|
45
|
-
packageObjectId: packageId,
|
|
46
|
-
module: 'portfolio',
|
|
47
|
-
function: 'authorized_update_capacity',
|
|
48
|
-
typeArguments: typeArguments,
|
|
49
|
-
arguments: [
|
|
50
|
-
registry,
|
|
51
|
-
index,
|
|
52
|
-
capacity
|
|
53
|
-
],
|
|
54
|
-
gasBudget: gasBudget,
|
|
55
|
-
};
|
|
56
|
-
return [2 /*return*/, tx];
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
exports.getAuthorizedUpdateCapacityTx = getAuthorizedUpdateCapacityTx;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function getAuthorizedUpdateUpcomingVaultConfigTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string, strikePct: string[], // vector<u64>
|
|
2
|
-
weight: string[], // vector<u64>
|
|
3
|
-
isBuyer: boolean[], // vector<bool>
|
|
4
|
-
strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.getAuthorizedUpdateUpcomingVaultConfigTx = void 0;
|
|
40
|
-
function getAuthorizedUpdateUpcomingVaultConfigTx(gasBudget, packageId, registry, typeArguments, index, strikePct, // vector<u64>
|
|
41
|
-
weight, // vector<u64>
|
|
42
|
-
isBuyer, // vector<bool>
|
|
43
|
-
strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
|
|
44
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
45
|
-
var tx;
|
|
46
|
-
return __generator(this, function (_a) {
|
|
47
|
-
tx = {
|
|
48
|
-
packageObjectId: packageId,
|
|
49
|
-
module: 'portfolio',
|
|
50
|
-
function: 'authorized_update_upcoming_vault_config',
|
|
51
|
-
typeArguments: typeArguments,
|
|
52
|
-
arguments: [
|
|
53
|
-
registry,
|
|
54
|
-
index,
|
|
55
|
-
strikePct,
|
|
56
|
-
weight,
|
|
57
|
-
isBuyer,
|
|
58
|
-
strikeIncrement,
|
|
59
|
-
decaySpeed,
|
|
60
|
-
initialPrice,
|
|
61
|
-
finalPrice,
|
|
62
|
-
auctionDurationInMs,
|
|
63
|
-
],
|
|
64
|
-
gasBudget: gasBudget,
|
|
65
|
-
};
|
|
66
|
-
return [2 /*return*/, tx];
|
|
67
|
-
});
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
exports.getAuthorizedUpdateUpcomingVaultConfigTx = getAuthorizedUpdateUpcomingVaultConfigTx;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getAuthorizedUpdateWarmupVaultConfigTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, index: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.getAuthorizedUpdateWarmupVaultConfigTx = void 0;
|
|
40
|
-
function getAuthorizedUpdateWarmupVaultConfigTx(gasBudget, packageId, typeArguments, registry, index, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
|
|
41
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
42
|
-
var tx;
|
|
43
|
-
return __generator(this, function (_a) {
|
|
44
|
-
tx = {
|
|
45
|
-
packageObjectId: packageId,
|
|
46
|
-
module: 'portfolio',
|
|
47
|
-
function: 'authorized_update_warmup_vault_config',
|
|
48
|
-
typeArguments: typeArguments,
|
|
49
|
-
arguments: [
|
|
50
|
-
registry,
|
|
51
|
-
index,
|
|
52
|
-
strikeIncrement,
|
|
53
|
-
decaySpeed,
|
|
54
|
-
initialPrice,
|
|
55
|
-
finalPrice,
|
|
56
|
-
auctionDurationInMs,
|
|
57
|
-
],
|
|
58
|
-
gasBudget: gasBudget,
|
|
59
|
-
};
|
|
60
|
-
return [2 /*return*/, tx];
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
exports.getAuthorizedUpdateWarmupVaultConfigTx = getAuthorizedUpdateWarmupVaultConfigTx;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
public fun get_auction_max_size<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
3
|
-
registry: &Registry,
|
|
4
|
-
index: u64,
|
|
5
|
-
price_oracle: &Oracle<O_TOKEN>,
|
|
6
|
-
): u64
|
|
7
|
-
*/
|
|
8
|
-
export declare function getAuctionMaxSize(packageId: string, typeArguments: string[], registry: string, index: string, priceOracle: string): Promise<any>;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.getAuctionMaxSize = void 0;
|
|
40
|
-
/**
|
|
41
|
-
public fun get_auction_max_size<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
42
|
-
registry: &Registry,
|
|
43
|
-
index: u64,
|
|
44
|
-
price_oracle: &Oracle<O_TOKEN>,
|
|
45
|
-
): u64
|
|
46
|
-
*/
|
|
47
|
-
function getAuctionMaxSize(packageId, typeArguments, registry, index, priceOracle) {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
49
|
-
var tx;
|
|
50
|
-
return __generator(this, function (_a) {
|
|
51
|
-
tx = {
|
|
52
|
-
packageObjectId: packageId,
|
|
53
|
-
module: 'portfolio',
|
|
54
|
-
function: 'get_auction_max_size',
|
|
55
|
-
typeArguments: typeArguments,
|
|
56
|
-
arguments: [
|
|
57
|
-
registry,
|
|
58
|
-
index,
|
|
59
|
-
priceOracle,
|
|
60
|
-
],
|
|
61
|
-
};
|
|
62
|
-
return [2 /*return*/, tx];
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
exports.getAuctionMaxSize = getAuctionMaxSize;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
struct GetUserStatusResult has copy, drop {
|
|
3
|
-
active: u64,
|
|
4
|
-
deactivating: u64,
|
|
5
|
-
inactive: u64,
|
|
6
|
-
warmup: u64,
|
|
7
|
-
bidder: u64,
|
|
8
|
-
premium: u64,
|
|
9
|
-
performance_fee: u64,
|
|
10
|
-
}
|
|
11
|
-
public fun get_user_status<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
12
|
-
registry: &Registry,
|
|
13
|
-
index: u64,
|
|
14
|
-
user: address,
|
|
15
|
-
): GetUserStatusResult
|
|
16
|
-
*/
|
|
17
|
-
export declare function getUserStatus(packageId: string, typeArguments: string[], registry: string, index: string, userAddress: string): Promise<any>;
|
|
18
|
-
interface GetUserStatusResult {
|
|
19
|
-
active: number;
|
|
20
|
-
deactivating: number;
|
|
21
|
-
inactive: number;
|
|
22
|
-
warmup: number;
|
|
23
|
-
bidder: number;
|
|
24
|
-
premium: number;
|
|
25
|
-
performance_fee: number;
|
|
26
|
-
}
|
|
27
|
-
export declare function parseUserStatusResult(rawData: Uint8Array): GetUserStatusResult;
|
|
28
|
-
export declare function intFromBytes(x: any): number;
|
|
29
|
-
export {};
|