@typus/typus-sdk 0.5.5 → 0.5.6
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.js +1 -1
- 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.getEvolutionTx = void 0;
|
|
40
|
-
function getEvolutionTx(packageId, registry, typeArgument, managerCap, index, priceOracle, timeOracle, expirationTsMs) {
|
|
40
|
+
function getEvolutionTx(gasBudget, packageId, registry, typeArgument, managerCap, 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) {
|
|
@@ -54,7 +54,7 @@ function getEvolutionTx(packageId, registry, typeArgument, managerCap, index, pr
|
|
|
54
54
|
timeOracle,
|
|
55
55
|
expirationTsMs,
|
|
56
56
|
],
|
|
57
|
-
gasBudget:
|
|
57
|
+
gasBudget: gasBudget,
|
|
58
58
|
};
|
|
59
59
|
return [2 /*return*/, tx];
|
|
60
60
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getMakerClaimAllTx(packageId: string, registry: string, typeArgument: string, index: string): Promise<any>;
|
|
1
|
+
export declare function getMakerClaimAllTx(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.getMakerClaimAllTx = void 0;
|
|
40
|
-
function getMakerClaimAllTx(packageId, registry, typeArgument, index) {
|
|
40
|
+
function getMakerClaimAllTx(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 getMakerClaimAllTx(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 getMakerClaimTx(packageId: string, registry: string, typeArgument: string, index: string): Promise<any>;
|
|
1
|
+
export declare function getMakerClaimTx(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.getMakerClaimTx = void 0;
|
|
40
|
-
function getMakerClaimTx(packageId, registry, typeArgument, index) {
|
|
40
|
+
function getMakerClaimTx(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 getMakerClaimTx(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 getNewAuctionTx(packageId: string, registry: string, typeArgument: string, managerCap: string, index: string, priceOracle: string, timeOracle: string): Promise<any>;
|
|
1
|
+
export declare function getNewAuctionTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, managerCap: 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, managerCap, index, priceOracle, timeOracle) {
|
|
40
|
+
function getNewAuctionTx(gasBudget, packageId, registry, typeArgument, managerCap, index, priceOracle, timeOracle) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -53,7 +53,7 @@ function getNewAuctionTx(packageId, registry, typeArgument, managerCap, index, p
|
|
|
53
53
|
priceOracle,
|
|
54
54
|
timeOracle,
|
|
55
55
|
],
|
|
56
|
-
gasBudget:
|
|
56
|
+
gasBudget: gasBudget,
|
|
57
57
|
};
|
|
58
58
|
return [2 /*return*/, tx];
|
|
59
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getNewAuctionWithNextCoveredCallVaultTx(packageId: string, managerCap: string, registry: string, typeArgument: string, index: number, priceOracle: string, timeOracle: string, activationTsMs: number, expirationTsMs: number): Promise<any>;
|
|
1
|
+
export declare function getNewAuctionWithNextCoveredCallVaultTx(gasBudget: string, packageId: string, managerCap: string, registry: string, typeArgument: string, index: number, priceOracle: string, timeOracle: string, activationTsMs: number, expirationTsMs: number): 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.getNewAuctionWithNextCoveredCallVaultTx = void 0;
|
|
40
|
-
function getNewAuctionWithNextCoveredCallVaultTx(packageId, managerCap, registry, typeArgument, index, priceOracle, timeOracle, activationTsMs, expirationTsMs) {
|
|
40
|
+
function getNewAuctionWithNextCoveredCallVaultTx(gasBudget, packageId, managerCap, 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) {
|
|
@@ -55,7 +55,7 @@ function getNewAuctionWithNextCoveredCallVaultTx(packageId, managerCap, registry
|
|
|
55
55
|
activationTsMs,
|
|
56
56
|
expirationTsMs,
|
|
57
57
|
],
|
|
58
|
-
gasBudget:
|
|
58
|
+
gasBudget: gasBudget,
|
|
59
59
|
};
|
|
60
60
|
return [2 /*return*/, tx];
|
|
61
61
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getNewBidTx(packageId: string, registry: string, typeArgument: string, vaultIndex: string, size: string, coin: string, time: string): Promise<any>;
|
|
1
|
+
export declare function getNewBidTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, vaultIndex: string, size: string, coin: 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.getNewBidTx = void 0;
|
|
40
|
-
function getNewBidTx(packageId, registry, typeArgument, vaultIndex, size, coin, time) {
|
|
40
|
+
function getNewBidTx(gasBudget, packageId, registry, typeArgument, vaultIndex, size, coin, time) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -53,7 +53,7 @@ function getNewBidTx(packageId, registry, typeArgument, vaultIndex, size, coin,
|
|
|
53
53
|
coin,
|
|
54
54
|
size,
|
|
55
55
|
],
|
|
56
|
-
gasBudget:
|
|
56
|
+
gasBudget: gasBudget,
|
|
57
57
|
};
|
|
58
58
|
return [2 /*return*/, tx];
|
|
59
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getNewCoveredCallVaultTx(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 getNewCoveredCallVaultTx(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.getNewCoveredCallVaultTx = void 0;
|
|
40
|
-
function getNewCoveredCallVaultTx(packageId, registry, typeArgument, managerCap, timeOracle, period, activationTsMs, expirationTsMs, tokenDecimal, shareDecimal, capacity, strikeOtmPct, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, leverage) {
|
|
40
|
+
function getNewCoveredCallVaultTx(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) {
|
|
@@ -65,7 +65,7 @@ function getNewCoveredCallVaultTx(packageId, registry, typeArgument, managerCap,
|
|
|
65
65
|
leverage,
|
|
66
66
|
whitelist,
|
|
67
67
|
],
|
|
68
|
-
gasBudget:
|
|
68
|
+
gasBudget: gasBudget,
|
|
69
69
|
};
|
|
70
70
|
return [2 /*return*/, tx];
|
|
71
71
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getNewManagerTx(packageId: string, managerCap: string, user: string): Promise<any>;
|
|
1
|
+
export declare function getNewManagerTx(gasBudget: string, packageId: string, managerCap: string, user: 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.getNewManagerTx = void 0;
|
|
40
|
-
function getNewManagerTx(packageId, managerCap, user) {
|
|
40
|
+
function getNewManagerTx(gasBudget, packageId, managerCap, user) {
|
|
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 getNewManagerTx(packageId, managerCap, user) {
|
|
|
50
50
|
managerCap,
|
|
51
51
|
user,
|
|
52
52
|
],
|
|
53
|
-
gasBudget:
|
|
53
|
+
gasBudget: gasBudget,
|
|
54
54
|
};
|
|
55
55
|
return [2 /*return*/, tx];
|
|
56
56
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getRefundTx(packageId: string, registry: string, typeArgument: string, index: string): Promise<any>;
|
|
1
|
+
export declare function getRefundTx(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.getRefundTx = void 0;
|
|
40
|
-
function getRefundTx(packageId, registry, typeArgument, index) {
|
|
40
|
+
function getRefundTx(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 getRefundTx(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 getRemoveBidTx(packageId: string, registry: string, typeArgument: string, index: string, bidIndex: string): Promise<any>;
|
|
1
|
+
export declare function getRemoveBidTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string, bidIndex: 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.getRemoveBidTx = void 0;
|
|
40
|
-
function getRemoveBidTx(packageId, registry, typeArgument, index, bidIndex) {
|
|
40
|
+
function getRemoveBidTx(gasBudget, packageId, registry, typeArgument, index, bidIndex) {
|
|
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 getRemoveBidTx(packageId, registry, typeArgument, index, bidIndex) {
|
|
|
51
51
|
index,
|
|
52
52
|
bidIndex,
|
|
53
53
|
],
|
|
54
|
-
gasBudget:
|
|
54
|
+
gasBudget: gasBudget,
|
|
55
55
|
};
|
|
56
56
|
return [2 /*return*/, tx];
|
|
57
57
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getRemoveCoveredCallVaultAuthorizedUserTx(packageId: string, managerCap: string, registry: string, typeArgument: string, index: string, address: string): Promise<any>;
|
|
1
|
+
export declare function getRemoveCoveredCallVaultAuthorizedUserTx(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.getRemoveCoveredCallVaultAuthorizedUserTx = void 0;
|
|
40
|
-
function getRemoveCoveredCallVaultAuthorizedUserTx(packageId, managerCap, registry, typeArgument, index, address) {
|
|
40
|
+
function getRemoveCoveredCallVaultAuthorizedUserTx(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 getRemoveCoveredCallVaultAuthorizedUserTx(packageId, managerCap, regist
|
|
|
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 getRemoveManagerTx(packageId: string, managerCap: string): Promise<any>;
|
|
1
|
+
export declare function getRemoveManagerTx(gasBudget: string, packageId: string, managerCap: 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.getRemoveManagerTx = void 0;
|
|
40
|
-
function getRemoveManagerTx(packageId, managerCap) {
|
|
40
|
+
function getRemoveManagerTx(gasBudget, packageId, managerCap) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -49,7 +49,7 @@ function getRemoveManagerTx(packageId, managerCap) {
|
|
|
49
49
|
arguments: [
|
|
50
50
|
managerCap,
|
|
51
51
|
],
|
|
52
|
-
gasBudget:
|
|
52
|
+
gasBudget: gasBudget,
|
|
53
53
|
};
|
|
54
54
|
return [2 /*return*/, tx];
|
|
55
55
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getRollOverTx(packageId: string, registry: string, typeArgument: string, managerCap: string, index: string): Promise<any>;
|
|
1
|
+
export declare function getRollOverTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, managerCap: 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.getRollOverTx = void 0;
|
|
40
|
-
function getRollOverTx(packageId, registry, typeArgument, managerCap, index) {
|
|
40
|
+
function getRollOverTx(gasBudget, packageId, registry, typeArgument, managerCap, 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 getRollOverTx(packageId, registry, typeArgument, managerCap, 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 getSettleTx(packageId: string, registry: string, typeArgument: string, managerCap: string, index: string, priceOracle: string, timeOracle: string): Promise<any>;
|
|
1
|
+
export declare function getSettleTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, managerCap: 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.getSettleTx = void 0;
|
|
40
|
-
function getSettleTx(packageId, registry, typeArgument, managerCap, index, priceOracle, timeOracle) {
|
|
40
|
+
function getSettleTx(gasBudget, packageId, registry, typeArgument, managerCap, index, priceOracle, timeOracle) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -53,7 +53,7 @@ function getSettleTx(packageId, registry, typeArgument, managerCap, index, price
|
|
|
53
53
|
priceOracle,
|
|
54
54
|
timeOracle,
|
|
55
55
|
],
|
|
56
|
-
gasBudget:
|
|
56
|
+
gasBudget: gasBudget,
|
|
57
57
|
};
|
|
58
58
|
return [2 /*return*/, tx];
|
|
59
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getSettleWithRollOverTx(packageId: string, registry: string, typeArgument: string, managerCap: string, index: string, priceOracle: string, timeOracle: string): Promise<any>;
|
|
1
|
+
export declare function getSettleWithRollOverTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, managerCap: 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.getSettleWithRollOverTx = void 0;
|
|
40
|
-
function getSettleWithRollOverTx(packageId, registry, typeArgument, managerCap, index, priceOracle, timeOracle) {
|
|
40
|
+
function getSettleWithRollOverTx(gasBudget, packageId, registry, typeArgument, managerCap, index, priceOracle, timeOracle) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
@@ -53,7 +53,7 @@ function getSettleWithRollOverTx(packageId, registry, typeArgument, managerCap,
|
|
|
53
53
|
priceOracle,
|
|
54
54
|
timeOracle,
|
|
55
55
|
],
|
|
56
|
-
gasBudget:
|
|
56
|
+
gasBudget: gasBudget,
|
|
57
57
|
};
|
|
58
58
|
return [2 /*return*/, tx];
|
|
59
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getSubscribeTx(packageId: string, registry: string, typeArgument: string, index: string, share: string): Promise<any>;
|
|
1
|
+
export declare function getSubscribeTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string, share: 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.getSubscribeTx = void 0;
|
|
40
|
-
function getSubscribeTx(packageId, registry, typeArgument, index, share) {
|
|
40
|
+
function getSubscribeTx(gasBudget, packageId, registry, typeArgument, index, share) {
|
|
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 getSubscribeTx(packageId, registry, typeArgument, index, share) {
|
|
|
51
51
|
index,
|
|
52
52
|
share,
|
|
53
53
|
],
|
|
54
|
-
gasBudget:
|
|
54
|
+
gasBudget: gasBudget,
|
|
55
55
|
};
|
|
56
56
|
return [2 /*return*/, tx];
|
|
57
57
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getUnsubscribeTx(packageId: string, registry: string, typeArgument: string, index: string, share: string): Promise<any>;
|
|
1
|
+
export declare function getUnsubscribeTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, index: string, share: 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.getUnsubscribeTx = void 0;
|
|
40
|
-
function getUnsubscribeTx(packageId, registry, typeArgument, index, share) {
|
|
40
|
+
function getUnsubscribeTx(gasBudget, packageId, registry, typeArgument, index, share) {
|
|
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 getUnsubscribeTx(packageId, registry, typeArgument, index, share) {
|
|
|
51
51
|
index,
|
|
52
52
|
share,
|
|
53
53
|
],
|
|
54
|
-
gasBudget:
|
|
54
|
+
gasBudget: gasBudget,
|
|
55
55
|
};
|
|
56
56
|
return [2 /*return*/, tx];
|
|
57
57
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getUpdateCapacityTx(packageId: string, managerCap: string, typeArgument: string, registry: string, index: string, capacity: string): Promise<any>;
|
|
1
|
+
export declare function getUpdateCapacityTx(gasBudget: string, packageId: string, managerCap: 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.getUpdateCapacityTx = void 0;
|
|
40
|
-
function getUpdateCapacityTx(packageId, managerCap, typeArgument, registry, index, capacity) {
|
|
40
|
+
function getUpdateCapacityTx(gasBudget, packageId, managerCap, 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) {
|
|
@@ -52,7 +52,7 @@ function getUpdateCapacityTx(packageId, managerCap, typeArgument, registry, inde
|
|
|
52
52
|
index,
|
|
53
53
|
capacity
|
|
54
54
|
],
|
|
55
|
-
gasBudget:
|
|
55
|
+
gasBudget: gasBudget,
|
|
56
56
|
};
|
|
57
57
|
return [2 /*return*/, tx];
|
|
58
58
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getUpdateNextVaultConfigTx(packageId: string, managerCap: 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, managerCap: 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, managerCap, registry, typeArgument, index, strikeOtmPct, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
|
|
40
|
+
function getUpdateNextVaultConfigTx(gasBudget, packageId, managerCap, 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) {
|
|
@@ -57,7 +57,7 @@ function getUpdateNextVaultConfigTx(packageId, managerCap, registry, typeArgumen
|
|
|
57
57
|
finalPrice,
|
|
58
58
|
auctionDurationInMs,
|
|
59
59
|
],
|
|
60
|
-
gasBudget:
|
|
60
|
+
gasBudget: gasBudget,
|
|
61
61
|
};
|
|
62
62
|
return [2 /*return*/, tx];
|
|
63
63
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getUpdatePayoffConfigTx(packageId: string, registry: string, typeArgument: string, managerCap: string, index: string, roi: string, exposureRatio: string): Promise<any>;
|
|
1
|
+
export declare function getUpdatePayoffConfigTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, managerCap: string, index: string, roi: string, exposureRatio: string): Promise<any>;
|