@typus/typus-sdk 0.5.5 → 0.5.7
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/scripts/sui.js +4 -4
- package/lib/test/eventListener.js +1 -1
- package/lib/test/getBidData.js +1 -1
- package/lib/test/getMakersShares.js +1 -1
- package/lib/test/getUsersShares.js +1 -1
- package/lib/test/getVaultData.js +1 -1
- package/lib/test/testClaim.js +5 -4
- package/lib/test/testCrypto.js +1 -1
- package/lib/test/testDeposit.js +4 -3
- package/lib/test/testDepositV2.js +4 -2
- package/lib/test/testMint.js +4 -3
- package/lib/test/testNewAuction.js +4 -3
- package/lib/test/testNewVault.js +4 -3
- package/lib/test/testOracle.js +5 -4
- package/lib/test/testSettle.js +11 -10
- package/lib/test/testSubscribeEvent.js +1 -1
- package/lib/test/testUnsubscribe.js +4 -3
- package/lib/test/testWithdraw.js +4 -3
- package/lib/utils/auction/getBid.js +1 -1
- package/lib/utils/authorized/getAuthorizedAddAuthorizedUserTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedAddAuthorizedUserTx.js +3 -3
- package/lib/utils/authorized/getAuthorizedAddCoveredCallVaultAuthorizedUserTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedAddCoveredCallVaultAuthorizedUserTx.js +3 -3
- package/lib/utils/authorized/getAuthorizedDeliveryTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedDeliveryTx.js +3 -3
- package/lib/utils/authorized/getAuthorizedEvolutionTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedEvolutionTx.js +3 -3
- package/lib/utils/authorized/getAuthorizedLastEvolutionTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedLastEvolutionTx.js +3 -3
- package/lib/utils/authorized/getAuthorizedNewAuctionTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedNewAuctionTx.js +3 -3
- package/lib/utils/authorized/getAuthorizedNewCoveredCallVaultTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedNewCoveredCallVaultTx.js +3 -3
- package/lib/utils/authorized/getAuthorizedRemoveAuthorizedUserTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedRemoveAuthorizedUserTx.js +3 -3
- package/lib/utils/authorized/getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx.js +3 -3
- package/lib/utils/authorized/getAuthorizedSettleTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedSettleTx.js +3 -3
- package/lib/utils/authorized/getAuthorizedUpdateCapacityTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedUpdateCapacityTx.js +3 -3
- package/lib/utils/authorized/getAuthorizedUpdateNextVaultConfigTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedUpdateNextVaultConfigTx.js +3 -3
- package/lib/utils/authorized/getAuthorizedUpdateVaultConfigTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedUpdateVaultConfigTx.js +3 -3
- package/lib/utils/coveredCall/createPriceOracle.js +4 -3
- package/lib/utils/coveredCall/createTimeOracle.js +4 -3
- package/lib/utils/coveredCall/getAddCoveredCallVaultAuthorizedUserTx.d.ts +1 -1
- package/lib/utils/coveredCall/getAddCoveredCallVaultAuthorizedUserTx.js +3 -3
- package/lib/utils/coveredCall/getClaimAllTx.d.ts +1 -1
- package/lib/utils/coveredCall/getClaimAllTx.js +3 -3
- package/lib/utils/coveredCall/getClaimTx.d.ts +1 -1
- package/lib/utils/coveredCall/getClaimTx.js +3 -3
- package/lib/utils/coveredCall/getCloseAuctionTx.d.ts +1 -1
- package/lib/utils/coveredCall/getCloseAuctionTx.js +3 -3
- package/lib/utils/coveredCall/getCloseVaultTx.d.ts +1 -1
- package/lib/utils/coveredCall/getCloseVaultTx.js +3 -3
- package/lib/utils/coveredCall/getDeliveryTx.d.ts +1 -1
- package/lib/utils/coveredCall/getDeliveryTx.js +3 -3
- package/lib/utils/coveredCall/getDepositTx.d.ts +1 -1
- package/lib/utils/coveredCall/getDepositTx.js +3 -3
- package/lib/utils/coveredCall/getEvolutionTx.d.ts +1 -1
- package/lib/utils/coveredCall/getEvolutionTx.js +3 -3
- package/lib/utils/coveredCall/getLastEvolutionTx.d.ts +1 -1
- package/lib/utils/coveredCall/getLastEvolutionTx.js +3 -3
- package/lib/utils/coveredCall/getMakerClaimAllTx.d.ts +1 -1
- package/lib/utils/coveredCall/getMakerClaimAllTx.js +3 -3
- package/lib/utils/coveredCall/getMakerClaimTx.d.ts +1 -1
- package/lib/utils/coveredCall/getMakerClaimTx.js +3 -3
- package/lib/utils/coveredCall/getNewAuctionTx.d.ts +1 -1
- package/lib/utils/coveredCall/getNewAuctionTx.js +3 -3
- package/lib/utils/coveredCall/getNewAuctionWithNextCoveredCallVaultTx.d.ts +1 -1
- package/lib/utils/coveredCall/getNewAuctionWithNextCoveredCallVaultTx.js +3 -3
- package/lib/utils/coveredCall/getNewBidTx.d.ts +1 -1
- package/lib/utils/coveredCall/getNewBidTx.js +3 -3
- package/lib/utils/coveredCall/getNewCoveredCallVaultTx.d.ts +1 -1
- package/lib/utils/coveredCall/getNewCoveredCallVaultTx.js +3 -3
- package/lib/utils/coveredCall/getNewManagerTx.d.ts +1 -1
- package/lib/utils/coveredCall/getNewManagerTx.js +3 -3
- package/lib/utils/coveredCall/getRefundTx.d.ts +1 -1
- package/lib/utils/coveredCall/getRefundTx.js +3 -3
- package/lib/utils/coveredCall/getRemoveBidTx.d.ts +1 -1
- package/lib/utils/coveredCall/getRemoveBidTx.js +3 -3
- package/lib/utils/coveredCall/getRemoveCoveredCallVaultAuthorizedUserTx.d.ts +1 -1
- package/lib/utils/coveredCall/getRemoveCoveredCallVaultAuthorizedUserTx.js +3 -3
- package/lib/utils/coveredCall/getRemoveManagerTx.d.ts +1 -1
- package/lib/utils/coveredCall/getRemoveManagerTx.js +3 -3
- package/lib/utils/coveredCall/getRollOverTx.d.ts +1 -1
- package/lib/utils/coveredCall/getRollOverTx.js +3 -3
- package/lib/utils/coveredCall/getSettleTx.d.ts +1 -1
- package/lib/utils/coveredCall/getSettleTx.js +3 -3
- package/lib/utils/coveredCall/getSettleWithRollOverTx.d.ts +1 -1
- package/lib/utils/coveredCall/getSettleWithRollOverTx.js +3 -3
- package/lib/utils/coveredCall/getSubscribeTx.d.ts +1 -1
- package/lib/utils/coveredCall/getSubscribeTx.js +3 -3
- package/lib/utils/coveredCall/getUnsubscribeTx.d.ts +1 -1
- package/lib/utils/coveredCall/getUnsubscribeTx.js +3 -3
- package/lib/utils/coveredCall/getUpdateCapacityTx.d.ts +1 -1
- package/lib/utils/coveredCall/getUpdateCapacityTx.js +3 -3
- package/lib/utils/coveredCall/getUpdateNextVaultConfigTx.d.ts +1 -1
- package/lib/utils/coveredCall/getUpdateNextVaultConfigTx.js +3 -3
- package/lib/utils/coveredCall/getUpdatePayoffConfigTx.d.ts +1 -1
- package/lib/utils/coveredCall/getUpdatePayoffConfigTx.js +3 -3
- package/lib/utils/coveredCall/getUpdateVaultConfigTx.d.ts +1 -1
- package/lib/utils/coveredCall/getUpdateVaultConfigTx.js +3 -3
- package/lib/utils/coveredCall/getWithdrawTx.d.ts +1 -1
- package/lib/utils/coveredCall/getWithdrawTx.js +3 -3
- package/lib/utils/fetchData.js +1 -1
- package/lib/utils/getCreateTokenRegistryTx.d.ts +1 -1
- package/lib/utils/getCreateTokenRegistryTx.js +3 -3
- package/lib/utils/getMakersShares.js +1 -1
- package/lib/utils/getMintTx.d.ts +1 -1
- package/lib/utils/getMintTx.js +3 -3
- package/lib/utils/getNewOracleTx.d.ts +1 -1
- package/lib/utils/getNewOracleTx.js +3 -3
- package/lib/utils/getNewTimeOracleTx.d.ts +1 -1
- package/lib/utils/getNewTimeOracleTx.js +3 -3
- package/lib/utils/getTypeArgumentFromToken.js +1 -1
- package/lib/utils/getUpdateOracleTx.d.ts +1 -1
- package/lib/utils/getUpdateOracleTx.js +3 -3
- package/lib/utils/getUpdateTimeOracleTx.d.ts +1 -1
- package/lib/utils/getUpdateTimeOracleTx.js +3 -3
- package/lib/utils/getUsersShares.js +1 -1
- package/lib/utils/getVaultData.js +1 -1
- package/lib/utils/getVaultIndexInRegistry.js +1 -1
- package/lib/utils/loadUsersDepositData.js +28 -31
- package/package.json +2 -2
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getAuthorizedEvolutionTx = void 0;
|
|
40
|
-
function getAuthorizedEvolutionTx(packageId, registry, typeArgument, index, priceOracle, timeOracle, activationTsMs, expirationTsMs) {
|
|
40
|
+
function getAuthorizedEvolutionTx(gasBudget, packageId, registry, typeArgument, index, priceOracle, timeOracle, activationTsMs, expirationTsMs) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -47,7 +47,7 @@ function getAuthorizedEvolutionTx(packageId, registry, typeArgument, index, pric
|
|
|
47
47
|
function: 'authorized_evolution',
|
|
48
48
|
typeArguments: [typeArgument],
|
|
49
49
|
arguments: [registry, index, priceOracle, timeOracle, activationTsMs, expirationTsMs],
|
|
50
|
-
gasBudget:
|
|
50
|
+
gasBudget: gasBudget,
|
|
51
51
|
};
|
|
52
52
|
return [2 /*return*/, tx];
|
|
53
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getAuthorizedLastEvolutionTx(packageId: string, registry: string, typeArgument: string, index: string, priceOracle: string, timeOracle: string, expirationTsMs: string): Promise<any>;
|
|
1
|
+
export declare function getAuthorizedLastEvolutionTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string, priceOracle: string, timeOracle: string, expirationTsMs: string): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getAuthorizedLastEvolutionTx = void 0;
|
|
40
|
-
function getAuthorizedLastEvolutionTx(packageId, registry, typeArgument, index, priceOracle, timeOracle, expirationTsMs) {
|
|
40
|
+
function getAuthorizedLastEvolutionTx(gasBudget, packageId, registry, typeArgument, index, priceOracle, timeOracle, expirationTsMs) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -47,7 +47,7 @@ function getAuthorizedLastEvolutionTx(packageId, registry, typeArgument, index,
|
|
|
47
47
|
function: 'authorized_last_evolution',
|
|
48
48
|
typeArguments: [typeArgument],
|
|
49
49
|
arguments: [registry, index, priceOracle, timeOracle, expirationTsMs],
|
|
50
|
-
gasBudget:
|
|
50
|
+
gasBudget: gasBudget,
|
|
51
51
|
};
|
|
52
52
|
return [2 /*return*/, tx];
|
|
53
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getNewAuctionTx(packageId: string, registry: string, typeArgument: string, index: string, priceOracle: string, timeOracle: string): Promise<any>;
|
|
1
|
+
export declare function getNewAuctionTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string, priceOracle: string, timeOracle: string): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getNewAuctionTx = void 0;
|
|
40
|
-
function getNewAuctionTx(packageId, registry, typeArgument, index, priceOracle, timeOracle) {
|
|
40
|
+
function getNewAuctionTx(gasBudget, packageId, registry, typeArgument, index, priceOracle, timeOracle) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -47,7 +47,7 @@ function getNewAuctionTx(packageId, registry, typeArgument, index, priceOracle,
|
|
|
47
47
|
function: 'authorized_new_auction',
|
|
48
48
|
typeArguments: [typeArgument],
|
|
49
49
|
arguments: [registry, index, priceOracle, timeOracle],
|
|
50
|
-
gasBudget:
|
|
50
|
+
gasBudget: gasBudget,
|
|
51
51
|
};
|
|
52
52
|
return [2 /*return*/, tx];
|
|
53
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getAuthorizedNewCoveredCallVaultTx(packageId: string, registry: string, typeArgument: string, managerCap: string, timeOracle: string, period: string, activationTsMs: string, expirationTsMs: string, tokenDecimal: string, shareDecimal: string, capacity: string, strikeOtmPct: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string, whitelist: string[], leverage: string): Promise<any>;
|
|
1
|
+
export declare function getAuthorizedNewCoveredCallVaultTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, managerCap: string, timeOracle: string, period: string, activationTsMs: string, expirationTsMs: string, tokenDecimal: string, shareDecimal: string, capacity: string, strikeOtmPct: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string, whitelist: string[], leverage: string): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getAuthorizedNewCoveredCallVaultTx = void 0;
|
|
40
|
-
function getAuthorizedNewCoveredCallVaultTx(packageId, registry, typeArgument, managerCap, timeOracle, period, activationTsMs, expirationTsMs, tokenDecimal, shareDecimal, capacity, strikeOtmPct, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, leverage) {
|
|
40
|
+
function getAuthorizedNewCoveredCallVaultTx(gasBudget, packageId, registry, typeArgument, managerCap, timeOracle, period, activationTsMs, expirationTsMs, tokenDecimal, shareDecimal, capacity, strikeOtmPct, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, leverage) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -64,7 +64,7 @@ function getAuthorizedNewCoveredCallVaultTx(packageId, registry, typeArgument, m
|
|
|
64
64
|
leverage,
|
|
65
65
|
whitelist,
|
|
66
66
|
],
|
|
67
|
-
gasBudget:
|
|
67
|
+
gasBudget: gasBudget,
|
|
68
68
|
};
|
|
69
69
|
return [2 /*return*/, tx];
|
|
70
70
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getAuthorizedRemoveAuthorizedUserTx(packageId: string, registry: string, managerCap: string, address: string): Promise<any>;
|
|
1
|
+
export declare function getAuthorizedRemoveAuthorizedUserTx(gasBudget: string, packageId: string, registry: string, managerCap: string, address: string): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getAuthorizedRemoveAuthorizedUserTx = void 0;
|
|
40
|
-
function getAuthorizedRemoveAuthorizedUserTx(packageId, registry, managerCap, address) {
|
|
40
|
+
function getAuthorizedRemoveAuthorizedUserTx(gasBudget, packageId, registry, managerCap, address) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -47,7 +47,7 @@ function getAuthorizedRemoveAuthorizedUserTx(packageId, registry, managerCap, ad
|
|
|
47
47
|
function: 'remove_authorized_user',
|
|
48
48
|
typeArguments: [],
|
|
49
49
|
arguments: [managerCap, registry, address],
|
|
50
|
-
gasBudget:
|
|
50
|
+
gasBudget: gasBudget,
|
|
51
51
|
};
|
|
52
52
|
return [2 /*return*/, tx];
|
|
53
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx(packageId: string, registry: string, typeArgument: string, index: string, address: string): Promise<any>;
|
|
1
|
+
export declare function getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string, address: string): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx = void 0;
|
|
40
|
-
function getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx(packageId, registry, typeArgument, index, address) {
|
|
40
|
+
function getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx(gasBudget, packageId, registry, typeArgument, index, address) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -47,7 +47,7 @@ function getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx(packageId, registry
|
|
|
47
47
|
function: 'authorized_remove_covered_call_vault_authorized_user',
|
|
48
48
|
typeArguments: [typeArgument],
|
|
49
49
|
arguments: [registry, index, address],
|
|
50
|
-
gasBudget:
|
|
50
|
+
gasBudget: gasBudget,
|
|
51
51
|
};
|
|
52
52
|
return [2 /*return*/, tx];
|
|
53
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getAuthorizedSettleTx(packageId: string, registry: string, typeArgument: string, index: string, priceOracle: string, timeOracle: string): Promise<any>;
|
|
1
|
+
export declare function getAuthorizedSettleTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string, priceOracle: string, timeOracle: string): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getAuthorizedSettleTx = void 0;
|
|
40
|
-
function getAuthorizedSettleTx(packageId, registry, typeArgument, index, priceOracle, timeOracle) {
|
|
40
|
+
function getAuthorizedSettleTx(gasBudget, packageId, registry, typeArgument, index, priceOracle, timeOracle) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -47,7 +47,7 @@ function getAuthorizedSettleTx(packageId, registry, typeArgument, index, priceOr
|
|
|
47
47
|
function: 'authorized_settle',
|
|
48
48
|
typeArguments: [typeArgument],
|
|
49
49
|
arguments: [registry, index, priceOracle, timeOracle],
|
|
50
|
-
gasBudget:
|
|
50
|
+
gasBudget: gasBudget,
|
|
51
51
|
};
|
|
52
52
|
return [2 /*return*/, tx];
|
|
53
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getAuthorizedUpdateCapacityTx(packageId: string, typeArgument: string, registry: string, index: string, capacity: string): Promise<any>;
|
|
1
|
+
export declare function getAuthorizedUpdateCapacityTx(gasBudget: string, packageId: string, typeArgument: string, registry: string, index: string, capacity: string): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getAuthorizedUpdateCapacityTx = void 0;
|
|
40
|
-
function getAuthorizedUpdateCapacityTx(packageId, typeArgument, registry, index, capacity) {
|
|
40
|
+
function getAuthorizedUpdateCapacityTx(gasBudget, packageId, typeArgument, registry, index, capacity) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -47,7 +47,7 @@ function getAuthorizedUpdateCapacityTx(packageId, typeArgument, registry, index,
|
|
|
47
47
|
function: 'authorized_update_capacity',
|
|
48
48
|
typeArguments: [typeArgument],
|
|
49
49
|
arguments: [registry, index, capacity],
|
|
50
|
-
gasBudget:
|
|
50
|
+
gasBudget: gasBudget,
|
|
51
51
|
};
|
|
52
52
|
return [2 /*return*/, tx];
|
|
53
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getUpdateNextVaultConfigTx(packageId: string, registry: string, typeArgument: string, index: string, strikeOtmPct: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
|
|
1
|
+
export declare function getUpdateNextVaultConfigTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string, strikeOtmPct: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getUpdateNextVaultConfigTx = void 0;
|
|
40
|
-
function getUpdateNextVaultConfigTx(packageId, registry, typeArgument, index, strikeOtmPct, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
|
|
40
|
+
function getUpdateNextVaultConfigTx(gasBudget, packageId, registry, typeArgument, index, strikeOtmPct, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -56,7 +56,7 @@ function getUpdateNextVaultConfigTx(packageId, registry, typeArgument, index, st
|
|
|
56
56
|
finalPrice,
|
|
57
57
|
auctionDurationInMs,
|
|
58
58
|
],
|
|
59
|
-
gasBudget:
|
|
59
|
+
gasBudget: gasBudget,
|
|
60
60
|
};
|
|
61
61
|
return [2 /*return*/, tx];
|
|
62
62
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getAuthorizedUpdateVaultConfigTx(packageId: string, typeArgument: string, registry: string, index: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
|
|
1
|
+
export declare function getAuthorizedUpdateVaultConfigTx(gasBudget: string, packageId: string, typeArgument: string, registry: string, index: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getAuthorizedUpdateVaultConfigTx = void 0;
|
|
40
|
-
function getAuthorizedUpdateVaultConfigTx(packageId, typeArgument, registry, index, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
|
|
40
|
+
function getAuthorizedUpdateVaultConfigTx(gasBudget, packageId, typeArgument, registry, index, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -55,7 +55,7 @@ function getAuthorizedUpdateVaultConfigTx(packageId, typeArgument, registry, ind
|
|
|
55
55
|
finalPrice,
|
|
56
56
|
auctionDurationInMs,
|
|
57
57
|
],
|
|
58
|
-
gasBudget:
|
|
58
|
+
gasBudget: gasBudget,
|
|
59
59
|
};
|
|
60
60
|
return [2 /*return*/, tx];
|
|
61
61
|
});
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -49,13 +49,14 @@ function createPriceOracle(typeArgument) {
|
|
|
49
49
|
var _this = this;
|
|
50
50
|
return __generator(this, function (_a) {
|
|
51
51
|
return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
52
|
-
var newOracleTx, moveCallTxn, digest, txn, priceOracle, managerCap, e_1;
|
|
52
|
+
var gasBudget, newOracleTx, moveCallTxn, digest, txn, priceOracle, managerCap, e_1;
|
|
53
53
|
return __generator(this, function (_a) {
|
|
54
54
|
switch (_a.label) {
|
|
55
55
|
case 0:
|
|
56
56
|
_a.trys.push([0, 4, , 5]);
|
|
57
57
|
console.log("create new price oracle...");
|
|
58
|
-
|
|
58
|
+
gasBudget = "100000";
|
|
59
|
+
return [4 /*yield*/, (0, getNewOracleTx_1.getNewOracleTx)(gasBudget, constants_1.ORACLE_PACKAGE, typeArgument, decimal)];
|
|
59
60
|
case 1:
|
|
60
61
|
newOracleTx = _a.sent();
|
|
61
62
|
return [4 /*yield*/, signer.executeMoveCall(newOracleTx)];
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -48,13 +48,14 @@ function createTimeOracle() {
|
|
|
48
48
|
var _this = this;
|
|
49
49
|
return __generator(this, function (_a) {
|
|
50
50
|
return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () {
|
|
51
|
-
var newTimeOracleTx, moveCallTxn, digest, txn, timeOracle, managerCap, e_1;
|
|
51
|
+
var gasBudget, newTimeOracleTx, moveCallTxn, digest, txn, timeOracle, managerCap, e_1;
|
|
52
52
|
return __generator(this, function (_a) {
|
|
53
53
|
switch (_a.label) {
|
|
54
54
|
case 0:
|
|
55
55
|
_a.trys.push([0, 4, , 5]);
|
|
56
56
|
console.log("create new time oracle...");
|
|
57
|
-
|
|
57
|
+
gasBudget = "100000";
|
|
58
|
+
return [4 /*yield*/, (0, getNewTimeOracleTx_1.getNewTimeOracleTx)(gasBudget, constants_1.ORACLE_PACKAGE)];
|
|
58
59
|
case 1:
|
|
59
60
|
newTimeOracleTx = _a.sent();
|
|
60
61
|
return [4 /*yield*/, signer.executeMoveCall(newTimeOracleTx)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getAddCoveredCallVaultAuthorizedUserTx(packageId: string, managerCap: string, registry: string, typeArgument: string, index: string, address: string): Promise<any>;
|
|
1
|
+
export declare function getAddCoveredCallVaultAuthorizedUserTx(gasBudget: string, packageId: string, managerCap: string, registry: string, typeArgument: string, index: string, address: string): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getAddCoveredCallVaultAuthorizedUserTx = void 0;
|
|
40
|
-
function getAddCoveredCallVaultAuthorizedUserTx(packageId, managerCap, registry, typeArgument, index, address) {
|
|
40
|
+
function getAddCoveredCallVaultAuthorizedUserTx(gasBudget, packageId, managerCap, registry, typeArgument, index, address) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -52,7 +52,7 @@ function getAddCoveredCallVaultAuthorizedUserTx(packageId, managerCap, registry,
|
|
|
52
52
|
index,
|
|
53
53
|
address,
|
|
54
54
|
],
|
|
55
|
-
gasBudget:
|
|
55
|
+
gasBudget: gasBudget,
|
|
56
56
|
};
|
|
57
57
|
return [2 /*return*/, tx];
|
|
58
58
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getClaimAllTx(packageId: string, registry: string, typeArgument: string, index: string[]): Promise<any>;
|
|
1
|
+
export declare function getClaimAllTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string[]): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getClaimAllTx = void 0;
|
|
40
|
-
function getClaimAllTx(packageId, registry, typeArgument, index) {
|
|
40
|
+
function getClaimAllTx(gasBudget, packageId, registry, typeArgument, index) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -50,7 +50,7 @@ function getClaimAllTx(packageId, registry, typeArgument, index) {
|
|
|
50
50
|
registry,
|
|
51
51
|
index,
|
|
52
52
|
],
|
|
53
|
-
gasBudget:
|
|
53
|
+
gasBudget: gasBudget,
|
|
54
54
|
};
|
|
55
55
|
return [2 /*return*/, tx];
|
|
56
56
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getClaimTx(packageId: string, registry: string, typeArgument: string, index: string): Promise<any>;
|
|
1
|
+
export declare function getClaimTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getClaimTx = void 0;
|
|
40
|
-
function getClaimTx(packageId, registry, typeArgument, index) {
|
|
40
|
+
function getClaimTx(gasBudget, packageId, registry, typeArgument, index) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -50,7 +50,7 @@ function getClaimTx(packageId, registry, typeArgument, index) {
|
|
|
50
50
|
registry,
|
|
51
51
|
index,
|
|
52
52
|
],
|
|
53
|
-
gasBudget:
|
|
53
|
+
gasBudget: gasBudget,
|
|
54
54
|
};
|
|
55
55
|
return [2 /*return*/, tx];
|
|
56
56
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getCloseAuctionTx(packageId: string, managerCap: string, typeArgument: string, registry: string, index: string, time: string): Promise<any>;
|
|
1
|
+
export declare function getCloseAuctionTx(gasBudget: string, packageId: string, managerCap: string, typeArgument: string, registry: string, index: string, time: string): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getCloseAuctionTx = void 0;
|
|
40
|
-
function getCloseAuctionTx(packageId, managerCap, typeArgument, registry, index, time) {
|
|
40
|
+
function getCloseAuctionTx(gasBudget, packageId, managerCap, typeArgument, registry, index, time) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -52,7 +52,7 @@ function getCloseAuctionTx(packageId, managerCap, typeArgument, registry, index,
|
|
|
52
52
|
index,
|
|
53
53
|
time,
|
|
54
54
|
],
|
|
55
|
-
gasBudget:
|
|
55
|
+
gasBudget: gasBudget,
|
|
56
56
|
};
|
|
57
57
|
return [2 /*return*/, tx];
|
|
58
58
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getCloseVaultTx(packageId: string, managerCap: string, typeArgument: string, registry: string, index: string): Promise<any>;
|
|
1
|
+
export declare function getCloseVaultTx(gasBudget: string, packageId: string, managerCap: string, typeArgument: string, registry: string, index: string): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getCloseVaultTx = void 0;
|
|
40
|
-
function getCloseVaultTx(packageId, managerCap, typeArgument, registry, index) {
|
|
40
|
+
function getCloseVaultTx(gasBudget, packageId, managerCap, typeArgument, registry, index) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -51,7 +51,7 @@ function getCloseVaultTx(packageId, managerCap, typeArgument, registry, index) {
|
|
|
51
51
|
registry,
|
|
52
52
|
index,
|
|
53
53
|
],
|
|
54
|
-
gasBudget:
|
|
54
|
+
gasBudget: gasBudget,
|
|
55
55
|
};
|
|
56
56
|
return [2 /*return*/, tx];
|
|
57
57
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getDeliveryTx(packageId: string, managerCap: string, registry: string, typeArgument: string, index: string, timeOracle: string): Promise<any>;
|
|
1
|
+
export declare function getDeliveryTx(gasBudget: string, packageId: string, managerCap: string, registry: string, typeArgument: string, index: string, timeOracle: string): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getDeliveryTx = void 0;
|
|
40
|
-
function getDeliveryTx(packageId, managerCap, registry, typeArgument, index, timeOracle) {
|
|
40
|
+
function getDeliveryTx(gasBudget, packageId, managerCap, registry, typeArgument, index, timeOracle) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -52,7 +52,7 @@ function getDeliveryTx(packageId, managerCap, registry, typeArgument, index, tim
|
|
|
52
52
|
index,
|
|
53
53
|
timeOracle,
|
|
54
54
|
],
|
|
55
|
-
gasBudget:
|
|
55
|
+
gasBudget: gasBudget,
|
|
56
56
|
};
|
|
57
57
|
return [2 /*return*/, tx];
|
|
58
58
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getDepositTx(packageId: string, registry: string, typeArgument: string, vaultIndex: string, coin: string, amount: string): Promise<any>;
|
|
1
|
+
export declare function getDepositTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, vaultIndex: string, coin: string, amount: string): Promise<any>;
|
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (
|
|
17
|
+
while (_) try {
|
|
18
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
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getDepositTx = void 0;
|
|
40
|
-
function getDepositTx(packageId, registry, typeArgument, vaultIndex, coin, amount) {
|
|
40
|
+
function getDepositTx(gasBudget, packageId, registry, typeArgument, vaultIndex, coin, amount) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -52,7 +52,7 @@ function getDepositTx(packageId, registry, typeArgument, vaultIndex, coin, amoun
|
|
|
52
52
|
coin,
|
|
53
53
|
amount,
|
|
54
54
|
],
|
|
55
|
-
gasBudget:
|
|
55
|
+
gasBudget: gasBudget,
|
|
56
56
|
};
|
|
57
57
|
return [2 /*return*/, tx];
|
|
58
58
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getEvolutionTx(packageId: string, registry: string, typeArgument: string, managerCap: string, index: string, priceOracle: string, timeOracle: string, activationTsMs: string, expirationTsMs: string): Promise<any>;
|
|
1
|
+
export declare function getEvolutionTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, managerCap: string, index: string, priceOracle: string, timeOracle: string, activationTsMs: string, expirationTsMs: string): Promise<any>;
|