@typus/typus-sdk 0.6.2 → 1.0.0
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/config.json +20 -0
- package/lib/constants.d.ts +12 -16
- package/lib/constants.js +17 -17
- package/lib/test/authorized/testAuthorizedNewPortfolioVault.js +82 -0
- package/lib/test/{testClaim.js → authorized/testAuthorizedUpdateUpcomingVaultConfig.js} +20 -31
- package/lib/test/authorized/testAuthorizedUpdateWarmupVaultConfig.js +68 -0
- package/lib/test/getBidData.js +1 -1
- package/lib/test/getVaultData.js +2 -2
- package/lib/test/getWhiteListFromRegistry.js +2 -2
- package/lib/test/helper/getAuctionMaxSize.js +76 -0
- package/lib/test/helper/getUserStatus.js +75 -0
- package/lib/test/testCrypto.js +1 -1
- package/lib/test/testMint.js +2 -2
- package/lib/test/testSubscribeEvent.js +1 -1
- package/lib/test/{testWithdraw.js → user/testClaim.js} +15 -18
- package/lib/test/{getMakersShares.js → user/testCompound.js} +21 -7
- package/lib/test/{testUnsubscribe.js → user/testDeposit.js} +29 -38
- package/lib/test/{getUsersShares.js → user/testHarvest.js} +21 -7
- package/lib/test/user/testNewBid.js +77 -0
- package/lib/test/user/testUnsubscribe.d.ts +1 -0
- package/lib/test/user/testUnsubscribe.js +69 -0
- package/lib/test/user/testWithdraw.d.ts +1 -0
- package/lib/test/{testDeposit.js → user/testWithdraw.js} +16 -20
- package/lib/utils/auction/getBid.js +1 -1
- package/lib/utils/fetchData.d.ts +72 -60
- package/lib/utils/fetchData.js +27 -199
- package/lib/utils/getMintTx.js +1 -1
- package/lib/utils/getTypeArgumentFromToken.js +1 -1
- package/lib/utils/getVaultData.d.ts +3 -2
- package/lib/utils/getVaultData.js +139 -159
- package/lib/utils/getWhiteListFromRegistry.js +1 -2
- package/lib/utils/portfolio/authorized/getAuthorizedAddPortfolioVaultAuthorizedUserTx.d.ts +4 -0
- package/lib/utils/portfolio/authorized/getAuthorizedAddPortfolioVaultAuthorizedUserTx.js +63 -0
- package/lib/utils/portfolio/authorized/getAuthorizedDeliveryTx.d.ts +1 -0
- package/lib/utils/{authorized → portfolio/authorized}/getAuthorizedDeliveryTx.js +10 -5
- package/lib/utils/portfolio/authorized/getAuthorizedNewPortfolioVaultTx.d.ts +38 -0
- package/lib/utils/{authorized/getAuthorizedNewCoveredCallVaultTx.js → portfolio/authorized/getAuthorizedNewPortfolioVaultTx.js} +53 -13
- package/lib/utils/portfolio/authorized/getAuthorizedRemovePortfolioVaultAuthorizedUserTx.d.ts +4 -0
- package/lib/utils/portfolio/authorized/getAuthorizedRemovePortfolioVaultAuthorizedUserTx.js +63 -0
- package/lib/utils/portfolio/authorized/getAuthorizedUpdateCapacityTx.d.ts +1 -0
- package/lib/utils/{authorized → portfolio/authorized}/getAuthorizedUpdateCapacityTx.js +9 -5
- package/lib/utils/portfolio/authorized/getAuthorizedUpdateUpcomingVaultConfigTx.d.ts +4 -0
- package/lib/utils/{authorized/getAuthorizedUpdateVaultConfigTx.js → portfolio/authorized/getAuthorizedUpdateUpcomingVaultConfigTx.js} +13 -7
- package/lib/utils/portfolio/authorized/getAuthorizedUpdateWarmupVaultConfigTx.d.ts +1 -0
- package/lib/utils/{authorized/getAuthorizedUpdateNextVaultConfigTx.js → portfolio/authorized/getAuthorizedUpdateWarmupVaultConfigTx.js} +7 -8
- package/lib/utils/portfolio/helper/getAuctionMaxSize.d.ts +8 -0
- package/lib/utils/{coveredCall/getLastEvolutionTx.js → portfolio/helper/getAuctionMaxSize.js} +14 -11
- package/lib/utils/portfolio/helper/getUserStatus.d.ts +29 -0
- package/lib/utils/portfolio/helper/getUserStatus.js +104 -0
- package/lib/utils/portfolio/manager/getAddAuthorizedUserTx.d.ts +8 -0
- package/lib/utils/{getUpdateTimeOracleTx.js → portfolio/manager/getAddAuthorizedUserTx.js} +15 -8
- package/lib/utils/portfolio/manager/getAddPortfolioVaultAuthorizedUserTx.d.ts +10 -0
- package/lib/utils/{coveredCall/getUpdateNextVaultConfigTx.js → portfolio/manager/getAddPortfolioVaultAuthorizedUserTx.js} +17 -13
- package/lib/utils/portfolio/manager/getCloseAuctionTx.d.ts +1 -0
- package/lib/utils/{coveredCall → portfolio/manager}/getCloseAuctionTx.js +6 -5
- package/lib/utils/portfolio/manager/getCloseVaultTx.d.ts +1 -0
- package/lib/utils/{coveredCall → portfolio/manager}/getCloseVaultTx.js +4 -4
- package/lib/utils/portfolio/manager/getDeliveryTx.d.ts +1 -0
- package/lib/utils/{coveredCall → portfolio/manager}/getDeliveryTx.js +5 -4
- package/lib/utils/portfolio/manager/getEvolutionTx.d.ts +15 -0
- package/lib/utils/{coveredCall → portfolio/manager}/getEvolutionTx.js +18 -4
- package/lib/utils/portfolio/manager/getNewManagerTx.d.ts +8 -0
- package/lib/utils/{coveredCall → portfolio/manager}/getNewManagerTx.js +11 -4
- package/lib/utils/portfolio/manager/getNewPortfolioVaultTx.d.ts +38 -0
- package/lib/utils/{coveredCall/getNewCoveredCallVaultTx.js → portfolio/manager/getNewPortfolioVaultTx.js} +52 -13
- package/lib/utils/portfolio/manager/getRemoveAuthorizedUserTx.d.ts +8 -0
- package/lib/utils/{coveredCall/getRemoveCoveredCallVaultAuthorizedUserTx.js → portfolio/manager/getRemoveAuthorizedUserTx.js} +14 -8
- package/lib/utils/{coveredCall → portfolio/manager}/getRemoveManagerTx.d.ts +5 -0
- package/lib/utils/{coveredCall → portfolio/manager}/getRemoveManagerTx.js +7 -2
- package/lib/utils/portfolio/manager/getRemovePortfolioVaultAuthorizedUserTx.d.ts +10 -0
- package/lib/utils/portfolio/manager/getRemovePortfolioVaultAuthorizedUserTx.js +70 -0
- package/lib/utils/portfolio/manager/getUpdateCapacityTx.d.ts +1 -0
- package/lib/utils/{coveredCall → portfolio/manager}/getUpdateCapacityTx.js +4 -4
- package/lib/utils/portfolio/user/getClaimAndHarvestTx.d.ts +9 -0
- package/lib/utils/portfolio/user/getClaimAndHarvestTx.js +67 -0
- package/lib/utils/portfolio/user/getClaimTx.d.ts +9 -0
- package/lib/utils/{coveredCall → portfolio/user}/getClaimTx.js +12 -4
- package/lib/utils/portfolio/user/getCompoundTx.d.ts +9 -0
- package/lib/utils/{coveredCall/getAddCoveredCallVaultAuthorizedUserTx.js → portfolio/user/getCompoundTx.js} +15 -9
- package/lib/utils/portfolio/user/getDepositTx.d.ts +11 -0
- package/lib/utils/{coveredCall → portfolio/user}/getDepositTx.js +15 -9
- package/lib/utils/portfolio/user/getHarvestTx.d.ts +9 -0
- package/lib/utils/{coveredCall/getClaimAllTx.js → portfolio/user/getHarvestTx.js} +15 -7
- package/lib/utils/portfolio/user/getNewBidTx.d.ts +13 -0
- package/lib/utils/{coveredCall → portfolio/user}/getNewBidTx.js +21 -8
- package/lib/utils/portfolio/user/getUnsubscribeTx.d.ts +10 -0
- package/lib/utils/{coveredCall → portfolio/user}/getUnsubscribeTx.js +14 -8
- package/lib/utils/portfolio/user/getWithdrawTx.d.ts +10 -0
- package/lib/utils/{coveredCall → portfolio/user}/getWithdrawTx.js +13 -4
- package/package.json +2 -2
- package/lib/test/eventListener.d.ts +0 -5
- package/lib/test/eventListener.js +0 -395
- package/lib/test/testDepositV2.d.ts +0 -0
- package/lib/test/testDepositV2.js +0 -64
- package/lib/test/testNewAuction.js +0 -94
- package/lib/test/testNewVault.js +0 -153
- package/lib/test/testOracle.js +0 -94
- package/lib/test/testSettle.js +0 -590
- package/lib/utils/authorized/getAuthorizedAddAuthorizedUserTx.d.ts +0 -1
- package/lib/utils/authorized/getAuthorizedAddAuthorizedUserTx.js +0 -56
- package/lib/utils/authorized/getAuthorizedAddCoveredCallVaultAuthorizedUserTx.d.ts +0 -1
- package/lib/utils/authorized/getAuthorizedAddCoveredCallVaultAuthorizedUserTx.js +0 -56
- package/lib/utils/authorized/getAuthorizedDeliveryTx.d.ts +0 -1
- package/lib/utils/authorized/getAuthorizedEvolutionTx.d.ts +0 -1
- package/lib/utils/authorized/getAuthorizedEvolutionTx.js +0 -56
- package/lib/utils/authorized/getAuthorizedLastEvolutionTx.d.ts +0 -1
- package/lib/utils/authorized/getAuthorizedLastEvolutionTx.js +0 -56
- package/lib/utils/authorized/getAuthorizedNewAuctionTx.d.ts +0 -1
- package/lib/utils/authorized/getAuthorizedNewAuctionTx.js +0 -56
- package/lib/utils/authorized/getAuthorizedNewCoveredCallVaultTx.d.ts +0 -1
- package/lib/utils/authorized/getAuthorizedRemoveAuthorizedUserTx.d.ts +0 -1
- package/lib/utils/authorized/getAuthorizedRemoveAuthorizedUserTx.js +0 -56
- package/lib/utils/authorized/getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx.d.ts +0 -1
- package/lib/utils/authorized/getAuthorizedRemoveCoveredCallVaultAuthorizedUserTx.js +0 -56
- package/lib/utils/authorized/getAuthorizedSettleTx.d.ts +0 -1
- package/lib/utils/authorized/getAuthorizedSettleTx.js +0 -56
- package/lib/utils/authorized/getAuthorizedUpdateCapacityTx.d.ts +0 -1
- package/lib/utils/authorized/getAuthorizedUpdateNextVaultConfigTx.d.ts +0 -1
- package/lib/utils/authorized/getAuthorizedUpdateVaultConfigTx.d.ts +0 -1
- package/lib/utils/coveredCall/createPriceOracle.d.ts +0 -1
- package/lib/utils/coveredCall/createPriceOracle.js +0 -93
- package/lib/utils/coveredCall/createTimeOracle.d.ts +0 -1
- package/lib/utils/coveredCall/createTimeOracle.js +0 -92
- package/lib/utils/coveredCall/getAddCoveredCallVaultAuthorizedUserTx.d.ts +0 -1
- package/lib/utils/coveredCall/getClaimAllTx.d.ts +0 -1
- package/lib/utils/coveredCall/getClaimTx.d.ts +0 -1
- package/lib/utils/coveredCall/getCloseAuctionTx.d.ts +0 -1
- package/lib/utils/coveredCall/getCloseVaultTx.d.ts +0 -1
- package/lib/utils/coveredCall/getDeliveryTx.d.ts +0 -1
- package/lib/utils/coveredCall/getDepositTx.d.ts +0 -1
- package/lib/utils/coveredCall/getEvolutionTx.d.ts +0 -1
- package/lib/utils/coveredCall/getLastEvolutionTx.d.ts +0 -1
- package/lib/utils/coveredCall/getMakerClaimAllTx.d.ts +0 -1
- package/lib/utils/coveredCall/getMakerClaimAllTx.js +0 -59
- package/lib/utils/coveredCall/getMakerClaimTx.d.ts +0 -1
- package/lib/utils/coveredCall/getMakerClaimTx.js +0 -59
- package/lib/utils/coveredCall/getNewAuctionTx.d.ts +0 -1
- package/lib/utils/coveredCall/getNewAuctionTx.js +0 -66
- package/lib/utils/coveredCall/getNewAuctionWithNextCoveredCallVaultTx.d.ts +0 -1
- package/lib/utils/coveredCall/getNewAuctionWithNextCoveredCallVaultTx.js +0 -64
- package/lib/utils/coveredCall/getNewBidTx.d.ts +0 -1
- package/lib/utils/coveredCall/getNewCoveredCallVaultTx.d.ts +0 -1
- package/lib/utils/coveredCall/getNewManagerTx.d.ts +0 -1
- package/lib/utils/coveredCall/getRefundTx.d.ts +0 -1
- package/lib/utils/coveredCall/getRefundTx.js +0 -59
- package/lib/utils/coveredCall/getRemoveBidTx.d.ts +0 -1
- package/lib/utils/coveredCall/getRemoveBidTx.js +0 -60
- package/lib/utils/coveredCall/getRemoveCoveredCallVaultAuthorizedUserTx.d.ts +0 -1
- package/lib/utils/coveredCall/getRollOverTx.d.ts +0 -1
- package/lib/utils/coveredCall/getRollOverTx.js +0 -60
- package/lib/utils/coveredCall/getSettleTx.d.ts +0 -1
- package/lib/utils/coveredCall/getSettleTx.js +0 -62
- package/lib/utils/coveredCall/getSettleWithRollOverTx.d.ts +0 -1
- package/lib/utils/coveredCall/getSettleWithRollOverTx.js +0 -62
- package/lib/utils/coveredCall/getSubscribeTx.d.ts +0 -1
- package/lib/utils/coveredCall/getSubscribeTx.js +0 -60
- package/lib/utils/coveredCall/getUnsubscribeTx.d.ts +0 -1
- package/lib/utils/coveredCall/getUpdateCapacityTx.d.ts +0 -1
- package/lib/utils/coveredCall/getUpdateNextVaultConfigTx.d.ts +0 -1
- package/lib/utils/coveredCall/getUpdatePayoffConfigTx.d.ts +0 -1
- package/lib/utils/coveredCall/getUpdatePayoffConfigTx.js +0 -62
- package/lib/utils/coveredCall/getUpdateVaultConfigTx.d.ts +0 -1
- package/lib/utils/coveredCall/getUpdateVaultConfigTx.js +0 -65
- package/lib/utils/coveredCall/getWithdrawTx.d.ts +0 -1
- package/lib/utils/getCreateTokenRegistryTx.d.ts +0 -1
- package/lib/utils/getCreateTokenRegistryTx.js +0 -59
- package/lib/utils/getMakersShares.d.ts +0 -8
- package/lib/utils/getMakersShares.js +0 -145
- package/lib/utils/getNewOracleTx.d.ts +0 -1
- package/lib/utils/getNewOracleTx.js +0 -59
- package/lib/utils/getNewTimeOracleTx.d.ts +0 -1
- package/lib/utils/getNewTimeOracleTx.js +0 -56
- package/lib/utils/getUpdateOracleTx.d.ts +0 -1
- package/lib/utils/getUpdateOracleTx.js +0 -64
- package/lib/utils/getUpdateTimeOracleTx.d.ts +0 -1
- package/lib/utils/getUsersShares.d.ts +0 -9
- package/lib/utils/getUsersShares.js +0 -148
- package/lib/utils/getVaultIndexInRegistry.d.ts +0 -1
- package/lib/utils/getVaultIndexInRegistry.js +0 -61
- package/lib/utils/isObjAvailable.d.ts +0 -0
- package/lib/utils/isObjAvailable.js +0 -14
- package/lib/utils/loadUsersDepositData.d.ts +0 -8
- package/lib/utils/loadUsersDepositData.js +0 -157
- /package/lib/test/{getMakersShares.d.ts → authorized/testAuthorizedNewPortfolioVault.d.ts} +0 -0
- /package/lib/test/{getUsersShares.d.ts → authorized/testAuthorizedUpdateUpcomingVaultConfig.d.ts} +0 -0
- /package/lib/test/{testClaim.d.ts → authorized/testAuthorizedUpdateWarmupVaultConfig.d.ts} +0 -0
- /package/lib/test/{testDeposit.d.ts → helper/getAuctionMaxSize.d.ts} +0 -0
- /package/lib/test/{testNewAuction.d.ts → helper/getUserStatus.d.ts} +0 -0
- /package/lib/test/{testNewVault.d.ts → user/testClaim.d.ts} +0 -0
- /package/lib/test/{testOracle.d.ts → user/testCompound.d.ts} +0 -0
- /package/lib/test/{testSettle.d.ts → user/testDeposit.d.ts} +0 -0
- /package/lib/test/{testUnsubscribe.d.ts → user/testHarvest.d.ts} +0 -0
- /package/lib/test/{testWithdraw.d.ts → user/testNewBid.d.ts} +0 -0
|
@@ -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 (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) 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,15 +37,15 @@ 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(gasBudget, packageId, managerCap,
|
|
40
|
+
function getUpdateCapacityTx(gasBudget, packageId, managerCap, typeArguments, registry, index, capacity) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
42
|
var tx;
|
|
43
43
|
return __generator(this, function (_a) {
|
|
44
44
|
tx = {
|
|
45
45
|
packageObjectId: packageId,
|
|
46
|
-
module: '
|
|
46
|
+
module: 'portfolio',
|
|
47
47
|
function: 'update_capacity',
|
|
48
|
-
typeArguments:
|
|
48
|
+
typeArguments: typeArguments,
|
|
49
49
|
arguments: [
|
|
50
50
|
managerCap,
|
|
51
51
|
registry,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
public(friend) entry fun claim_and_harvest<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
3
|
+
registry: &mut Registry,
|
|
4
|
+
index: u64,
|
|
5
|
+
ctx: &mut TxContext
|
|
6
|
+
)
|
|
7
|
+
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
8
|
+
*/
|
|
9
|
+
export declare function getClaimAndHarvestTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string): Promise<any>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.getClaimAndHarvestTx = void 0;
|
|
40
|
+
/**
|
|
41
|
+
public(friend) entry fun claim_and_harvest<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
42
|
+
registry: &mut Registry,
|
|
43
|
+
index: u64,
|
|
44
|
+
ctx: &mut TxContext
|
|
45
|
+
)
|
|
46
|
+
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
47
|
+
*/
|
|
48
|
+
function getClaimAndHarvestTx(gasBudget, packageId, registry, typeArguments, index) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
50
|
+
var tx;
|
|
51
|
+
return __generator(this, function (_a) {
|
|
52
|
+
tx = {
|
|
53
|
+
packageObjectId: packageId,
|
|
54
|
+
module: 'portfolio',
|
|
55
|
+
function: 'claim_and_harvest',
|
|
56
|
+
typeArguments: typeArguments,
|
|
57
|
+
arguments: [
|
|
58
|
+
registry,
|
|
59
|
+
index,
|
|
60
|
+
],
|
|
61
|
+
gasBudget: gasBudget,
|
|
62
|
+
};
|
|
63
|
+
return [2 /*return*/, tx];
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
exports.getClaimAndHarvestTx = getClaimAndHarvestTx;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
public(friend) entry fun claim<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
3
|
+
registry: &mut Registry,
|
|
4
|
+
index: u64,
|
|
5
|
+
ctx: &mut TxContext
|
|
6
|
+
)
|
|
7
|
+
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
8
|
+
*/
|
|
9
|
+
export declare function getClaimTx(gasBudget: number, packageId: string, registry: string, typeArguments: 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 (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) 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,15 +37,23 @@ 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
|
-
|
|
40
|
+
/**
|
|
41
|
+
public(friend) entry fun claim<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
42
|
+
registry: &mut Registry,
|
|
43
|
+
index: u64,
|
|
44
|
+
ctx: &mut TxContext
|
|
45
|
+
)
|
|
46
|
+
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
47
|
+
*/
|
|
48
|
+
function getClaimTx(gasBudget, packageId, registry, typeArguments, index) {
|
|
41
49
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
50
|
var tx;
|
|
43
51
|
return __generator(this, function (_a) {
|
|
44
52
|
tx = {
|
|
45
53
|
packageObjectId: packageId,
|
|
46
|
-
module: '
|
|
54
|
+
module: 'portfolio',
|
|
47
55
|
function: 'claim',
|
|
48
|
-
typeArguments:
|
|
56
|
+
typeArguments: typeArguments,
|
|
49
57
|
arguments: [
|
|
50
58
|
registry,
|
|
51
59
|
index,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
public entry fun compound<TOKEN, O_TOKEN>(
|
|
3
|
+
registry: &mut Registry,
|
|
4
|
+
index: u64,
|
|
5
|
+
ctx: &mut TxContext,
|
|
6
|
+
)
|
|
7
|
+
* @param typeArguments [TOKEN, O_TOKEN]
|
|
8
|
+
*/
|
|
9
|
+
export declare function getCompoundTx(gasBudget: number, packageId: string, registry: string, typeArguments: 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 (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) 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]) {
|
|
@@ -36,21 +36,27 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
|
|
39
|
+
exports.getCompoundTx = void 0;
|
|
40
|
+
/**
|
|
41
|
+
public entry fun compound<TOKEN, O_TOKEN>(
|
|
42
|
+
registry: &mut Registry,
|
|
43
|
+
index: u64,
|
|
44
|
+
ctx: &mut TxContext,
|
|
45
|
+
)
|
|
46
|
+
* @param typeArguments [TOKEN, O_TOKEN]
|
|
47
|
+
*/
|
|
48
|
+
function getCompoundTx(gasBudget, packageId, registry, typeArguments, index) {
|
|
41
49
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
50
|
var tx;
|
|
43
51
|
return __generator(this, function (_a) {
|
|
44
52
|
tx = {
|
|
45
53
|
packageObjectId: packageId,
|
|
46
|
-
module: '
|
|
47
|
-
function: '
|
|
48
|
-
typeArguments:
|
|
54
|
+
module: 'portfolio',
|
|
55
|
+
function: 'compound',
|
|
56
|
+
typeArguments: typeArguments,
|
|
49
57
|
arguments: [
|
|
50
|
-
managerCap,
|
|
51
58
|
registry,
|
|
52
59
|
index,
|
|
53
|
-
address,
|
|
54
60
|
],
|
|
55
61
|
gasBudget: gasBudget,
|
|
56
62
|
};
|
|
@@ -58,4 +64,4 @@ function getAddCoveredCallVaultAuthorizedUserTx(gasBudget, packageId, managerCap
|
|
|
58
64
|
});
|
|
59
65
|
});
|
|
60
66
|
}
|
|
61
|
-
exports.
|
|
67
|
+
exports.getCompoundTx = getCompoundTx;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
public(friend) entry fun deposit<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
3
|
+
registry: &mut Registry,
|
|
4
|
+
index: u64,
|
|
5
|
+
coins: vector<Coin<D_TOKEN>>,
|
|
6
|
+
amount: u64,
|
|
7
|
+
ctx: &mut TxContext
|
|
8
|
+
)
|
|
9
|
+
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
10
|
+
*/
|
|
11
|
+
export declare function getDepositTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], vaultIndex: string, coins: 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 (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) 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,19 +37,29 @@ 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
|
-
|
|
40
|
+
/**
|
|
41
|
+
public(friend) entry fun deposit<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
42
|
+
registry: &mut Registry,
|
|
43
|
+
index: u64,
|
|
44
|
+
coins: vector<Coin<D_TOKEN>>,
|
|
45
|
+
amount: u64,
|
|
46
|
+
ctx: &mut TxContext
|
|
47
|
+
)
|
|
48
|
+
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
49
|
+
*/
|
|
50
|
+
function getDepositTx(gasBudget, packageId, registry, typeArguments, vaultIndex, coins, amount) {
|
|
41
51
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
52
|
var tx;
|
|
43
53
|
return __generator(this, function (_a) {
|
|
44
54
|
tx = {
|
|
45
55
|
packageObjectId: packageId,
|
|
46
|
-
module: '
|
|
56
|
+
module: 'portfolio',
|
|
47
57
|
function: 'deposit',
|
|
48
|
-
typeArguments:
|
|
58
|
+
typeArguments: typeArguments,
|
|
49
59
|
arguments: [
|
|
50
60
|
registry,
|
|
51
61
|
vaultIndex,
|
|
52
|
-
|
|
62
|
+
coins,
|
|
53
63
|
amount,
|
|
54
64
|
],
|
|
55
65
|
gasBudget: gasBudget,
|
|
@@ -59,7 +69,3 @@ function getDepositTx(gasBudget, packageId, registry, typeArgument, vaultIndex,
|
|
|
59
69
|
});
|
|
60
70
|
}
|
|
61
71
|
exports.getDepositTx = getDepositTx;
|
|
62
|
-
/*
|
|
63
|
-
sui client call --gas-budget 1000 --package $PACKAGE --module "covered_call" --function "deposit"
|
|
64
|
-
--type-args 0x27b3674c685046f66cad1d5496d2967894fa5329::token::USDC --args $VAULT_REGISTRY 1 true $TOKENAID 9999
|
|
65
|
-
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
public(friend) entry fun harvest<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
3
|
+
registry: &mut Registry,
|
|
4
|
+
index: u64,
|
|
5
|
+
ctx: &mut TxContext
|
|
6
|
+
)
|
|
7
|
+
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
8
|
+
*/
|
|
9
|
+
export declare function getHarvestTx(gasBudget: number, packageId: string, registry: string, typeArguments: 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 (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) 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]) {
|
|
@@ -36,16 +36,24 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
|
|
39
|
+
exports.getHarvestTx = void 0;
|
|
40
|
+
/**
|
|
41
|
+
public(friend) entry fun harvest<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
42
|
+
registry: &mut Registry,
|
|
43
|
+
index: u64,
|
|
44
|
+
ctx: &mut TxContext
|
|
45
|
+
)
|
|
46
|
+
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
47
|
+
*/
|
|
48
|
+
function getHarvestTx(gasBudget, packageId, registry, typeArguments, index) {
|
|
41
49
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
50
|
var tx;
|
|
43
51
|
return __generator(this, function (_a) {
|
|
44
52
|
tx = {
|
|
45
53
|
packageObjectId: packageId,
|
|
46
|
-
module: '
|
|
47
|
-
function: '
|
|
48
|
-
typeArguments:
|
|
54
|
+
module: 'portfolio',
|
|
55
|
+
function: 'harvest',
|
|
56
|
+
typeArguments: typeArguments,
|
|
49
57
|
arguments: [
|
|
50
58
|
registry,
|
|
51
59
|
index,
|
|
@@ -56,4 +64,4 @@ function getClaimAllTx(gasBudget, packageId, registry, typeArgument, index) {
|
|
|
56
64
|
});
|
|
57
65
|
});
|
|
58
66
|
}
|
|
59
|
-
exports.
|
|
67
|
+
exports.getHarvestTx = getHarvestTx;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
public(friend) entry fun new_bid<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
3
|
+
registry: &mut Registry,
|
|
4
|
+
index: u64,
|
|
5
|
+
price_oracle: &Oracle<O_TOKEN>,
|
|
6
|
+
time: &Time,
|
|
7
|
+
coins: vector<Coin<B_TOKEN>>,
|
|
8
|
+
size: u64,
|
|
9
|
+
ctx: &mut TxContext,
|
|
10
|
+
)
|
|
11
|
+
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
12
|
+
*/
|
|
13
|
+
export declare function getNewBidTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string, priceOracle: string, timeOracle: string, coins: string[], size: 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 (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) 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,21 +37,34 @@ 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
|
-
|
|
40
|
+
/**
|
|
41
|
+
public(friend) entry fun new_bid<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
42
|
+
registry: &mut Registry,
|
|
43
|
+
index: u64,
|
|
44
|
+
price_oracle: &Oracle<O_TOKEN>,
|
|
45
|
+
time: &Time,
|
|
46
|
+
coins: vector<Coin<B_TOKEN>>,
|
|
47
|
+
size: u64,
|
|
48
|
+
ctx: &mut TxContext,
|
|
49
|
+
)
|
|
50
|
+
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
51
|
+
*/
|
|
52
|
+
function getNewBidTx(gasBudget, packageId, registry, typeArguments, index, priceOracle, timeOracle, coins, size) {
|
|
41
53
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
54
|
var tx;
|
|
43
55
|
return __generator(this, function (_a) {
|
|
44
56
|
tx = {
|
|
45
57
|
packageObjectId: packageId,
|
|
46
|
-
module: '
|
|
58
|
+
module: 'portfolio',
|
|
47
59
|
function: 'new_bid',
|
|
48
|
-
typeArguments:
|
|
60
|
+
typeArguments: typeArguments,
|
|
49
61
|
arguments: [
|
|
50
62
|
registry,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
63
|
+
index,
|
|
64
|
+
priceOracle,
|
|
65
|
+
timeOracle,
|
|
66
|
+
coins,
|
|
67
|
+
size
|
|
55
68
|
],
|
|
56
69
|
gasBudget: gasBudget,
|
|
57
70
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
public(friend) entry fun unsubscribe<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
3
|
+
registry: &mut Registry,
|
|
4
|
+
index: u64,
|
|
5
|
+
share: Option<u64>,
|
|
6
|
+
ctx: &mut TxContext
|
|
7
|
+
)
|
|
8
|
+
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
9
|
+
*/
|
|
10
|
+
export declare function getUnsubscribeTx(gasBudget: number, packageId: string, registry: string, typeArguments: 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 (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) 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,19 +37,28 @@ 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
|
-
|
|
40
|
+
/**
|
|
41
|
+
public(friend) entry fun unsubscribe<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
42
|
+
registry: &mut Registry,
|
|
43
|
+
index: u64,
|
|
44
|
+
share: Option<u64>,
|
|
45
|
+
ctx: &mut TxContext
|
|
46
|
+
)
|
|
47
|
+
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
48
|
+
*/
|
|
49
|
+
function getUnsubscribeTx(gasBudget, packageId, registry, typeArguments, index, share) {
|
|
41
50
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
51
|
var tx;
|
|
43
52
|
return __generator(this, function (_a) {
|
|
44
53
|
tx = {
|
|
45
54
|
packageObjectId: packageId,
|
|
46
|
-
module: '
|
|
55
|
+
module: 'portfolio',
|
|
47
56
|
function: 'unsubscribe',
|
|
48
|
-
typeArguments:
|
|
57
|
+
typeArguments: typeArguments,
|
|
49
58
|
arguments: [
|
|
50
59
|
registry,
|
|
51
60
|
index,
|
|
52
|
-
share
|
|
61
|
+
share
|
|
53
62
|
],
|
|
54
63
|
gasBudget: gasBudget,
|
|
55
64
|
};
|
|
@@ -58,6 +67,3 @@ function getUnsubscribeTx(gasBudget, packageId, registry, typeArgument, index, s
|
|
|
58
67
|
});
|
|
59
68
|
}
|
|
60
69
|
exports.getUnsubscribeTx = getUnsubscribeTx;
|
|
61
|
-
/*
|
|
62
|
-
sui client call --package 0x1543511bdce9ea3c401c4939126cea518adee965 --module covered_call --function unsubscribe --type-args 0x2::sui::SUI --args 0xb02452d0bbef3cbdc7840ea5bad27bcdd4031675 0 --gas-budget 100000
|
|
63
|
-
*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
public(friend) entry fun withdraw<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
3
|
+
registry: &mut Registry,
|
|
4
|
+
index: u64,
|
|
5
|
+
share: Option<u64>,
|
|
6
|
+
ctx: &mut TxContext
|
|
7
|
+
)
|
|
8
|
+
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
9
|
+
*/
|
|
10
|
+
export declare function getWithdrawTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], vaultIndex: 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 (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) 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,15 +37,24 @@ 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
|
-
|
|
40
|
+
/**
|
|
41
|
+
public(friend) entry fun withdraw<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
42
|
+
registry: &mut Registry,
|
|
43
|
+
index: u64,
|
|
44
|
+
share: Option<u64>,
|
|
45
|
+
ctx: &mut TxContext
|
|
46
|
+
)
|
|
47
|
+
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
48
|
+
*/
|
|
49
|
+
function getWithdrawTx(gasBudget, packageId, registry, typeArguments, vaultIndex, share) {
|
|
41
50
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
51
|
var tx;
|
|
43
52
|
return __generator(this, function (_a) {
|
|
44
53
|
tx = {
|
|
45
54
|
packageObjectId: packageId,
|
|
46
|
-
module: '
|
|
55
|
+
module: 'portfolio',
|
|
47
56
|
function: 'withdraw',
|
|
48
|
-
typeArguments:
|
|
57
|
+
typeArguments: typeArguments,
|
|
49
58
|
arguments: [
|
|
50
59
|
registry,
|
|
51
60
|
vaultIndex,
|
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
|
+
"version": "1.0.0",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@mysten/sui.js": "^0.27.0",
|
|
8
8
|
"@types/node": "^17.0.0",
|
|
@@ -80,4 +80,4 @@
|
|
|
80
80
|
"url": "https://github.com/Typus-Lab/typus-sdk/issues"
|
|
81
81
|
},
|
|
82
82
|
"homepage": "https://github.com/Typus-Lab/typus-sdk#readme"
|
|
83
|
-
}
|
|
83
|
+
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { JsonRpcProvider } from '@mysten/sui.js';
|
|
2
|
-
export declare function getBidEventsCranker(type: string, renewSec: number, provider: JsonRpcProvider): Promise<void>;
|
|
3
|
-
export declare function getNewAuctionEventsCranker(type: string, renewSec: number, provider: JsonRpcProvider): Promise<void>;
|
|
4
|
-
export declare function getEndAuctionEventsCranker(type: string, renewSec: number, provider: JsonRpcProvider): Promise<void>;
|
|
5
|
-
export declare function sendEventToTelegramChannel(text: any): Promise<void>;
|