@typus/typus-sdk 1.0.21 → 1.0.23
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/lib/constants.d.ts +0 -1
- package/lib/constants.js +3 -3
- package/lib/utils/portfolio/multiple-collateral/authorized-entry.d.ts +102 -0
- package/lib/utils/portfolio/multiple-collateral/authorized-entry.js +295 -0
- package/lib/utils/portfolio/multiple-collateral/manager-entry.d.ts +219 -0
- package/lib/utils/portfolio/multiple-collateral/manager-entry.js +584 -0
- package/lib/utils/portfolio/multiple-collateral/portfolio-vault.js +4 -4
- package/lib/utils/portfolio/multiple-collateral/user-entry.d.ts +84 -0
- package/lib/utils/portfolio/multiple-collateral/user-entry.js +271 -0
- package/lib/utils/portfolio/single-collateral/getLeaderBoard.d.ts +2 -2
- package/lib/utils/portfolio/single-collateral/getLeaderBoard.js +30 -10
- package/lib/utils/portfolio/single-collateral/portfolio-vault.js +3 -3
- package/lib/utils/typus-framework/dutch.d.ts +2 -0
- package/lib/utils/typus-framework/dutch.js +65 -1
- package/lib/utils/typus-framework/vault.d.ts +2 -0
- package/lib/utils/typus-framework/vault.js +4 -0
- package/package.json +1 -1
- package/lib/mnemonic.json +0 -3
- package/lib/scripts/getSubVault.d.ts +0 -0
- package/lib/scripts/getSubVault.js +0 -6
- package/lib/test/faucet.d.ts +0 -1
- package/lib/test/faucet.js +0 -53
- package/lib/test/getUserInfo.d.ts +0 -1
- package/lib/test/getUserInfo.js +0 -46
- package/lib/test/mergeCoins.d.ts +0 -1
- package/lib/test/mergeCoins.js +0 -76
- package/lib/test/multiple-collateral/getAuctionMaxSize.d.ts +0 -1
- package/lib/test/multiple-collateral/getAuctionMaxSize.js +0 -62
- package/lib/test/multiple-collateral/getMaxLossPerUnit.d.ts +0 -1
- package/lib/test/multiple-collateral/getMaxLossPerUnit.js +0 -62
- package/lib/test/multiple-collateral/getPortfolioVaults.d.ts +0 -1
- package/lib/test/multiple-collateral/getPortfolioVaults.js +0 -62
- package/lib/test/multiple-collateral/getUserShares.d.ts +0 -1
- package/lib/test/multiple-collateral/getUserShares.js +0 -59
- package/lib/test/single-collateral/authorized/testAuthorizedNewPortfolioVault.d.ts +0 -1
- package/lib/test/single-collateral/authorized/testAuthorizedNewPortfolioVault.js +0 -88
- package/lib/test/single-collateral/authorized/testAuthorizedUpdateUpcomingVaultConfig.d.ts +0 -1
- package/lib/test/single-collateral/authorized/testAuthorizedUpdateUpcomingVaultConfig.js +0 -77
- package/lib/test/single-collateral/authorized/testAuthorizedUpdateWarmupVaultConfig.d.ts +0 -1
- package/lib/test/single-collateral/authorized/testAuthorizedUpdateWarmupVaultConfig.js +0 -74
- package/lib/test/single-collateral/getAuctionMaxSize.d.ts +0 -1
- package/lib/test/single-collateral/getAuctionMaxSize.js +0 -62
- package/lib/test/single-collateral/getBidData.d.ts +0 -1
- package/lib/test/single-collateral/getBidData.js +0 -62
- package/lib/test/single-collateral/getMaxLossPerUnit.d.ts +0 -1
- package/lib/test/single-collateral/getMaxLossPerUnit.js +0 -62
- package/lib/test/single-collateral/getPortfolioVaults.d.ts +0 -1
- package/lib/test/single-collateral/getPortfolioVaults.js +0 -57
- package/lib/test/single-collateral/getUserShares.d.ts +0 -1
- package/lib/test/single-collateral/getUserShares.js +0 -59
- package/lib/test/single-collateral/getVaultData.d.ts +0 -1
- package/lib/test/single-collateral/getVaultData.js +0 -56
- package/lib/test/single-collateral/getWhiteListFromRegistry.d.ts +0 -1
- package/lib/test/single-collateral/getWhiteListFromRegistry.js +0 -55
- package/lib/test/single-collateral/helper/getAuctionMaxSize.d.ts +0 -1
- package/lib/test/single-collateral/helper/getAuctionMaxSize.js +0 -62
- package/lib/test/single-collateral/helper/getUserStatus.d.ts +0 -1
- package/lib/test/single-collateral/helper/getUserStatus.js +0 -58
- package/lib/test/single-collateral/testCrypto.d.ts +0 -1
- package/lib/test/single-collateral/testCrypto.js +0 -54
- package/lib/test/single-collateral/testMint.d.ts +0 -1
- package/lib/test/single-collateral/testMint.js +0 -147
- package/lib/test/single-collateral/testSDK.d.ts +0 -1
- package/lib/test/single-collateral/testSDK.js +0 -74
- package/lib/test/single-collateral/testSubscribeEvent.d.ts +0 -1
- package/lib/test/single-collateral/testSubscribeEvent.js +0 -82
- package/lib/test/single-collateral/user/testClaim.d.ts +0 -1
- package/lib/test/single-collateral/user/testClaim.js +0 -68
- package/lib/test/single-collateral/user/testCompound.d.ts +0 -1
- package/lib/test/single-collateral/user/testCompound.js +0 -68
- package/lib/test/single-collateral/user/testDeposit.d.ts +0 -1
- package/lib/test/single-collateral/user/testDeposit.js +0 -85
- package/lib/test/single-collateral/user/testHarvest.d.ts +0 -1
- package/lib/test/single-collateral/user/testHarvest.js +0 -68
- package/lib/test/single-collateral/user/testNewBid.d.ts +0 -1
- package/lib/test/single-collateral/user/testNewBid.js +0 -83
- package/lib/test/single-collateral/user/testUnsubscribe.d.ts +0 -1
- package/lib/test/single-collateral/user/testUnsubscribe.js +0 -72
- package/lib/test/single-collateral/user/testWithdraw.d.ts +0 -1
- package/lib/test/single-collateral/user/testWithdraw.js +0 -71
- package/lib/test/sponsorTransaction.d.ts +0 -1
- package/lib/test/sponsorTransaction.js +0 -130
package/lib/constants.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ export declare const PRICE_DECIMAL = 8;
|
|
|
20
20
|
export declare const TOKEN_DECIMAL = 9;
|
|
21
21
|
export declare const DEFAULT_TYPE_ARGUMENT = "0x2::sui::SUI";
|
|
22
22
|
export declare const FAKE_TOKEN_TYPE_ARGUMENT = "0x27b3674c685046f66cad1d5496d2967894fa5329::token::USDC";
|
|
23
|
-
export declare const TEST_MNEMONIC: string;
|
|
24
23
|
export declare const TOKEN_NAME: string[];
|
|
25
24
|
export declare const TOKEN_NAME_TO_MODULE: {
|
|
26
25
|
BTC: string;
|
package/lib/constants.js
CHANGED
|
@@ -3,10 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PERFORMANCE_FEE_SUB_VAULT_TAG = exports.PREMIUM_SUB_VAULT_TAG = exports.BIDDER_SUB_VAULT_TAG = exports.WARMUP_SUB_VAULT_TAG = exports.INACTIVE_SUB_VAULT_TAG = exports.DEACTIVATING_SUB_VAULT_TAG = exports.ACTIVE_SUB_VAULT_TAG = exports.testnetConnection = exports.TOKEN_NAME_TO_MODULE = exports.TOKEN_NAME = exports.
|
|
6
|
+
exports.PERFORMANCE_FEE_SUB_VAULT_TAG = exports.PREMIUM_SUB_VAULT_TAG = exports.BIDDER_SUB_VAULT_TAG = exports.WARMUP_SUB_VAULT_TAG = exports.INACTIVE_SUB_VAULT_TAG = exports.DEACTIVATING_SUB_VAULT_TAG = exports.ACTIVE_SUB_VAULT_TAG = exports.testnetConnection = exports.TOKEN_NAME_TO_MODULE = exports.TOKEN_NAME = exports.FAKE_TOKEN_TYPE_ARGUMENT = exports.DEFAULT_TYPE_ARGUMENT = exports.TOKEN_DECIMAL = exports.PRICE_DECIMAL = exports.TEST_MINT_TOKEN = exports.SINGLE_COLLATERAL_BID_VAULT_REGISTRY = exports.SINGLE_COLLATERAL_DEPOSIT_VAULT_REGISTRY = exports.MODULE = exports.REGISTRY = exports.PORTFOLIO_PACKAGE = exports.DOGE_ORACLE = exports.APT_ORACLE = exports.SUI_ORACLE = exports.ETH_ORACLE = exports.BTC_ORACLE = exports.SENDER = exports.CLOCK = exports.TIME_ORACLE = exports.ORACLE_PACKAGE = exports.TOKEN_REGISTRY_SUI = exports.TOKEN_PACKAGE = void 0;
|
|
7
7
|
var sui_js_1 = require("@mysten/sui.js");
|
|
8
8
|
var config_json_1 = __importDefault(require("./config.json"));
|
|
9
|
-
|
|
9
|
+
// import .env file if exists
|
|
10
|
+
// dotenv.config({ path: path.resolve(__dirname, ".env") });
|
|
10
11
|
//publish from sui-dev-token
|
|
11
12
|
exports.TOKEN_PACKAGE = config_json_1.default.TOKEN_PACKAGE;
|
|
12
13
|
exports.TOKEN_REGISTRY_SUI = "0x3b87b3f0403f527d28fd1301074a12446f43817a";
|
|
@@ -33,7 +34,6 @@ exports.PRICE_DECIMAL = 8;
|
|
|
33
34
|
exports.TOKEN_DECIMAL = 9;
|
|
34
35
|
exports.DEFAULT_TYPE_ARGUMENT = "0x2::sui::SUI";
|
|
35
36
|
exports.FAKE_TOKEN_TYPE_ARGUMENT = "0x27b3674c685046f66cad1d5496d2967894fa5329::token::USDC";
|
|
36
|
-
exports.TEST_MNEMONIC = mnemonic_json_1.default.MNEMONIC;
|
|
37
37
|
exports.TOKEN_NAME = ["BTC", "ETH", "SUI", "USDC", "USDT", "APT", "DOGE"];
|
|
38
38
|
exports.TOKEN_NAME_TO_MODULE = {
|
|
39
39
|
BTC: "btc",
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { TransactionBlock } from "@mysten/sui.js";
|
|
2
|
+
/**
|
|
3
|
+
public(friend) entry fun authorized_add_portfolio_vault_authorized_user<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
4
|
+
registry: &mut Registry,
|
|
5
|
+
index: u64,
|
|
6
|
+
users: vector<address>,
|
|
7
|
+
ctx: &mut TxContext,
|
|
8
|
+
)
|
|
9
|
+
*/
|
|
10
|
+
export declare function getAuthorizedAddPortfolioVaultAuthorizedUserTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, index: string, users: string[]): Promise<TransactionBlock>;
|
|
11
|
+
/**
|
|
12
|
+
public(friend) entry fun authorized_remove_portfolio_vault_authorized_user<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
13
|
+
registry: &mut Registry,
|
|
14
|
+
index: u64,
|
|
15
|
+
users: vector<address>,
|
|
16
|
+
ctx: &mut TxContext,
|
|
17
|
+
)
|
|
18
|
+
*/
|
|
19
|
+
export declare function getAuthorizedRemovePortfolioVaultAuthorizedUserTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, index: string, users: string[]): Promise<TransactionBlock>;
|
|
20
|
+
/**
|
|
21
|
+
public(friend) entry fun authorized_new_portfolio_vault<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
22
|
+
registry: &mut Registry,
|
|
23
|
+
price_oracle: &Oracle<O_TOKEN>,
|
|
24
|
+
clock: &Clock,
|
|
25
|
+
strategy_name: String,
|
|
26
|
+
period: u8,
|
|
27
|
+
activation_ts_ms: u64,
|
|
28
|
+
expiration_ts_ms: u64,
|
|
29
|
+
o_token_decimal: u64,
|
|
30
|
+
u_token_decimal: u64,
|
|
31
|
+
b_token_decimal: u64,
|
|
32
|
+
capacity: u64,
|
|
33
|
+
call_strike_pct: vector<u64>,
|
|
34
|
+
call_weight: vector<u64>,
|
|
35
|
+
call_is_buyer: vector<bool>,
|
|
36
|
+
put_strike_pct: vector<u64>,
|
|
37
|
+
put_weight: vector<u64>,
|
|
38
|
+
put_is_buyer: vector<bool>,
|
|
39
|
+
strike_increment: u64,
|
|
40
|
+
lot_size: u64,
|
|
41
|
+
decay_speed: u64,
|
|
42
|
+
initial_price: u64,
|
|
43
|
+
final_price: u64,
|
|
44
|
+
auction_duration_in_ms: u64,
|
|
45
|
+
leverage: u64,
|
|
46
|
+
has_next: bool,
|
|
47
|
+
whitelist: vector<address>,
|
|
48
|
+
ctx: &mut TxContext
|
|
49
|
+
)
|
|
50
|
+
*/
|
|
51
|
+
export declare function getAuthorizedNewPortfolioVaultTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, priceOracle: string, strategy_name: String, period: string, activation_ts_ms: string, expiration_ts_ms: string, o_token_decimal: string, u_token_decimal: string, b_token_decimal: string, capacity: string, call_strike_pct: string[], call_weight: string[], call_is_buyer: boolean[], put_strike_pct: string[], put_weight: string[], put_is_buyer: boolean[], strike_increment: string, lot_size: string, decay_speed: string, initial_price: string, final_price: string, auction_duration_in_ms: string, leverage: string, has_next: boolean, whitelist: string[]): Promise<TransactionBlock>;
|
|
52
|
+
/**
|
|
53
|
+
public(friend) entry fun authorized_update_capacity<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
54
|
+
registry: &mut Registry,
|
|
55
|
+
index: u64,
|
|
56
|
+
capacity: u64,
|
|
57
|
+
ctx: &mut TxContext,
|
|
58
|
+
)
|
|
59
|
+
*/
|
|
60
|
+
export declare function getAuthorizedUpdateCapacityTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, index: string, capacity: string): Promise<TransactionBlock>;
|
|
61
|
+
/**
|
|
62
|
+
public(friend) entry fun authorized_update_warmup_vault_config<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
63
|
+
registry: &mut Registry,
|
|
64
|
+
index: u64,
|
|
65
|
+
strike_increment: u64,
|
|
66
|
+
decay_speed: u64,
|
|
67
|
+
initial_price: u64,
|
|
68
|
+
final_price: u64,
|
|
69
|
+
auction_duration_in_ms: u64,
|
|
70
|
+
ctx: &mut TxContext,
|
|
71
|
+
)
|
|
72
|
+
*/
|
|
73
|
+
export declare function getAuthorizedUpdateWarmupVaultConfigTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, index: string, strike_increment: string, decay_speed: string, initial_price: string, final_price: string, auction_duration_in_ms: string): Promise<TransactionBlock>;
|
|
74
|
+
/**
|
|
75
|
+
public(friend) entry fun authorized_update_upcoming_vault_config<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
76
|
+
registry: &mut Registry,
|
|
77
|
+
index: u64,
|
|
78
|
+
call_strike_pct: vector<u64>,
|
|
79
|
+
call_weight: vector<u64>,
|
|
80
|
+
call_is_buyer: vector<bool>,
|
|
81
|
+
put_strike_pct: vector<u64>,
|
|
82
|
+
put_weight: vector<u64>,
|
|
83
|
+
put_is_buyer: vector<bool>,
|
|
84
|
+
strike_increment: u64,
|
|
85
|
+
decay_speed: u64,
|
|
86
|
+
initial_price: u64,
|
|
87
|
+
final_price: u64,
|
|
88
|
+
auction_duration_in_ms: u64,
|
|
89
|
+
ctx: &mut TxContext,
|
|
90
|
+
)
|
|
91
|
+
*/
|
|
92
|
+
export declare function getAuthorizedUpdateUpcomingVaultConfigTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, index: string, call_strike_pct: string[], call_weight: string[], call_is_buyer: boolean[], put_strike_pct: string[], put_weight: string[], put_is_buyer: boolean[], strike_increment: string, decay_speed: string, initial_price: string, final_price: string, auction_duration_in_ms: string): Promise<TransactionBlock>;
|
|
93
|
+
/**
|
|
94
|
+
public(friend) entry fun authorized_delivery<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
95
|
+
registry: &mut Registry,
|
|
96
|
+
index: u64,
|
|
97
|
+
price_oracle: &Oracle<O_TOKEN>,
|
|
98
|
+
clock: &Clock,
|
|
99
|
+
ctx: &mut TxContext
|
|
100
|
+
)
|
|
101
|
+
*/
|
|
102
|
+
export declare function getAuthorizedDeliveryTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, index: string, priceOracle: string): Promise<TransactionBlock>;
|
|
@@ -0,0 +1,295 @@
|
|
|
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 = exports.getAuthorizedUpdateUpcomingVaultConfigTx = exports.getAuthorizedUpdateWarmupVaultConfigTx = exports.getAuthorizedUpdateCapacityTx = exports.getAuthorizedNewPortfolioVaultTx = exports.getAuthorizedRemovePortfolioVaultAuthorizedUserTx = exports.getAuthorizedAddPortfolioVaultAuthorizedUserTx = void 0;
|
|
40
|
+
var sui_js_1 = require("@mysten/sui.js");
|
|
41
|
+
/**
|
|
42
|
+
public(friend) entry fun authorized_add_portfolio_vault_authorized_user<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
43
|
+
registry: &mut Registry,
|
|
44
|
+
index: u64,
|
|
45
|
+
users: vector<address>,
|
|
46
|
+
ctx: &mut TxContext,
|
|
47
|
+
)
|
|
48
|
+
*/
|
|
49
|
+
function getAuthorizedAddPortfolioVaultAuthorizedUserTx(gasBudget, packageId, typeArguments, registry, index, users) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
51
|
+
var tx;
|
|
52
|
+
return __generator(this, function (_a) {
|
|
53
|
+
tx = new sui_js_1.TransactionBlock();
|
|
54
|
+
tx.moveCall({
|
|
55
|
+
target: "".concat(packageId, "::multiple_collateral::authorized_add_portfolio_vault_authorized_user"),
|
|
56
|
+
typeArguments: typeArguments,
|
|
57
|
+
arguments: [tx.pure(registry), tx.pure(index), tx.pure(users)],
|
|
58
|
+
});
|
|
59
|
+
tx.setGasBudget(gasBudget);
|
|
60
|
+
return [2 /*return*/, tx];
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
exports.getAuthorizedAddPortfolioVaultAuthorizedUserTx = getAuthorizedAddPortfolioVaultAuthorizedUserTx;
|
|
65
|
+
/**
|
|
66
|
+
public(friend) entry fun authorized_remove_portfolio_vault_authorized_user<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
67
|
+
registry: &mut Registry,
|
|
68
|
+
index: u64,
|
|
69
|
+
users: vector<address>,
|
|
70
|
+
ctx: &mut TxContext,
|
|
71
|
+
)
|
|
72
|
+
*/
|
|
73
|
+
function getAuthorizedRemovePortfolioVaultAuthorizedUserTx(gasBudget, packageId, typeArguments, registry, index, users) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
75
|
+
var tx;
|
|
76
|
+
return __generator(this, function (_a) {
|
|
77
|
+
tx = new sui_js_1.TransactionBlock();
|
|
78
|
+
tx.moveCall({
|
|
79
|
+
target: "".concat(packageId, "::multiple_collateral::authorized_remove_portfolio_vault_authorized_user"),
|
|
80
|
+
typeArguments: typeArguments,
|
|
81
|
+
arguments: [tx.pure(registry), tx.pure(index), tx.pure(users)],
|
|
82
|
+
});
|
|
83
|
+
tx.setGasBudget(gasBudget);
|
|
84
|
+
return [2 /*return*/, tx];
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
exports.getAuthorizedRemovePortfolioVaultAuthorizedUserTx = getAuthorizedRemovePortfolioVaultAuthorizedUserTx;
|
|
89
|
+
/**
|
|
90
|
+
public(friend) entry fun authorized_new_portfolio_vault<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
91
|
+
registry: &mut Registry,
|
|
92
|
+
price_oracle: &Oracle<O_TOKEN>,
|
|
93
|
+
clock: &Clock,
|
|
94
|
+
strategy_name: String,
|
|
95
|
+
period: u8,
|
|
96
|
+
activation_ts_ms: u64,
|
|
97
|
+
expiration_ts_ms: u64,
|
|
98
|
+
o_token_decimal: u64,
|
|
99
|
+
u_token_decimal: u64,
|
|
100
|
+
b_token_decimal: u64,
|
|
101
|
+
capacity: u64,
|
|
102
|
+
call_strike_pct: vector<u64>,
|
|
103
|
+
call_weight: vector<u64>,
|
|
104
|
+
call_is_buyer: vector<bool>,
|
|
105
|
+
put_strike_pct: vector<u64>,
|
|
106
|
+
put_weight: vector<u64>,
|
|
107
|
+
put_is_buyer: vector<bool>,
|
|
108
|
+
strike_increment: u64,
|
|
109
|
+
lot_size: u64,
|
|
110
|
+
decay_speed: u64,
|
|
111
|
+
initial_price: u64,
|
|
112
|
+
final_price: u64,
|
|
113
|
+
auction_duration_in_ms: u64,
|
|
114
|
+
leverage: u64,
|
|
115
|
+
has_next: bool,
|
|
116
|
+
whitelist: vector<address>,
|
|
117
|
+
ctx: &mut TxContext
|
|
118
|
+
)
|
|
119
|
+
*/
|
|
120
|
+
function getAuthorizedNewPortfolioVaultTx(gasBudget, packageId, typeArguments, registry, priceOracle, strategy_name, period, activation_ts_ms, expiration_ts_ms, o_token_decimal, u_token_decimal, b_token_decimal, capacity, call_strike_pct, call_weight, call_is_buyer, put_strike_pct, put_weight, put_is_buyer, strike_increment, lot_size, decay_speed, initial_price, final_price, auction_duration_in_ms, leverage, has_next, whitelist) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
122
|
+
var tx;
|
|
123
|
+
return __generator(this, function (_a) {
|
|
124
|
+
tx = new sui_js_1.TransactionBlock();
|
|
125
|
+
tx.moveCall({
|
|
126
|
+
target: "".concat(packageId, "::multiple_collateral::authorized_new_portfolio_vault"),
|
|
127
|
+
typeArguments: typeArguments,
|
|
128
|
+
arguments: [
|
|
129
|
+
tx.pure(registry),
|
|
130
|
+
tx.pure(priceOracle),
|
|
131
|
+
tx.pure("0x6"),
|
|
132
|
+
tx.pure(strategy_name),
|
|
133
|
+
tx.pure(period),
|
|
134
|
+
tx.pure(activation_ts_ms),
|
|
135
|
+
tx.pure(expiration_ts_ms),
|
|
136
|
+
tx.pure(o_token_decimal),
|
|
137
|
+
tx.pure(u_token_decimal),
|
|
138
|
+
tx.pure(b_token_decimal),
|
|
139
|
+
tx.pure(capacity),
|
|
140
|
+
tx.pure(call_strike_pct),
|
|
141
|
+
tx.pure(call_weight),
|
|
142
|
+
tx.pure(call_is_buyer),
|
|
143
|
+
tx.pure(put_strike_pct),
|
|
144
|
+
tx.pure(put_weight),
|
|
145
|
+
tx.pure(put_is_buyer),
|
|
146
|
+
tx.pure(strike_increment),
|
|
147
|
+
tx.pure(lot_size),
|
|
148
|
+
tx.pure(decay_speed),
|
|
149
|
+
tx.pure(initial_price),
|
|
150
|
+
tx.pure(final_price),
|
|
151
|
+
tx.pure(auction_duration_in_ms),
|
|
152
|
+
tx.pure(leverage),
|
|
153
|
+
tx.pure(has_next),
|
|
154
|
+
tx.pure(whitelist),
|
|
155
|
+
],
|
|
156
|
+
});
|
|
157
|
+
tx.setGasBudget(gasBudget);
|
|
158
|
+
return [2 /*return*/, tx];
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
exports.getAuthorizedNewPortfolioVaultTx = getAuthorizedNewPortfolioVaultTx;
|
|
163
|
+
/**
|
|
164
|
+
public(friend) entry fun authorized_update_capacity<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
165
|
+
registry: &mut Registry,
|
|
166
|
+
index: u64,
|
|
167
|
+
capacity: u64,
|
|
168
|
+
ctx: &mut TxContext,
|
|
169
|
+
)
|
|
170
|
+
*/
|
|
171
|
+
function getAuthorizedUpdateCapacityTx(gasBudget, packageId, typeArguments, registry, index, capacity) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
173
|
+
var tx;
|
|
174
|
+
return __generator(this, function (_a) {
|
|
175
|
+
tx = new sui_js_1.TransactionBlock();
|
|
176
|
+
tx.moveCall({
|
|
177
|
+
target: "".concat(packageId, "::multiple_collateral::authorized_update_capacity"),
|
|
178
|
+
typeArguments: typeArguments,
|
|
179
|
+
arguments: [tx.pure(registry), tx.pure(index), tx.pure(capacity)],
|
|
180
|
+
});
|
|
181
|
+
tx.setGasBudget(gasBudget);
|
|
182
|
+
return [2 /*return*/, tx];
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
exports.getAuthorizedUpdateCapacityTx = getAuthorizedUpdateCapacityTx;
|
|
187
|
+
/**
|
|
188
|
+
public(friend) entry fun authorized_update_warmup_vault_config<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
189
|
+
registry: &mut Registry,
|
|
190
|
+
index: u64,
|
|
191
|
+
strike_increment: u64,
|
|
192
|
+
decay_speed: u64,
|
|
193
|
+
initial_price: u64,
|
|
194
|
+
final_price: u64,
|
|
195
|
+
auction_duration_in_ms: u64,
|
|
196
|
+
ctx: &mut TxContext,
|
|
197
|
+
)
|
|
198
|
+
*/
|
|
199
|
+
function getAuthorizedUpdateWarmupVaultConfigTx(gasBudget, packageId, typeArguments, registry, index, strike_increment, decay_speed, initial_price, final_price, auction_duration_in_ms) {
|
|
200
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
201
|
+
var tx;
|
|
202
|
+
return __generator(this, function (_a) {
|
|
203
|
+
tx = new sui_js_1.TransactionBlock();
|
|
204
|
+
tx.moveCall({
|
|
205
|
+
target: "".concat(packageId, "::multiple_collateral::authorized_update_warmup_vault_config"),
|
|
206
|
+
typeArguments: typeArguments,
|
|
207
|
+
arguments: [
|
|
208
|
+
tx.pure(registry),
|
|
209
|
+
tx.pure(index),
|
|
210
|
+
tx.pure(strike_increment),
|
|
211
|
+
tx.pure(decay_speed),
|
|
212
|
+
tx.pure(initial_price),
|
|
213
|
+
tx.pure(final_price),
|
|
214
|
+
tx.pure(auction_duration_in_ms),
|
|
215
|
+
],
|
|
216
|
+
});
|
|
217
|
+
tx.setGasBudget(gasBudget);
|
|
218
|
+
return [2 /*return*/, tx];
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
exports.getAuthorizedUpdateWarmupVaultConfigTx = getAuthorizedUpdateWarmupVaultConfigTx;
|
|
223
|
+
/**
|
|
224
|
+
public(friend) entry fun authorized_update_upcoming_vault_config<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
225
|
+
registry: &mut Registry,
|
|
226
|
+
index: u64,
|
|
227
|
+
call_strike_pct: vector<u64>,
|
|
228
|
+
call_weight: vector<u64>,
|
|
229
|
+
call_is_buyer: vector<bool>,
|
|
230
|
+
put_strike_pct: vector<u64>,
|
|
231
|
+
put_weight: vector<u64>,
|
|
232
|
+
put_is_buyer: vector<bool>,
|
|
233
|
+
strike_increment: u64,
|
|
234
|
+
decay_speed: u64,
|
|
235
|
+
initial_price: u64,
|
|
236
|
+
final_price: u64,
|
|
237
|
+
auction_duration_in_ms: u64,
|
|
238
|
+
ctx: &mut TxContext,
|
|
239
|
+
)
|
|
240
|
+
*/
|
|
241
|
+
function getAuthorizedUpdateUpcomingVaultConfigTx(gasBudget, packageId, typeArguments, registry, index, call_strike_pct, call_weight, call_is_buyer, put_strike_pct, put_weight, put_is_buyer, strike_increment, decay_speed, initial_price, final_price, auction_duration_in_ms) {
|
|
242
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
243
|
+
var tx;
|
|
244
|
+
return __generator(this, function (_a) {
|
|
245
|
+
tx = new sui_js_1.TransactionBlock();
|
|
246
|
+
tx.moveCall({
|
|
247
|
+
target: "".concat(packageId, "::multiple_collateral::authorized_update_upcoming_vault_config"),
|
|
248
|
+
typeArguments: typeArguments,
|
|
249
|
+
arguments: [
|
|
250
|
+
tx.pure(registry),
|
|
251
|
+
tx.pure(index),
|
|
252
|
+
tx.pure(call_strike_pct),
|
|
253
|
+
tx.pure(call_weight),
|
|
254
|
+
tx.pure(call_is_buyer),
|
|
255
|
+
tx.pure(put_strike_pct),
|
|
256
|
+
tx.pure(put_weight),
|
|
257
|
+
tx.pure(put_is_buyer),
|
|
258
|
+
tx.pure(strike_increment),
|
|
259
|
+
tx.pure(decay_speed),
|
|
260
|
+
tx.pure(initial_price),
|
|
261
|
+
tx.pure(final_price),
|
|
262
|
+
tx.pure(auction_duration_in_ms),
|
|
263
|
+
],
|
|
264
|
+
});
|
|
265
|
+
tx.setGasBudget(gasBudget);
|
|
266
|
+
return [2 /*return*/, tx];
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
exports.getAuthorizedUpdateUpcomingVaultConfigTx = getAuthorizedUpdateUpcomingVaultConfigTx;
|
|
271
|
+
/**
|
|
272
|
+
public(friend) entry fun authorized_delivery<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
273
|
+
registry: &mut Registry,
|
|
274
|
+
index: u64,
|
|
275
|
+
price_oracle: &Oracle<O_TOKEN>,
|
|
276
|
+
clock: &Clock,
|
|
277
|
+
ctx: &mut TxContext
|
|
278
|
+
)
|
|
279
|
+
*/
|
|
280
|
+
function getAuthorizedDeliveryTx(gasBudget, packageId, typeArguments, registry, index, priceOracle) {
|
|
281
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
282
|
+
var tx;
|
|
283
|
+
return __generator(this, function (_a) {
|
|
284
|
+
tx = new sui_js_1.TransactionBlock();
|
|
285
|
+
tx.moveCall({
|
|
286
|
+
target: "".concat(packageId, "::multiple_collateral::authorized_delivery"),
|
|
287
|
+
typeArguments: typeArguments,
|
|
288
|
+
arguments: [tx.pure(registry), tx.pure(index), tx.pure(priceOracle), tx.pure("0x6")],
|
|
289
|
+
});
|
|
290
|
+
tx.setGasBudget(gasBudget);
|
|
291
|
+
return [2 /*return*/, tx];
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
exports.getAuthorizedDeliveryTx = getAuthorizedDeliveryTx;
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { TransactionBlock } from "@mysten/sui.js";
|
|
2
|
+
/**
|
|
3
|
+
public(friend) entry fun new_manager(
|
|
4
|
+
_manager_cap: &ManagerCap,
|
|
5
|
+
users: vector<address>,
|
|
6
|
+
ctx: &mut TxContext
|
|
7
|
+
)
|
|
8
|
+
*/
|
|
9
|
+
export declare function getNewManagerTx(gasBudget: number, packageId: string, managerCap: string, users: string[]): Promise<TransactionBlock>;
|
|
10
|
+
/**
|
|
11
|
+
public(friend) entry fun remove_manager(
|
|
12
|
+
_manager_cap: &ManagerCap,
|
|
13
|
+
users: vector<address>,
|
|
14
|
+
ctx: &mut TxContext
|
|
15
|
+
)
|
|
16
|
+
*/
|
|
17
|
+
export declare function getRemoveManagerTx(gasBudget: number, packageId: string, managerCap: string): Promise<TransactionBlock>;
|
|
18
|
+
/**
|
|
19
|
+
public(friend) entry fun add_authorized_user(
|
|
20
|
+
manager_cap: &ManagerCap,
|
|
21
|
+
registry: &mut Registry,
|
|
22
|
+
users: vector<address>,
|
|
23
|
+
ctx: &TxContext,
|
|
24
|
+
)
|
|
25
|
+
*/
|
|
26
|
+
export declare function getAddAuthorizedUserTx(gasBudget: number, packageId: string, managerCap: string, registry: string, users: string[]): Promise<TransactionBlock>;
|
|
27
|
+
/**
|
|
28
|
+
public(friend) entry fun remove_authorized_user(
|
|
29
|
+
manager_cap: &ManagerCap,
|
|
30
|
+
registry: &mut Registry,
|
|
31
|
+
users: vector<address>,
|
|
32
|
+
ctx: &TxContext,
|
|
33
|
+
)
|
|
34
|
+
*/
|
|
35
|
+
export declare function getRemoveAuthorizedUserTx(gasBudget: number, packageId: string, managerCap: string, registry: string, users: string[]): Promise<TransactionBlock>;
|
|
36
|
+
/**
|
|
37
|
+
public(friend) entry fun add_portfolio_vault_authorized_user<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
38
|
+
manager_cap: &ManagerCap,
|
|
39
|
+
registry: &mut Registry,
|
|
40
|
+
index: u64,
|
|
41
|
+
users: vector<address>,
|
|
42
|
+
ctx: &TxContext,
|
|
43
|
+
)
|
|
44
|
+
*/
|
|
45
|
+
export declare function getAddPortfolioVaultAuthorizedUserTx(gasBudget: number, packageId: string, typeArguments: string[], managerCap: string, registry: string, index: string, users: string[]): Promise<TransactionBlock>;
|
|
46
|
+
/**
|
|
47
|
+
public(friend) entry fun remove_portfolio_vault_authorized_user<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
48
|
+
manager_cap: &ManagerCap,
|
|
49
|
+
registry: &mut Registry,
|
|
50
|
+
index: u64,
|
|
51
|
+
users: vector<address>,
|
|
52
|
+
ctx: &TxContext,
|
|
53
|
+
)
|
|
54
|
+
*/
|
|
55
|
+
export declare function getRemovePortfolioVaultAuthorizedUserTx(gasBudget: number, packageId: string, typeArguments: string[], managerCap: string, registry: string, index: string, users: string[]): Promise<TransactionBlock>;
|
|
56
|
+
/**
|
|
57
|
+
public(friend) entry fun update_restrict_activation_time_period(
|
|
58
|
+
_manager_cap: &ManagerCap,
|
|
59
|
+
registry: &mut Registry,
|
|
60
|
+
from_ts_ms: u64,
|
|
61
|
+
to_ts_ms: u64,
|
|
62
|
+
ctx: &TxContext,
|
|
63
|
+
)
|
|
64
|
+
*/
|
|
65
|
+
export declare function getUpdateRestrictActivationTimePeriodTx(gasBudget: number, packageId: string, managerCap: string, registry: string, from_ts_ms: string, to_ts_ms: string): Promise<TransactionBlock>;
|
|
66
|
+
/**
|
|
67
|
+
public(friend) entry fun new_portfolio_vault<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
68
|
+
manager_cap: &ManagerCap,
|
|
69
|
+
registry: &mut Registry,
|
|
70
|
+
price_oracle: &Oracle<O_TOKEN>,
|
|
71
|
+
clock: &Clock,
|
|
72
|
+
strategy_name: String,
|
|
73
|
+
period: u8,
|
|
74
|
+
activation_ts_ms: u64,
|
|
75
|
+
expiration_ts_ms: u64,
|
|
76
|
+
o_token_decimal: u64,
|
|
77
|
+
u_token_decimal: u64,
|
|
78
|
+
b_token_decimal: u64,
|
|
79
|
+
capacity: u64,
|
|
80
|
+
call_strike_pct: vector<u64>,
|
|
81
|
+
call_weight: vector<u64>,
|
|
82
|
+
call_is_buyer: vector<bool>,
|
|
83
|
+
put_strike_pct: vector<u64>,
|
|
84
|
+
put_weight: vector<u64>,
|
|
85
|
+
put_is_buyer: vector<bool>,
|
|
86
|
+
strike_increment: u64,
|
|
87
|
+
lot_size: u64,
|
|
88
|
+
decay_speed: u64,
|
|
89
|
+
initial_price: u64,
|
|
90
|
+
final_price: u64,
|
|
91
|
+
auction_duration_in_ms: u64,
|
|
92
|
+
leverage: u64,
|
|
93
|
+
has_next: bool,
|
|
94
|
+
whitelist: vector<address>,
|
|
95
|
+
ctx: &mut TxContext
|
|
96
|
+
)
|
|
97
|
+
*/
|
|
98
|
+
export declare function getNewPortfolioVaultTx(gasBudget: number, packageId: string, typeArguments: string[], managerCap: string, registry: string, priceOracle: string, strategy_name: String, period: string, activation_ts_ms: string, expiration_ts_ms: string, o_token_decimal: string, u_token_decimal: string, b_token_decimal: string, capacity: string, call_strike_pct: string[], call_weight: string[], call_is_buyer: boolean[], put_strike_pct: string[], put_weight: string[], put_is_buyer: boolean[], strike_increment: string, lot_size: string, decay_speed: string, initial_price: string, final_price: string, auction_duration_in_ms: string, leverage: string, has_next: boolean, whitelist: string[]): Promise<TransactionBlock>;
|
|
99
|
+
/**
|
|
100
|
+
public(friend) entry fun update_capacity<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
101
|
+
_manager_cap: &ManagerCap,
|
|
102
|
+
registry: &mut Registry,
|
|
103
|
+
index: u64,
|
|
104
|
+
capacity: u64,
|
|
105
|
+
ctx: &TxContext,
|
|
106
|
+
)
|
|
107
|
+
*/
|
|
108
|
+
export declare function getUpdateCapacityTx(gasBudget: number, packageId: string, typeArguments: string[], managerCap: string, registry: string, index: string, capacity: string): Promise<TransactionBlock>;
|
|
109
|
+
/**
|
|
110
|
+
public(friend) entry fun update_warmup_vault_config<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
111
|
+
_manager_cap: &ManagerCap,
|
|
112
|
+
registry: &mut Registry,
|
|
113
|
+
index: u64,
|
|
114
|
+
strike_increment: u64,
|
|
115
|
+
decay_speed: u64,
|
|
116
|
+
initial_price: u64,
|
|
117
|
+
final_price: u64,
|
|
118
|
+
auction_duration_in_ms: u64,
|
|
119
|
+
ctx: &TxContext,
|
|
120
|
+
)
|
|
121
|
+
*/
|
|
122
|
+
export declare function getUpdateWarmupVaultConfigTx(gasBudget: number, packageId: string, typeArguments: string[], managerCap: string, registry: string, index: string, strike_increment: string, decay_speed: string, initial_price: string, final_price: string, auction_duration_in_ms: string): Promise<TransactionBlock>;
|
|
123
|
+
/**
|
|
124
|
+
public(friend) entry fun update_upcoming_vault_config<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
125
|
+
_manager_cap: &ManagerCap,
|
|
126
|
+
registry: &mut Registry,
|
|
127
|
+
index: u64,
|
|
128
|
+
call_strike_pct: vector<u64>,
|
|
129
|
+
call_weight: vector<u64>,
|
|
130
|
+
call_is_buyer: vector<bool>,
|
|
131
|
+
put_strike_pct: vector<u64>,
|
|
132
|
+
put_weight: vector<u64>,
|
|
133
|
+
put_is_buyer: vector<bool>,
|
|
134
|
+
strike_increment: u64,
|
|
135
|
+
decay_speed: u64,
|
|
136
|
+
initial_price: u64,
|
|
137
|
+
final_price: u64,
|
|
138
|
+
auction_duration_in_ms: u64,
|
|
139
|
+
ctx: &TxContext,
|
|
140
|
+
)
|
|
141
|
+
*/
|
|
142
|
+
export declare function getUpdateUpcomingVaultConfigTx(gasBudget: number, packageId: string, typeArguments: string[], managerCap: string, registry: string, index: string, call_strike_pct: string[], call_weight: string[], call_is_buyer: boolean[], put_strike_pct: string[], put_weight: string[], put_is_buyer: boolean[], strike_increment: string, decay_speed: string, initial_price: string, final_price: string, auction_duration_in_ms: string): Promise<TransactionBlock>;
|
|
143
|
+
/**
|
|
144
|
+
public(friend) entry fun delivery<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
145
|
+
manager_cap: &ManagerCap,
|
|
146
|
+
registry: &mut Registry,
|
|
147
|
+
index: u64,
|
|
148
|
+
price_oracle: &Oracle<O_TOKEN>,
|
|
149
|
+
clock: &Clock,
|
|
150
|
+
ctx: &mut TxContext
|
|
151
|
+
)
|
|
152
|
+
*/
|
|
153
|
+
export declare function getDeliveryTx(gasBudget: number, packageId: string, typeArguments: string[], managerCap: string, registry: string, index: string, priceOracle: string): Promise<TransactionBlock>;
|
|
154
|
+
/**
|
|
155
|
+
public(friend) entry fun evolution<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
156
|
+
manager_cap: &ManagerCap,
|
|
157
|
+
registry: &mut Registry,
|
|
158
|
+
index: u64,
|
|
159
|
+
price_oracle: &Oracle<O_TOKEN>,
|
|
160
|
+
clock: &Clock,
|
|
161
|
+
ctx: &mut TxContext,
|
|
162
|
+
)
|
|
163
|
+
*/
|
|
164
|
+
export declare function getEvolutionTx(gasBudget: number, packageId: string, typeArguments: string[], managerCap: string, registry: string, index: string, priceOracle: string): Promise<TransactionBlock>;
|
|
165
|
+
/**
|
|
166
|
+
public(friend) entry fun close<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
167
|
+
_manager_cap: &ManagerCap,
|
|
168
|
+
registry: &mut Registry,
|
|
169
|
+
index: u64,
|
|
170
|
+
ctx: &TxContext,
|
|
171
|
+
)
|
|
172
|
+
*/
|
|
173
|
+
export declare function getCloseTx(gasBudget: number, packageId: string, typeArguments: string[], managerCap: string, registry: string, index: string): Promise<TransactionBlock>;
|
|
174
|
+
/**
|
|
175
|
+
public(friend) entry fun update_active_vault_config<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
176
|
+
_manager_cap: &ManagerCap,
|
|
177
|
+
registry: &mut Registry,
|
|
178
|
+
index: u64,
|
|
179
|
+
strike_increment: u64,
|
|
180
|
+
decay_speed: u64,
|
|
181
|
+
initial_price: u64,
|
|
182
|
+
final_price: u64,
|
|
183
|
+
auction_duration_in_ms: u64,
|
|
184
|
+
ctx: &TxContext,
|
|
185
|
+
)
|
|
186
|
+
*/
|
|
187
|
+
export declare function getUpdateActiveVaultConfigTx(gasBudget: number, packageId: string, typeArguments: string[], managerCap: string, registry: string, index: string, strike_increment: string, decay_speed: string, initial_price: string, final_price: string, auction_duration_in_ms: string): Promise<TransactionBlock>;
|
|
188
|
+
/**
|
|
189
|
+
public(friend) entry fun new_auction<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
190
|
+
manager_cap: &ManagerCap,
|
|
191
|
+
registry: &mut Registry,
|
|
192
|
+
index: u64,
|
|
193
|
+
start_ts_ms: u64,
|
|
194
|
+
price_oracle: &Oracle<O_TOKEN>,
|
|
195
|
+
clock: &Clock,
|
|
196
|
+
ctx: &mut TxContext,
|
|
197
|
+
)
|
|
198
|
+
*/
|
|
199
|
+
export declare function getNewAuctionTx(gasBudget: number, packageId: string, typeArguments: string[], managerCap: string, registry: string, index: string, start_ts_ms: string, price_oracle: string): Promise<TransactionBlock>;
|
|
200
|
+
/**
|
|
201
|
+
public(friend) entry fun terminate_vault<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
202
|
+
manager_cap: &ManagerCap,
|
|
203
|
+
registry: &mut Registry,
|
|
204
|
+
index: u64,
|
|
205
|
+
clock: &Clock,
|
|
206
|
+
ctx: &mut TxContext,
|
|
207
|
+
)
|
|
208
|
+
*/
|
|
209
|
+
export declare function getTerminateVaultTx(gasBudget: number, packageId: string, typeArguments: string[], managerCap: string, registry: string, index: string): Promise<TransactionBlock>;
|
|
210
|
+
/**
|
|
211
|
+
public(friend) entry fun terminate_auction<O_TOKEN, U_TOKEN, B_TOKEN>(
|
|
212
|
+
manager_cap: &ManagerCap,
|
|
213
|
+
registry: &mut Registry,
|
|
214
|
+
index: u64,
|
|
215
|
+
clock: &Clock,
|
|
216
|
+
ctx: &mut TxContext,
|
|
217
|
+
)
|
|
218
|
+
*/
|
|
219
|
+
export declare function getTerminateAuctionTx(gasBudget: number, packageId: string, typeArguments: string[], managerCap: string, registry: string, index: string): Promise<TransactionBlock>;
|