@typus/typus-sdk 0.6.3 → 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 +17 -20
- package/lib/constants.d.ts +9 -7
- package/lib/constants.js +10 -8
- package/lib/test/authorized/testAuthorizedNewPortfolioVault.js +82 -0
- package/lib/test/{testClaim.js → authorized/testAuthorizedUpdateUpcomingVaultConfig.js} +19 -30
- package/lib/test/authorized/testAuthorizedUpdateWarmupVaultConfig.js +68 -0
- package/lib/test/getVaultData.js +1 -1
- package/lib/test/getWhiteListFromRegistry.js +1 -1
- package/lib/test/helper/getAuctionMaxSize.js +76 -0
- package/lib/test/helper/getUserStatus.js +75 -0
- package/lib/test/{testWithdraw.js → user/testClaim.js} +14 -17
- package/lib/test/{getMakersShares.js → user/testCompound.js} +20 -6
- package/lib/test/{testUnsubscribe.js → user/testDeposit.js} +28 -37
- package/lib/test/{getUsersShares.js → user/testHarvest.js} +20 -6
- 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} +15 -19
- package/lib/utils/fetchData.d.ts +72 -61
- package/lib/utils/fetchData.js +26 -197
- package/lib/utils/getVaultData.d.ts +2 -2
- package/lib/utils/getVaultData.js +123 -161
- package/lib/utils/getWhiteListFromRegistry.js +0 -1
- package/lib/utils/portfolio/authorized/getAuthorizedAddPortfolioVaultAuthorizedUserTx.d.ts +1 -1
- package/lib/utils/portfolio/authorized/getAuthorizedAddPortfolioVaultAuthorizedUserTx.js +2 -2
- package/lib/utils/portfolio/authorized/getAuthorizedNewPortfolioVaultTx.d.ts +4 -3
- package/lib/utils/portfolio/authorized/getAuthorizedNewPortfolioVaultTx.js +5 -3
- package/lib/utils/portfolio/authorized/getAuthorizedRemovePortfolioVaultAuthorizedUserTx.d.ts +1 -1
- package/lib/utils/portfolio/authorized/getAuthorizedRemovePortfolioVaultAuthorizedUserTx.js +2 -2
- package/lib/utils/portfolio/authorized/getAuthorizedUpdateUpcomingVaultConfigTx.d.ts +4 -0
- package/lib/utils/portfolio/authorized/{getAuthorizedUpdateNextVaultConfigTx.js → getAuthorizedUpdateUpcomingVaultConfigTx.js} +5 -5
- package/lib/utils/portfolio/authorized/getAuthorizedUpdateWarmupVaultConfigTx.d.ts +1 -0
- package/lib/utils/portfolio/{manager/getUpdateVaultConfigTx.js → authorized/getAuthorizedUpdateWarmupVaultConfigTx.js} +4 -5
- package/lib/utils/portfolio/helper/getAuctionMaxSize.d.ts +8 -0
- package/lib/utils/portfolio/{manager/getLastEvolutionTx.js → helper/getAuctionMaxSize.js} +11 -7
- package/lib/utils/portfolio/helper/getUserStatus.d.ts +29 -0
- package/lib/utils/portfolio/{authorized/getAuthorizedEvolutionTx.js → helper/getUserStatus.js} +50 -9
- package/lib/utils/portfolio/manager/getAddAuthorizedUserTx.d.ts +8 -1
- package/lib/utils/portfolio/manager/getAddAuthorizedUserTx.js +9 -2
- package/lib/utils/portfolio/manager/getAddPortfolioVaultAuthorizedUserTx.d.ts +6 -0
- package/lib/utils/portfolio/manager/getAddPortfolioVaultAuthorizedUserTx.js +6 -0
- package/lib/utils/portfolio/manager/getEvolutionTx.d.ts +15 -1
- package/lib/utils/portfolio/manager/getEvolutionTx.js +14 -0
- package/lib/utils/portfolio/manager/getNewManagerTx.d.ts +8 -1
- package/lib/utils/portfolio/manager/getNewManagerTx.js +9 -2
- package/lib/utils/portfolio/manager/getNewPortfolioVaultTx.d.ts +5 -5
- package/lib/utils/portfolio/manager/getNewPortfolioVaultTx.js +5 -5
- package/lib/utils/portfolio/manager/getRemoveAuthorizedUserTx.d.ts +7 -0
- package/lib/utils/portfolio/manager/getRemoveAuthorizedUserTx.js +7 -0
- package/lib/utils/portfolio/manager/getRemoveManagerTx.d.ts +5 -0
- package/lib/utils/portfolio/manager/getRemoveManagerTx.js +5 -0
- package/lib/utils/portfolio/manager/getRemovePortfolioVaultAuthorizedUserTx.d.ts +7 -1
- package/lib/utils/portfolio/manager/getRemovePortfolioVaultAuthorizedUserTx.js +7 -1
- package/lib/utils/portfolio/user/getClaimAndHarvestTx.d.ts +9 -1
- package/lib/utils/portfolio/user/getClaimAndHarvestTx.js +11 -3
- package/lib/utils/portfolio/user/getClaimTx.d.ts +9 -1
- package/lib/utils/portfolio/user/getClaimTx.js +8 -0
- package/lib/utils/portfolio/user/getCompoundTx.d.ts +9 -0
- package/lib/utils/portfolio/{authorized/getAuthorizedLastEvolutionTx.js → user/getCompoundTx.js} +12 -6
- package/lib/utils/portfolio/user/getDepositTx.d.ts +10 -0
- package/lib/utils/portfolio/user/getDepositTx.js +10 -0
- package/lib/utils/portfolio/user/getHarvestTx.d.ts +9 -1
- package/lib/utils/portfolio/user/getHarvestTx.js +8 -0
- package/lib/utils/portfolio/user/getNewBidTx.d.ts +13 -1
- package/lib/utils/portfolio/user/getNewBidTx.js +12 -0
- package/lib/utils/portfolio/user/getUnsubscribeTx.d.ts +10 -1
- package/lib/utils/portfolio/user/getUnsubscribeTx.js +9 -0
- package/lib/utils/portfolio/user/getWithdrawTx.d.ts +10 -1
- package/lib/utils/portfolio/user/getWithdrawTx.js +9 -0
- package/package.json +1 -1
- package/lib/test/eventListener.d.ts +0 -5
- package/lib/test/eventListener.js +0 -397
- 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/getAuthorizedDeliveryTx.js +0 -56
- 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/getAuthorizedNewCoveredCallVaultTx.js +0 -76
- 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/getAuthorizedUpdateCapacityTx.js +0 -56
- package/lib/utils/authorized/getAuthorizedUpdateNextVaultConfigTx.d.ts +0 -1
- package/lib/utils/authorized/getAuthorizedUpdateNextVaultConfigTx.js +0 -65
- package/lib/utils/authorized/getAuthorizedUpdateVaultConfigTx.d.ts +0 -1
- package/lib/utils/authorized/getAuthorizedUpdateVaultConfigTx.js +0 -64
- 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/getAddCoveredCallVaultAuthorizedUserTx.js +0 -61
- package/lib/utils/coveredCall/getClaimAllTx.d.ts +0 -1
- package/lib/utils/coveredCall/getClaimAllTx.js +0 -59
- package/lib/utils/coveredCall/getClaimTx.d.ts +0 -1
- package/lib/utils/coveredCall/getClaimTx.js +0 -59
- package/lib/utils/coveredCall/getCloseAuctionTx.d.ts +0 -1
- package/lib/utils/coveredCall/getCloseAuctionTx.js +0 -61
- package/lib/utils/coveredCall/getCloseVaultTx.d.ts +0 -1
- package/lib/utils/coveredCall/getCloseVaultTx.js +0 -60
- package/lib/utils/coveredCall/getDeliveryTx.d.ts +0 -1
- package/lib/utils/coveredCall/getDeliveryTx.js +0 -61
- package/lib/utils/coveredCall/getDepositTx.d.ts +0 -1
- package/lib/utils/coveredCall/getDepositTx.js +0 -65
- package/lib/utils/coveredCall/getEvolutionTx.d.ts +0 -1
- package/lib/utils/coveredCall/getEvolutionTx.js +0 -64
- package/lib/utils/coveredCall/getLastEvolutionTx.d.ts +0 -1
- package/lib/utils/coveredCall/getLastEvolutionTx.js +0 -63
- 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/getNewBidTx.js +0 -62
- package/lib/utils/coveredCall/getNewCoveredCallVaultTx.d.ts +0 -1
- package/lib/utils/coveredCall/getNewCoveredCallVaultTx.js +0 -77
- package/lib/utils/coveredCall/getNewManagerTx.d.ts +0 -1
- package/lib/utils/coveredCall/getNewManagerTx.js +0 -59
- 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/getRemoveCoveredCallVaultAuthorizedUserTx.js +0 -61
- package/lib/utils/coveredCall/getRemoveManagerTx.d.ts +0 -1
- package/lib/utils/coveredCall/getRemoveManagerTx.js +0 -58
- 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/getUnsubscribeTx.js +0 -63
- package/lib/utils/coveredCall/getUpdateCapacityTx.d.ts +0 -1
- package/lib/utils/coveredCall/getUpdateCapacityTx.js +0 -61
- package/lib/utils/coveredCall/getUpdateNextVaultConfigTx.d.ts +0 -1
- package/lib/utils/coveredCall/getUpdateNextVaultConfigTx.js +0 -66
- 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/coveredCall/getWithdrawTx.js +0 -60
- package/lib/utils/fetchPortfolioData.d.ts +0 -93
- package/lib/utils/fetchPortfolioData.js +0 -205
- 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/getUpdateTimeOracleTx.js +0 -60
- 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 -160
- package/lib/utils/portfolio/authorized/getAuthorizedEvolutionTx.d.ts +0 -1
- package/lib/utils/portfolio/authorized/getAuthorizedLastEvolutionTx.d.ts +0 -1
- package/lib/utils/portfolio/authorized/getAuthorizedUpdateNextVaultConfigTx.d.ts +0 -4
- package/lib/utils/portfolio/authorized/getAuthorizedUpdateVaultConfigTx.d.ts +0 -1
- package/lib/utils/portfolio/authorized/getAuthorizedUpdateVaultConfigTx.js +0 -64
- package/lib/utils/portfolio/manager/getLastEvolutionTx.d.ts +0 -1
- package/lib/utils/portfolio/manager/getUpdateNextVaultConfigTx.d.ts +0 -4
- package/lib/utils/portfolio/manager/getUpdateNextVaultConfigTx.js +0 -71
- package/lib/utils/portfolio/manager/getUpdateVaultConfigTx.d.ts +0 -1
- package/lib/utils/portfolio/user/getCompoundPremiumTx.d.ts +0 -1
- package/lib/utils/portfolio/user/getCompoundPremiumTx.js +0 -60
- /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
|
@@ -58,6 +58,7 @@ exports.getAuthorizedNewPortfolioVaultTx = void 0;
|
|
|
58
58
|
final_price: u64,
|
|
59
59
|
auction_duration_in_ms: u64,
|
|
60
60
|
leverage: u64,
|
|
61
|
+
has_next: bool,
|
|
61
62
|
whitelist: vector<address>,
|
|
62
63
|
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
63
64
|
*/
|
|
@@ -69,11 +70,11 @@ dTokenDecimal, // u64
|
|
|
69
70
|
bTokenDecimal, // u64
|
|
70
71
|
oTokenDecimal, // u64
|
|
71
72
|
capacity, // u64
|
|
72
|
-
|
|
73
|
+
strikePct, // vector<u64>
|
|
73
74
|
weight, // vector<u64>
|
|
74
75
|
isBuyer, // vector<bool>
|
|
75
76
|
strikeIncrement, // u64
|
|
76
|
-
lotSize, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, leverage) {
|
|
77
|
+
lotSize, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, leverage, hasNext) {
|
|
77
78
|
return __awaiter(this, void 0, void 0, function () {
|
|
78
79
|
var tx;
|
|
79
80
|
return __generator(this, function (_a) {
|
|
@@ -93,7 +94,7 @@ lotSize, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, l
|
|
|
93
94
|
bTokenDecimal,
|
|
94
95
|
oTokenDecimal,
|
|
95
96
|
capacity,
|
|
96
|
-
|
|
97
|
+
strikePct,
|
|
97
98
|
weight,
|
|
98
99
|
isBuyer,
|
|
99
100
|
strikeIncrement,
|
|
@@ -103,6 +104,7 @@ lotSize, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, l
|
|
|
103
104
|
finalPrice,
|
|
104
105
|
auctionDurationInMs,
|
|
105
106
|
leverage,
|
|
107
|
+
hasNext,
|
|
106
108
|
whitelist,
|
|
107
109
|
],
|
|
108
110
|
gasBudget: gasBudget,
|
package/lib/utils/portfolio/authorized/getAuthorizedRemovePortfolioVaultAuthorizedUserTx.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
3
3
|
*/
|
|
4
|
-
export declare function getAuthorizedRemovePortfolioVaultAuthorizedUserTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string,
|
|
4
|
+
export declare function getAuthorizedRemovePortfolioVaultAuthorizedUserTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string, addresses: string[]): Promise<any>;
|
|
@@ -40,7 +40,7 @@ exports.getAuthorizedRemovePortfolioVaultAuthorizedUserTx = void 0;
|
|
|
40
40
|
/**
|
|
41
41
|
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
42
42
|
*/
|
|
43
|
-
function getAuthorizedRemovePortfolioVaultAuthorizedUserTx(gasBudget, packageId, registry, typeArguments, index,
|
|
43
|
+
function getAuthorizedRemovePortfolioVaultAuthorizedUserTx(gasBudget, packageId, registry, typeArguments, index, addresses) {
|
|
44
44
|
return __awaiter(this, void 0, void 0, function () {
|
|
45
45
|
var tx;
|
|
46
46
|
return __generator(this, function (_a) {
|
|
@@ -52,7 +52,7 @@ function getAuthorizedRemovePortfolioVaultAuthorizedUserTx(gasBudget, packageId,
|
|
|
52
52
|
arguments: [
|
|
53
53
|
registry,
|
|
54
54
|
index,
|
|
55
|
-
|
|
55
|
+
addresses,
|
|
56
56
|
],
|
|
57
57
|
gasBudget: gasBudget,
|
|
58
58
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function getAuthorizedUpdateUpcomingVaultConfigTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], index: string, strikePct: string[], // vector<u64>
|
|
2
|
+
weight: string[], // vector<u64>
|
|
3
|
+
isBuyer: boolean[], // vector<bool>
|
|
4
|
+
strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
|
|
@@ -36,8 +36,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
function
|
|
39
|
+
exports.getAuthorizedUpdateUpcomingVaultConfigTx = void 0;
|
|
40
|
+
function getAuthorizedUpdateUpcomingVaultConfigTx(gasBudget, packageId, registry, typeArguments, index, strikePct, // vector<u64>
|
|
41
41
|
weight, // vector<u64>
|
|
42
42
|
isBuyer, // vector<bool>
|
|
43
43
|
strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
|
|
@@ -47,12 +47,12 @@ strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
|
|
|
47
47
|
tx = {
|
|
48
48
|
packageObjectId: packageId,
|
|
49
49
|
module: 'portfolio',
|
|
50
|
-
function: '
|
|
50
|
+
function: 'authorized_update_upcoming_vault_config',
|
|
51
51
|
typeArguments: typeArguments,
|
|
52
52
|
arguments: [
|
|
53
53
|
registry,
|
|
54
54
|
index,
|
|
55
|
-
|
|
55
|
+
strikePct,
|
|
56
56
|
weight,
|
|
57
57
|
isBuyer,
|
|
58
58
|
strikeIncrement,
|
|
@@ -67,4 +67,4 @@ strikeIncrement, decaySpeed, initialPrice, finalPrice, auctionDurationInMs) {
|
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
exports.
|
|
70
|
+
exports.getAuthorizedUpdateUpcomingVaultConfigTx = getAuthorizedUpdateUpcomingVaultConfigTx;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getAuthorizedUpdateWarmupVaultConfigTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, index: string, strikeIncrement: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string): Promise<any>;
|
|
@@ -36,18 +36,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
function
|
|
39
|
+
exports.getAuthorizedUpdateWarmupVaultConfigTx = void 0;
|
|
40
|
+
function getAuthorizedUpdateWarmupVaultConfigTx(gasBudget, packageId, typeArguments, 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) {
|
|
44
44
|
tx = {
|
|
45
45
|
packageObjectId: packageId,
|
|
46
46
|
module: 'portfolio',
|
|
47
|
-
function: '
|
|
47
|
+
function: 'authorized_update_warmup_vault_config',
|
|
48
48
|
typeArguments: typeArguments,
|
|
49
49
|
arguments: [
|
|
50
|
-
managerCap,
|
|
51
50
|
registry,
|
|
52
51
|
index,
|
|
53
52
|
strikeIncrement,
|
|
@@ -62,4 +61,4 @@ function getUpdateVaultConfigTx(gasBudget, packageId, managerCap, typeArguments,
|
|
|
62
61
|
});
|
|
63
62
|
});
|
|
64
63
|
}
|
|
65
|
-
exports.
|
|
64
|
+
exports.getAuthorizedUpdateWarmupVaultConfigTx = getAuthorizedUpdateWarmupVaultConfigTx;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
public fun get_auction_max_size<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
3
|
+
registry: &Registry,
|
|
4
|
+
index: u64,
|
|
5
|
+
price_oracle: &Oracle<O_TOKEN>,
|
|
6
|
+
): u64
|
|
7
|
+
*/
|
|
8
|
+
export declare function getAuctionMaxSize(packageId: string, typeArguments: string[], registry: string, index: string, priceOracle: string): Promise<any>;
|
|
@@ -36,27 +36,31 @@ 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.getAuctionMaxSize = void 0;
|
|
40
|
+
/**
|
|
41
|
+
public fun get_auction_max_size<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
42
|
+
registry: &Registry,
|
|
43
|
+
index: u64,
|
|
44
|
+
price_oracle: &Oracle<O_TOKEN>,
|
|
45
|
+
): u64
|
|
46
|
+
*/
|
|
47
|
+
function getAuctionMaxSize(packageId, typeArguments, registry, index, priceOracle) {
|
|
41
48
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
49
|
var tx;
|
|
43
50
|
return __generator(this, function (_a) {
|
|
44
51
|
tx = {
|
|
45
52
|
packageObjectId: packageId,
|
|
46
53
|
module: 'portfolio',
|
|
47
|
-
function: '
|
|
54
|
+
function: 'get_auction_max_size',
|
|
48
55
|
typeArguments: typeArguments,
|
|
49
56
|
arguments: [
|
|
50
|
-
managerCap,
|
|
51
57
|
registry,
|
|
52
58
|
index,
|
|
53
59
|
priceOracle,
|
|
54
|
-
timeOracle,
|
|
55
60
|
],
|
|
56
|
-
gasBudget: gasBudget,
|
|
57
61
|
};
|
|
58
62
|
return [2 /*return*/, tx];
|
|
59
63
|
});
|
|
60
64
|
});
|
|
61
65
|
}
|
|
62
|
-
exports.
|
|
66
|
+
exports.getAuctionMaxSize = getAuctionMaxSize;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
struct GetUserStatusResult has copy, drop {
|
|
3
|
+
active: u64,
|
|
4
|
+
deactivating: u64,
|
|
5
|
+
inactive: u64,
|
|
6
|
+
warmup: u64,
|
|
7
|
+
bidder: u64,
|
|
8
|
+
premium: u64,
|
|
9
|
+
performance_fee: u64,
|
|
10
|
+
}
|
|
11
|
+
public fun get_user_status<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
12
|
+
registry: &Registry,
|
|
13
|
+
index: u64,
|
|
14
|
+
user: address,
|
|
15
|
+
): GetUserStatusResult
|
|
16
|
+
*/
|
|
17
|
+
export declare function getUserStatus(packageId: string, typeArguments: string[], registry: string, index: string, userAddress: string): Promise<any>;
|
|
18
|
+
interface GetUserStatusResult {
|
|
19
|
+
active: number;
|
|
20
|
+
deactivating: number;
|
|
21
|
+
inactive: number;
|
|
22
|
+
warmup: number;
|
|
23
|
+
bidder: number;
|
|
24
|
+
premium: number;
|
|
25
|
+
performance_fee: number;
|
|
26
|
+
}
|
|
27
|
+
export declare function parseUserStatusResult(rawData: Uint8Array): GetUserStatusResult;
|
|
28
|
+
export declare function intFromBytes(x: any): number;
|
|
29
|
+
export {};
|
package/lib/utils/portfolio/{authorized/getAuthorizedEvolutionTx.js → helper/getUserStatus.js}
RENAMED
|
@@ -36,28 +36,69 @@ 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.intFromBytes = exports.parseUserStatusResult = exports.getUserStatus = void 0;
|
|
40
|
+
/**
|
|
41
|
+
struct GetUserStatusResult has copy, drop {
|
|
42
|
+
active: u64,
|
|
43
|
+
deactivating: u64,
|
|
44
|
+
inactive: u64,
|
|
45
|
+
warmup: u64,
|
|
46
|
+
bidder: u64,
|
|
47
|
+
premium: u64,
|
|
48
|
+
performance_fee: u64,
|
|
49
|
+
}
|
|
50
|
+
public fun get_user_status<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
51
|
+
registry: &Registry,
|
|
52
|
+
index: u64,
|
|
53
|
+
user: address,
|
|
54
|
+
): GetUserStatusResult
|
|
55
|
+
*/
|
|
56
|
+
function getUserStatus(packageId, typeArguments, registry, index, userAddress) {
|
|
41
57
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
58
|
var tx;
|
|
43
59
|
return __generator(this, function (_a) {
|
|
44
60
|
tx = {
|
|
45
61
|
packageObjectId: packageId,
|
|
46
62
|
module: 'portfolio',
|
|
47
|
-
function: '
|
|
63
|
+
function: 'get_user_status',
|
|
48
64
|
typeArguments: typeArguments,
|
|
49
65
|
arguments: [
|
|
50
66
|
registry,
|
|
51
67
|
index,
|
|
52
|
-
|
|
53
|
-
timeOracle,
|
|
54
|
-
activationTsMs,
|
|
55
|
-
expirationTsMs,
|
|
68
|
+
userAddress,
|
|
56
69
|
],
|
|
57
|
-
gasBudget: gasBudget,
|
|
58
70
|
};
|
|
59
71
|
return [2 /*return*/, tx];
|
|
60
72
|
});
|
|
61
73
|
});
|
|
62
74
|
}
|
|
63
|
-
exports.
|
|
75
|
+
exports.getUserStatus = getUserStatus;
|
|
76
|
+
function parseUserStatusResult(rawData) {
|
|
77
|
+
var temp = [];
|
|
78
|
+
for (var i = 0; i < rawData.length / 8; ++i) {
|
|
79
|
+
// console.log(i)
|
|
80
|
+
temp.push(intFromBytes(rawData.slice(i * 8, (i + 1) * 8).reverse()));
|
|
81
|
+
}
|
|
82
|
+
var userStatusResult = {
|
|
83
|
+
active: temp[0],
|
|
84
|
+
deactivating: temp[1],
|
|
85
|
+
inactive: temp[2],
|
|
86
|
+
warmup: temp[3],
|
|
87
|
+
bidder: temp[4],
|
|
88
|
+
premium: temp[5],
|
|
89
|
+
performance_fee: temp[6],
|
|
90
|
+
};
|
|
91
|
+
return userStatusResult;
|
|
92
|
+
}
|
|
93
|
+
exports.parseUserStatusResult = parseUserStatusResult;
|
|
94
|
+
function intFromBytes(x) {
|
|
95
|
+
var val = 0;
|
|
96
|
+
for (var i = 0; i < x.length; ++i) {
|
|
97
|
+
val += x[i];
|
|
98
|
+
if (i < x.length - 1) {
|
|
99
|
+
val = val << 8;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return val;
|
|
103
|
+
}
|
|
104
|
+
exports.intFromBytes = intFromBytes;
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
public(friend) entry fun add_authorized_user(
|
|
3
|
+
manager_cap: & ManagerCap,
|
|
4
|
+
registry: & mut Registry,
|
|
5
|
+
user_addresses: vector<address>,
|
|
6
|
+
)
|
|
7
|
+
*/
|
|
8
|
+
export declare function getAddAuthorizedUserTx(gasBudget: number, packageId: string, managerCap: string, registry: string, userAddresses: string[]): Promise<any>;
|
|
@@ -37,7 +37,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getAddAuthorizedUserTx = void 0;
|
|
40
|
-
|
|
40
|
+
/**
|
|
41
|
+
public(friend) entry fun add_authorized_user(
|
|
42
|
+
manager_cap: & ManagerCap,
|
|
43
|
+
registry: & mut Registry,
|
|
44
|
+
user_addresses: vector<address>,
|
|
45
|
+
)
|
|
46
|
+
*/
|
|
47
|
+
function getAddAuthorizedUserTx(gasBudget, packageId, managerCap, registry, userAddresses) {
|
|
41
48
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
49
|
var tx;
|
|
43
50
|
return __generator(this, function (_a) {
|
|
@@ -49,7 +56,7 @@ function getAddAuthorizedUserTx(gasBudget, packageId, managerCap, registry, addr
|
|
|
49
56
|
arguments: [
|
|
50
57
|
managerCap,
|
|
51
58
|
registry,
|
|
52
|
-
|
|
59
|
+
userAddresses,
|
|
53
60
|
],
|
|
54
61
|
gasBudget: gasBudget,
|
|
55
62
|
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
+
public(friend) entry fun add_portfolio_vault_authorized_user<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
3
|
+
manager_cap: &ManagerCap,
|
|
4
|
+
registry: &mut Registry,
|
|
5
|
+
index: u64,
|
|
6
|
+
user_address: address,
|
|
7
|
+
)
|
|
2
8
|
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
3
9
|
*/
|
|
4
10
|
export declare function getAddPortfolioVaultAuthorizedUserTx(gasBudget: number, packageId: string, managerCap: string, registry: string, typeArguments: string[], index: string, address: string): Promise<any>;
|
|
@@ -38,6 +38,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getAddPortfolioVaultAuthorizedUserTx = void 0;
|
|
40
40
|
/**
|
|
41
|
+
public(friend) entry fun add_portfolio_vault_authorized_user<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
42
|
+
manager_cap: &ManagerCap,
|
|
43
|
+
registry: &mut Registry,
|
|
44
|
+
index: u64,
|
|
45
|
+
user_address: address,
|
|
46
|
+
)
|
|
41
47
|
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
42
48
|
*/
|
|
43
49
|
function getAddPortfolioVaultAuthorizedUserTx(gasBudget, packageId, managerCap, registry, typeArguments, index, address) {
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
public(friend) entry fun evolution<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
3
|
+
manager_cap: & ManagerCap,
|
|
4
|
+
registry: & mut Registry,
|
|
5
|
+
index: u64,
|
|
6
|
+
price_oracle: & Oracle<O_TOKEN>,
|
|
7
|
+
time_oracle: & Time,
|
|
8
|
+
activation_ts_ms: Option<u64>,
|
|
9
|
+
expiration_ts_ms: Option<u64>,
|
|
10
|
+
ctx: & mut TxContext,
|
|
11
|
+
)
|
|
12
|
+
* @param activationTsMs if has_next gives ['<number>'], if not gives []
|
|
13
|
+
* @param expirationTsMs if has_next gives ['<number>'], if not gives []
|
|
14
|
+
*/
|
|
15
|
+
export declare function getEvolutionTx(gasBudget: number, packageId: string, registry: string, typeArguments: string[], managerCap: string, index: string, priceOracle: string, timeOracle: string, activationTsMs: string[], expirationTsMs: string[]): Promise<any>;
|
|
@@ -37,6 +37,20 @@ 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
|
+
/**
|
|
41
|
+
public(friend) entry fun evolution<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
42
|
+
manager_cap: & ManagerCap,
|
|
43
|
+
registry: & mut Registry,
|
|
44
|
+
index: u64,
|
|
45
|
+
price_oracle: & Oracle<O_TOKEN>,
|
|
46
|
+
time_oracle: & Time,
|
|
47
|
+
activation_ts_ms: Option<u64>,
|
|
48
|
+
expiration_ts_ms: Option<u64>,
|
|
49
|
+
ctx: & mut TxContext,
|
|
50
|
+
)
|
|
51
|
+
* @param activationTsMs if has_next gives ['<number>'], if not gives []
|
|
52
|
+
* @param expirationTsMs if has_next gives ['<number>'], if not gives []
|
|
53
|
+
*/
|
|
40
54
|
function getEvolutionTx(gasBudget, packageId, registry, typeArguments, managerCap, index, priceOracle, timeOracle, activationTsMs, expirationTsMs) {
|
|
41
55
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
56
|
var tx;
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
public(friend) entry fun new_manager(
|
|
3
|
+
_manager_cap: &ManagerCap,
|
|
4
|
+
users: vector<address>,
|
|
5
|
+
ctx: &mut TxContext
|
|
6
|
+
)
|
|
7
|
+
*/
|
|
8
|
+
export declare function getNewManagerTx(gasBudget: number, packageId: string, managerCap: string, addresses: string[]): Promise<any>;
|
|
@@ -37,7 +37,14 @@ 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
|
-
|
|
40
|
+
/**
|
|
41
|
+
public(friend) entry fun new_manager(
|
|
42
|
+
_manager_cap: &ManagerCap,
|
|
43
|
+
users: vector<address>,
|
|
44
|
+
ctx: &mut TxContext
|
|
45
|
+
)
|
|
46
|
+
*/
|
|
47
|
+
function getNewManagerTx(gasBudget, packageId, managerCap, addresses) {
|
|
41
48
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
49
|
var tx;
|
|
43
50
|
return __generator(this, function (_a) {
|
|
@@ -48,7 +55,7 @@ function getNewManagerTx(gasBudget, packageId, managerCap, address) {
|
|
|
48
55
|
typeArguments: [],
|
|
49
56
|
arguments: [
|
|
50
57
|
managerCap,
|
|
51
|
-
|
|
58
|
+
addresses,
|
|
52
59
|
],
|
|
53
60
|
gasBudget: gasBudget,
|
|
54
61
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
registry: &
|
|
4
|
-
time_oracle: &
|
|
2
|
+
manager_cap: &ManagerCap,
|
|
3
|
+
registry: &mut Registry,
|
|
4
|
+
time_oracle: &Time,
|
|
5
5
|
option_type: u64,
|
|
6
6
|
period: u8,
|
|
7
7
|
activation_ts_ms: u64,
|
|
@@ -31,8 +31,8 @@ dTokenDecimal: string, // u64
|
|
|
31
31
|
bTokenDecimal: string, // u64
|
|
32
32
|
oTokenDecimal: string, // u64
|
|
33
33
|
capacity: string, // u64
|
|
34
|
-
|
|
34
|
+
strikePct: string[], // vector<u64>
|
|
35
35
|
weight: string[], // vector<u64>
|
|
36
|
-
isBuyer:
|
|
36
|
+
isBuyer: boolean[], // vector<bool>
|
|
37
37
|
strikeIncrement: string, // u64
|
|
38
38
|
lotSize: string, decaySpeed: string, initialPrice: string, finalPrice: string, auctionDurationInMs: string, whitelist: string[], leverage: string): Promise<any>;
|
|
@@ -38,9 +38,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getNewPortfolioVaultTx = void 0;
|
|
40
40
|
/**
|
|
41
|
-
|
|
42
|
-
registry: &
|
|
43
|
-
time_oracle: &
|
|
41
|
+
manager_cap: &ManagerCap,
|
|
42
|
+
registry: &mut Registry,
|
|
43
|
+
time_oracle: &Time,
|
|
44
44
|
option_type: u64,
|
|
45
45
|
period: u8,
|
|
46
46
|
activation_ts_ms: u64,
|
|
@@ -70,7 +70,7 @@ dTokenDecimal, // u64
|
|
|
70
70
|
bTokenDecimal, // u64
|
|
71
71
|
oTokenDecimal, // u64
|
|
72
72
|
capacity, // u64
|
|
73
|
-
|
|
73
|
+
strikePct, // vector<u64>
|
|
74
74
|
weight, // vector<u64>
|
|
75
75
|
isBuyer, // vector<bool>
|
|
76
76
|
strikeIncrement, // u64
|
|
@@ -95,7 +95,7 @@ lotSize, decaySpeed, initialPrice, finalPrice, auctionDurationInMs, whitelist, l
|
|
|
95
95
|
bTokenDecimal,
|
|
96
96
|
oTokenDecimal,
|
|
97
97
|
capacity,
|
|
98
|
-
|
|
98
|
+
strikePct,
|
|
99
99
|
weight,
|
|
100
100
|
isBuyer,
|
|
101
101
|
strikeIncrement,
|
|
@@ -1 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
public(friend) entry fun remove_authorized_user(
|
|
3
|
+
manager_cap: &ManagerCap,
|
|
4
|
+
registry: &mut Registry,
|
|
5
|
+
user_address: address,
|
|
6
|
+
)
|
|
7
|
+
*/
|
|
1
8
|
export declare function getRemoveAuthorizedUserTx(gasBudget: number, packageId: string, managerCap: string, registry: string, address: string): Promise<any>;
|
|
@@ -37,6 +37,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getRemoveAuthorizedUserTx = void 0;
|
|
40
|
+
/**
|
|
41
|
+
public(friend) entry fun remove_authorized_user(
|
|
42
|
+
manager_cap: &ManagerCap,
|
|
43
|
+
registry: &mut Registry,
|
|
44
|
+
user_address: address,
|
|
45
|
+
)
|
|
46
|
+
*/
|
|
40
47
|
function getRemoveAuthorizedUserTx(gasBudget, packageId, managerCap, registry, address) {
|
|
41
48
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
49
|
var tx;
|
|
@@ -37,6 +37,11 @@ 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
|
+
/**
|
|
41
|
+
public(friend) entry fun remove_manager(
|
|
42
|
+
manager_cap: ManagerCap,
|
|
43
|
+
)
|
|
44
|
+
*/
|
|
40
45
|
function getRemoveManagerTx(gasBudget, packageId, managerCap) {
|
|
41
46
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
47
|
var tx;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
+
public(friend) entry fun remove_portfolio_vault_authorized_user<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
3
|
+
manager_cap: &ManagerCap,
|
|
4
|
+
registry: &mut Registry,
|
|
5
|
+
index: u64,
|
|
6
|
+
user_address: address,
|
|
7
|
+
)
|
|
2
8
|
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
3
|
-
*/
|
|
9
|
+
*/
|
|
4
10
|
export declare function getRemovePortfolioVaultAuthorizedUserTx(gasBudget: number, packageId: string, managerCap: string, registry: string, typeArguments: string[], index: string, address: string): Promise<any>;
|
|
@@ -38,8 +38,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.getRemovePortfolioVaultAuthorizedUserTx = void 0;
|
|
40
40
|
/**
|
|
41
|
+
public(friend) entry fun remove_portfolio_vault_authorized_user<D_TOKEN, B_TOKEN, O_TOKEN>(
|
|
42
|
+
manager_cap: &ManagerCap,
|
|
43
|
+
registry: &mut Registry,
|
|
44
|
+
index: u64,
|
|
45
|
+
user_address: address,
|
|
46
|
+
)
|
|
41
47
|
* @param typeArguments [D_TOKEN, B_TOKEN, O_TOKEN]
|
|
42
|
-
*/
|
|
48
|
+
*/
|
|
43
49
|
function getRemovePortfolioVaultAuthorizedUserTx(gasBudget, packageId, managerCap, registry, typeArguments, index, address) {
|
|
44
50
|
return __awaiter(this, void 0, void 0, function () {
|
|
45
51
|
var tx;
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
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>;
|
|
@@ -36,8 +36,16 @@ 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.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) {
|
|
41
49
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
50
|
var tx;
|
|
43
51
|
return __generator(this, function (_a) {
|
|
@@ -56,4 +64,4 @@ function getHarvestTx(gasBudget, packageId, registry, typeArguments, index) {
|
|
|
56
64
|
});
|
|
57
65
|
});
|
|
58
66
|
}
|
|
59
|
-
exports.
|
|
67
|
+
exports.getClaimAndHarvestTx = getClaimAndHarvestTx;
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
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>;
|
|
@@ -37,6 +37,14 @@ 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
|
+
/**
|
|
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
|
+
*/
|
|
40
48
|
function getClaimTx(gasBudget, packageId, registry, typeArguments, index) {
|
|
41
49
|
return __awaiter(this, void 0, void 0, function () {
|
|
42
50
|
var tx;
|
|
@@ -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>;
|