@typus/typus-sdk 0.5.4 → 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/testClaim.js +4 -3
- package/lib/test/testDeposit.js +3 -2
- package/lib/test/testDepositV2.js +4 -2
- package/lib/test/testMint.js +3 -2
- package/lib/test/testNewAuction.js +3 -2
- package/lib/test/testNewVault.js +3 -2
- package/lib/test/testOracle.js +4 -3
- package/lib/test/testSettle.js +10 -9
- package/lib/test/testUnsubscribe.js +3 -2
- package/lib/test/testWithdraw.js +3 -2
- package/lib/utils/authorized/getAuthorizedAddAuthorizedUserTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedAddAuthorizedUserTx.js +3 -7
- package/lib/utils/authorized/getAuthorizedAddCoveredCallVaultAuthorizedUserTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedAddCoveredCallVaultAuthorizedUserTx.js +3 -7
- package/lib/utils/authorized/getAuthorizedDeliveryTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedDeliveryTx.js +3 -7
- package/lib/utils/authorized/getAuthorizedEvolutionTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedEvolutionTx.js +3 -10
- package/lib/utils/authorized/getAuthorizedLastEvolutionTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedLastEvolutionTx.js +3 -9
- package/lib/utils/authorized/getAuthorizedNewAuctionTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedNewAuctionTx.js +3 -8
- package/lib/utils/authorized/getAuthorizedNewCoveredCallVaultTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedNewCoveredCallVaultTx.js +3 -4
- package/lib/utils/authorized/getAuthorizedRemoveAuthorizedUserTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedRemoveAuthorizedUserTx.js +3 -7
- package/lib/utils/authorized/getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx.js +3 -7
- package/lib/utils/authorized/getAuthorizedSettleTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedSettleTx.js +3 -8
- package/lib/utils/authorized/getAuthorizedUpdateCapacityTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedUpdateCapacityTx.js +3 -7
- package/lib/utils/authorized/getAuthorizedUpdateVaultConfigTx.d.ts +1 -1
- package/lib/utils/authorized/getAuthorizedUpdateVaultConfigTx.js +2 -2
- package/lib/utils/coveredCall/createPriceOracle.js +3 -2
- package/lib/utils/coveredCall/createTimeOracle.js +3 -2
- package/lib/utils/coveredCall/getAddCoveredCallVaultAuthorizedUserTx.d.ts +1 -1
- package/lib/utils/coveredCall/getAddCoveredCallVaultAuthorizedUserTx.js +2 -2
- package/lib/utils/coveredCall/getClaimAllTx.d.ts +1 -1
- package/lib/utils/coveredCall/getClaimAllTx.js +2 -2
- package/lib/utils/coveredCall/getClaimTx.d.ts +1 -1
- package/lib/utils/coveredCall/getClaimTx.js +2 -2
- package/lib/utils/coveredCall/getCloseAuctionTx.d.ts +1 -1
- package/lib/utils/coveredCall/getCloseAuctionTx.js +2 -2
- package/lib/utils/coveredCall/getCloseVaultTx.d.ts +1 -1
- package/lib/utils/coveredCall/getCloseVaultTx.js +2 -2
- package/lib/utils/coveredCall/getDeliveryTx.d.ts +1 -1
- package/lib/utils/coveredCall/getDeliveryTx.js +2 -2
- package/lib/utils/coveredCall/getDepositTx.d.ts +1 -1
- package/lib/utils/coveredCall/getDepositTx.js +2 -2
- package/lib/utils/coveredCall/getEvolutionTx.d.ts +1 -1
- package/lib/utils/coveredCall/getEvolutionTx.js +2 -2
- package/lib/utils/coveredCall/getLastEvolutionTx.d.ts +1 -1
- package/lib/utils/coveredCall/getLastEvolutionTx.js +2 -2
- package/lib/utils/coveredCall/getMakerClaimAllTx.d.ts +1 -1
- package/lib/utils/coveredCall/getMakerClaimAllTx.js +2 -2
- package/lib/utils/coveredCall/getMakerClaimTx.d.ts +1 -1
- package/lib/utils/coveredCall/getMakerClaimTx.js +2 -2
- package/lib/utils/coveredCall/getNewAuctionTx.d.ts +1 -1
- package/lib/utils/coveredCall/getNewAuctionTx.js +2 -2
- package/lib/utils/coveredCall/getNewAuctionWithNextCoveredCallVaultTx.d.ts +1 -1
- package/lib/utils/coveredCall/getNewAuctionWithNextCoveredCallVaultTx.js +2 -2
- package/lib/utils/coveredCall/getNewBidTx.d.ts +1 -1
- package/lib/utils/coveredCall/getNewBidTx.js +2 -2
- package/lib/utils/coveredCall/getNewCoveredCallVaultTx.d.ts +1 -1
- package/lib/utils/coveredCall/getNewCoveredCallVaultTx.js +2 -2
- package/lib/utils/coveredCall/getNewManagerTx.d.ts +1 -1
- package/lib/utils/coveredCall/getNewManagerTx.js +2 -2
- package/lib/utils/coveredCall/getRefundTx.d.ts +1 -1
- package/lib/utils/coveredCall/getRefundTx.js +2 -2
- package/lib/utils/coveredCall/getRemoveBidTx.d.ts +1 -1
- package/lib/utils/coveredCall/getRemoveBidTx.js +2 -2
- package/lib/utils/coveredCall/getRemoveCoveredCallVaultAuthorizedUserTx.d.ts +1 -1
- package/lib/utils/coveredCall/getRemoveCoveredCallVaultAuthorizedUserTx.js +2 -2
- package/lib/utils/coveredCall/getRemoveManagerTx.d.ts +1 -1
- package/lib/utils/coveredCall/getRemoveManagerTx.js +2 -2
- package/lib/utils/coveredCall/getRollOverTx.d.ts +1 -1
- package/lib/utils/coveredCall/getRollOverTx.js +2 -2
- package/lib/utils/coveredCall/getSettleTx.d.ts +1 -1
- package/lib/utils/coveredCall/getSettleTx.js +2 -2
- package/lib/utils/coveredCall/getSettleWithRollOverTx.d.ts +1 -1
- package/lib/utils/coveredCall/getSettleWithRollOverTx.js +2 -2
- package/lib/utils/coveredCall/getSubscribeTx.d.ts +1 -1
- package/lib/utils/coveredCall/getSubscribeTx.js +2 -2
- package/lib/utils/coveredCall/getUnsubscribeTx.d.ts +1 -1
- package/lib/utils/coveredCall/getUnsubscribeTx.js +2 -2
- package/lib/utils/coveredCall/getUpdateCapacityTx.d.ts +1 -1
- package/lib/utils/coveredCall/getUpdateCapacityTx.js +2 -2
- package/lib/utils/coveredCall/getUpdateNextVaultConfigTx.d.ts +1 -1
- package/lib/utils/coveredCall/getUpdateNextVaultConfigTx.js +2 -2
- package/lib/utils/coveredCall/getUpdatePayoffConfigTx.d.ts +1 -1
- package/lib/utils/coveredCall/getUpdatePayoffConfigTx.js +2 -2
- package/lib/utils/coveredCall/getUpdateVaultConfigTx.d.ts +1 -1
- package/lib/utils/coveredCall/getUpdateVaultConfigTx.js +2 -2
- package/lib/utils/coveredCall/getWithdrawTx.d.ts +1 -1
- package/lib/utils/coveredCall/getWithdrawTx.js +2 -2
- package/lib/utils/getCreateTokenRegistryTx.d.ts +1 -1
- package/lib/utils/getCreateTokenRegistryTx.js +2 -2
- package/lib/utils/getMintTx.d.ts +1 -1
- package/lib/utils/getMintTx.js +2 -2
- package/lib/utils/getNewOracleTx.d.ts +1 -1
- package/lib/utils/getNewOracleTx.js +2 -2
- package/lib/utils/getNewTimeOracleTx.d.ts +1 -1
- package/lib/utils/getNewTimeOracleTx.js +2 -2
- package/lib/utils/getUpdateOracleTx.d.ts +1 -1
- package/lib/utils/getUpdateOracleTx.js +2 -2
- package/lib/utils/getUpdateTimeOracleTx.d.ts +1 -1
- package/lib/utils/getUpdateTimeOracleTx.js +2 -2
- package/package.json +2 -2
|
@@ -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>;
|
|
@@ -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>;
|
|
@@ -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>;
|
|
@@ -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>;
|
|
@@ -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>;
|
|
@@ -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>;
|
|
@@ -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.getUpdatePayoffConfigTx = void 0;
|
|
40
|
-
function getUpdatePayoffConfigTx(packageId, registry, typeArgument, managerCap, index, roi, exposureRatio) {
|
|
40
|
+
function getUpdatePayoffConfigTx(gasBudget, packageId, registry, typeArgument, managerCap, index, roi, exposureRatio) {
|
|
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 getUpdatePayoffConfigTx(packageId, registry, typeArgument, managerCap,
|
|
|
53
53
|
roi,
|
|
54
54
|
exposureRatio,
|
|
55
55
|
],
|
|
56
|
-
gasBudget:
|
|
56
|
+
gasBudget: gasBudget,
|
|
57
57
|
};
|
|
58
58
|
return [2 /*return*/, tx];
|
|
59
59
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getUpdateVaultConfigTx(packageId: string, managerCap: string, typeArgument: string, registry: string, index: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
|
|
1
|
+
export declare function getUpdateVaultConfigTx(gasBudget: string, packageId: string, managerCap: string, typeArgument: string, registry: string, index: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
|
|
@@ -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.getUpdateVaultConfigTx = void 0;
|
|
40
|
-
function getUpdateVaultConfigTx(packageId, managerCap, typeArgument, registry, index, strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
|
|
40
|
+
function getUpdateVaultConfigTx(gasBudget, packageId, managerCap, 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) {
|
|
@@ -56,7 +56,7 @@ function getUpdateVaultConfigTx(packageId, managerCap, typeArgument, registry, i
|
|
|
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 getWithdrawTx(packageId: string, registry: string, typeArgument: string, vaultIndex: string, share: string): Promise<any>;
|
|
1
|
+
export declare function getWithdrawTx(gasBudget: string, packageId: string, registry: string, typeArgument: string, vaultIndex: string, share: string): Promise<any>;
|
|
@@ -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.getWithdrawTx = void 0;
|
|
40
|
-
function getWithdrawTx(packageId, registry, typeArgument, vaultIndex, share) {
|
|
40
|
+
function getWithdrawTx(gasBudget, packageId, registry, typeArgument, vaultIndex, 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 getWithdrawTx(packageId, registry, typeArgument, vaultIndex, share) {
|
|
|
51
51
|
vaultIndex,
|
|
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 getCreateTokenRegistryTx(packageId: string): Promise<any>;
|
|
1
|
+
export declare function getCreateTokenRegistryTx(gasBudget: string, packageId: string): Promise<any>;
|
|
@@ -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.getCreateTokenRegistryTx = void 0;
|
|
40
|
-
function getCreateTokenRegistryTx(packageId) {
|
|
40
|
+
function getCreateTokenRegistryTx(gasBudget, packageId) {
|
|
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 getCreateTokenRegistryTx(packageId) {
|
|
|
47
47
|
function: 'new',
|
|
48
48
|
typeArguments: [],
|
|
49
49
|
arguments: [],
|
|
50
|
-
gasBudget:
|
|
50
|
+
gasBudget: gasBudget,
|
|
51
51
|
};
|
|
52
52
|
return [2 /*return*/, tx];
|
|
53
53
|
});
|
package/lib/utils/getMintTx.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getMintTx(packageId: string, registry: string, moduleName: string, amount: number): Promise<any>;
|
|
1
|
+
export declare function getMintTx(gasBudget: string, packageId: string, registry: string, moduleName: string, amount: number): Promise<any>;
|
package/lib/utils/getMintTx.js
CHANGED
|
@@ -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.getMintTx = void 0;
|
|
40
|
-
function getMintTx(packageId, registry, moduleName, amount) {
|
|
40
|
+
function getMintTx(gasBudget, packageId, registry, moduleName, amount) {
|
|
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 getMintTx(packageId, registry, moduleName, amount) {
|
|
|
50
50
|
registry,
|
|
51
51
|
amount,
|
|
52
52
|
],
|
|
53
|
-
gasBudget:
|
|
53
|
+
gasBudget: gasBudget,
|
|
54
54
|
};
|
|
55
55
|
return [2 /*return*/, tx];
|
|
56
56
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getNewOracleTx(packageId: string, typeArgument: string, decimal: number): Promise<any>;
|
|
1
|
+
export declare function getNewOracleTx(gasBudget: string, packageId: string, typeArgument: string, decimal: number): Promise<any>;
|
|
@@ -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.getNewOracleTx = void 0;
|
|
40
|
-
function getNewOracleTx(packageId, typeArgument, decimal) {
|
|
40
|
+
function getNewOracleTx(gasBudget, packageId, typeArgument, decimal) {
|
|
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 getNewOracleTx(packageId, typeArgument, decimal) {
|
|
|
47
47
|
function: 'new_oracle',
|
|
48
48
|
typeArguments: [typeArgument],
|
|
49
49
|
arguments: [decimal],
|
|
50
|
-
gasBudget:
|
|
50
|
+
gasBudget: gasBudget,
|
|
51
51
|
};
|
|
52
52
|
return [2 /*return*/, tx];
|
|
53
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getNewTimeOracleTx(packageId: string): Promise<any>;
|
|
1
|
+
export declare function getNewTimeOracleTx(gasBudget: string, packageId: string): Promise<any>;
|
|
@@ -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.getNewTimeOracleTx = void 0;
|
|
40
|
-
function getNewTimeOracleTx(packageId) {
|
|
40
|
+
function getNewTimeOracleTx(gasBudget, packageId) {
|
|
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 getNewTimeOracleTx(packageId) {
|
|
|
47
47
|
function: 'new_time',
|
|
48
48
|
typeArguments: [],
|
|
49
49
|
arguments: [],
|
|
50
|
-
gasBudget:
|
|
50
|
+
gasBudget: gasBudget,
|
|
51
51
|
};
|
|
52
52
|
return [2 /*return*/, tx];
|
|
53
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getUpdateOracleTx(packageId: string, typeArgument: string, oracle: string, managerCap: string, price: number, unix: number): Promise<any>;
|
|
1
|
+
export declare function getUpdateOracleTx(gasBudget: string, packageId: string, typeArgument: string, oracle: string, managerCap: string, price: number, unix: number): Promise<any>;
|
|
@@ -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.getUpdateOracleTx = void 0;
|
|
40
|
-
function getUpdateOracleTx(packageId, typeArgument, oracle, managerCap, price, unix) {
|
|
40
|
+
function getUpdateOracleTx(gasBudget, packageId, typeArgument, oracle, managerCap, price, unix) {
|
|
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 getUpdateOracleTx(packageId, typeArgument, oracle, managerCap, price, u
|
|
|
52
52
|
price,
|
|
53
53
|
unix
|
|
54
54
|
],
|
|
55
|
-
gasBudget:
|
|
55
|
+
gasBudget: gasBudget,
|
|
56
56
|
};
|
|
57
57
|
return [2 /*return*/, tx];
|
|
58
58
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getUpdateTimeOracleTx(packageId: string, oracle: string, managerCap: string, ts: number): Promise<any>;
|
|
1
|
+
export declare function getUpdateTimeOracleTx(gasBudget: string, packageId: string, oracle: string, managerCap: string, ts: number): Promise<any>;
|
|
@@ -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.getUpdateTimeOracleTx = void 0;
|
|
40
|
-
function getUpdateTimeOracleTx(packageId, oracle, managerCap, ts) {
|
|
40
|
+
function getUpdateTimeOracleTx(gasBudget, packageId, oracle, managerCap, ts) {
|
|
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 getUpdateTimeOracleTx(packageId, oracle, managerCap, ts) {
|
|
|
51
51
|
managerCap,
|
|
52
52
|
ts
|
|
53
53
|
],
|
|
54
|
-
gasBudget:
|
|
54
|
+
gasBudget: gasBudget,
|
|
55
55
|
};
|
|
56
56
|
return [2 /*return*/, tx];
|
|
57
57
|
});
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typus/typus-sdk",
|
|
3
3
|
"author": "Typus",
|
|
4
4
|
"description": "typus sdk",
|
|
5
|
-
"version": "0.5.
|
|
5
|
+
"version": "0.5.6",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@mysten/bcs": "^0.5.0",
|
|
8
8
|
"@mysten/sui.js": "^0.26.1",
|
|
@@ -81,4 +81,4 @@
|
|
|
81
81
|
"url": "https://github.com/Typus-Lab/typus-sdk/issues"
|
|
82
82
|
},
|
|
83
83
|
"homepage": "https://github.com/Typus-Lab/typus-sdk#readme"
|
|
84
|
-
}
|
|
84
|
+
}
|