@sonarwatch/portfolio-plugins 0.11.111 → 0.11.113
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1170 -1158
- package/README.md +3 -3
- package/package.json +2 -2
- package/src/index.js +5 -4
- package/src/index.js.map +1 -1
- package/src/plugins/aurory/stakingFetcher.js +2 -3
- package/src/plugins/aurory/stakingFetcher.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/flash/poolJob.js +14 -68
- package/src/plugins/flash/poolJob.js.map +1 -1
- package/src/plugins/flexlend/helpers.js +1 -3
- package/src/plugins/flexlend/helpers.js.map +1 -1
- package/src/plugins/hawksight/positionsFetcher.js +10 -8
- package/src/plugins/hawksight/positionsFetcher.js.map +1 -1
- package/src/plugins/jupiter/constants.d.ts +2 -0
- package/src/plugins/jupiter/constants.js +8 -1
- package/src/plugins/jupiter/constants.js.map +1 -1
- package/src/plugins/jupiter/index.d.ts +2 -0
- package/src/plugins/jupiter/index.js +3 -1
- package/src/plugins/jupiter/index.js.map +1 -1
- package/src/plugins/jupiter/poolJob.js +3 -5
- package/src/plugins/jupiter/poolJob.js.map +1 -1
- package/src/plugins/liquiditypools-sei/fetcher.js +4 -1
- package/src/plugins/liquiditypools-sei/fetcher.js.map +1 -1
- package/src/plugins/orders/index.js +2 -7
- package/src/plugins/orders/index.js.map +1 -1
- package/src/plugins/orders/jupiter/constants.d.ts +0 -2
- package/src/plugins/orders/jupiter/constants.js +1 -8
- package/src/plugins/orders/jupiter/constants.js.map +1 -1
- package/src/plugins/orders/jupiter/dcaFetcher.js +2 -1
- package/src/plugins/orders/jupiter/dcaFetcher.js.map +1 -1
- package/src/plugins/orders/jupiter/limitFetcher.js +2 -1
- package/src/plugins/orders/jupiter/limitFetcher.js.map +1 -1
- package/src/plugins/solend/obligationsFetcher.js +3 -2
- package/src/plugins/solend/obligationsFetcher.js.map +1 -1
- package/src/plugins/spl-staking/constants.d.ts +15 -0
- package/src/plugins/spl-staking/constants.js +51 -0
- package/src/plugins/spl-staking/constants.js.map +1 -0
- package/src/plugins/spl-staking/filters.js.map +1 -0
- package/src/plugins/{flowmatic → spl-staking}/index.js +3 -2
- package/src/plugins/spl-staking/index.js.map +1 -0
- package/src/plugins/spl-staking/poolsJob.d.ts +3 -0
- package/src/plugins/spl-staking/poolsJob.js +39 -0
- package/src/plugins/spl-staking/poolsJob.js.map +1 -0
- package/src/plugins/spl-staking/stakingFetcher.js +83 -0
- package/src/plugins/spl-staking/stakingFetcher.js.map +1 -0
- package/src/plugins/spl-staking/structs.d.ts +42 -0
- package/src/plugins/spl-staking/structs.js +42 -0
- package/src/plugins/spl-staking/structs.js.map +1 -0
- package/src/plugins/spl-staking/types.d.ts +4 -0
- package/src/plugins/spl-staking/types.js +3 -0
- package/src/plugins/spl-staking/types.js.map +1 -0
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/tensor/bidsFetcher.js +2 -0
- package/src/plugins/tensor/bidsFetcher.js.map +1 -1
- package/src/plugins/tensor/singleListingFetcher.js +0 -79
- package/src/plugins/tensor/singleListingFetcher.js.map +1 -1
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/x-staking-solana/constants.js +9 -0
- package/src/plugins/x-staking-solana/constants.js.map +1 -1
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/plugins/flowmatic/constants.d.ts +0 -6
- package/src/plugins/flowmatic/constants.js +0 -16
- package/src/plugins/flowmatic/constants.js.map +0 -1
- package/src/plugins/flowmatic/filters.js.map +0 -1
- package/src/plugins/flowmatic/index.js.map +0 -1
- package/src/plugins/flowmatic/stakingFetcher.js +0 -59
- package/src/plugins/flowmatic/stakingFetcher.js.map +0 -1
- package/src/plugins/flowmatic/structs.d.ts +0 -16
- package/src/plugins/flowmatic/structs.js +0 -18
- package/src/plugins/flowmatic/structs.js.map +0 -1
- /package/src/plugins/{flowmatic → spl-staking}/filters.d.ts +0 -0
- /package/src/plugins/{flowmatic → spl-staking}/filters.js +0 -0
- /package/src/plugins/{flowmatic → spl-staking}/index.d.ts +0 -0
- /package/src/plugins/{flowmatic → spl-staking}/stakingFetcher.d.ts +0 -0
@@ -40,28 +40,28 @@ function getPairKey(version) {
|
|
40
40
|
exports.getPairKey = getPairKey;
|
41
41
|
function getPairsV2FromTheGraph(url, length = 300) {
|
42
42
|
return __awaiter(this, void 0, void 0, function* () {
|
43
|
-
const query = (0, graphql_request_1.gql) `
|
44
|
-
{
|
45
|
-
pairs(
|
46
|
-
orderBy: reserveUSD
|
47
|
-
first: ${length}
|
48
|
-
orderDirection: desc
|
49
|
-
where: { trackedReserveETH_not: "0" }
|
50
|
-
) {
|
51
|
-
id
|
52
|
-
reserve0
|
53
|
-
reserve1
|
54
|
-
totalSupply
|
55
|
-
token0 {
|
56
|
-
id
|
57
|
-
decimals
|
58
|
-
}
|
59
|
-
token1 {
|
60
|
-
id
|
61
|
-
decimals
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
43
|
+
const query = (0, graphql_request_1.gql) `
|
44
|
+
{
|
45
|
+
pairs(
|
46
|
+
orderBy: reserveUSD
|
47
|
+
first: ${length}
|
48
|
+
orderDirection: desc
|
49
|
+
where: { trackedReserveETH_not: "0" }
|
50
|
+
) {
|
51
|
+
id
|
52
|
+
reserve0
|
53
|
+
reserve1
|
54
|
+
totalSupply
|
55
|
+
token0 {
|
56
|
+
id
|
57
|
+
decimals
|
58
|
+
}
|
59
|
+
token1 {
|
60
|
+
id
|
61
|
+
decimals
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
65
|
`;
|
66
66
|
const res = yield (0, graphql_request_1.default)(url, query);
|
67
67
|
const pairs = res.pairs;
|
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.xStakingConfigs = exports.allbridgePlatform = exports.allbridgePlatformId = exports.stepFinancePlatform = exports.stepFinancePlatformId = exports.whalesMarketPlatform = exports.whalesMarketPlatformId = void 0;
|
4
4
|
const constants_1 = require("../aurory/constants");
|
5
|
+
const constants_2 = require("../hawksight/constants");
|
5
6
|
exports.whalesMarketPlatformId = 'whalesmarket';
|
6
7
|
exports.whalesMarketPlatform = {
|
7
8
|
id: exports.whalesMarketPlatformId,
|
@@ -60,5 +61,13 @@ exports.xStakingConfigs = [
|
|
60
61
|
xDecimals: 9,
|
61
62
|
platformId: exports.allbridgePlatformId,
|
62
63
|
},
|
64
|
+
{
|
65
|
+
mint: 'BKipkearSqAUdNKa1WDstvcMjoPsSKBuNyvKDQDDu9WE',
|
66
|
+
decimals: 6,
|
67
|
+
vault: '2eFeetCpZJprr67F2dToT52BbSkdeqKZT6hmVdVG14eU',
|
68
|
+
xMint: 'xHWKW3Yyji9xe6FnTmDqu3rBApt3Ysu5ysywUA85Len',
|
69
|
+
xDecimals: 6,
|
70
|
+
platformId: constants_2.hawksightPlatform.id,
|
71
|
+
},
|
63
72
|
];
|
64
73
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/constants.ts"],"names":[],"mappings":";;;AACA,mDAM6B;
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/constants.ts"],"names":[],"mappings":";;;AACA,mDAM6B;AAC7B,sDAA2D;AAE9C,QAAA,sBAAsB,GAAG,cAAc,CAAC;AACxC,QAAA,oBAAoB,GAAa;IAC5C,EAAE,EAAE,8BAAsB;IAC1B,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,oDAAoD;IAC3D,qEAAqE;IACrE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,qBAAqB,GAAG,aAAa,CAAC;AACtC,QAAA,mBAAmB,GAAa;IAC3C,EAAE,EAAE,6BAAqB;IACzB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,mDAAmD;IAC1D,OAAO,EAAE,2BAA2B;IACpC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,mBAAmB,GAAG,WAAW,CAAC;AAClC,QAAA,iBAAiB,GAAa;IACzC,EAAE,EAAE,2BAAmB;IACvB,IAAI,EAAE,cAAc;IACpB,KAAK,EAAE,iDAAiD;IACxD,OAAO,EAAE,uCAAuC;IAChD,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,eAAe,GAAoB;IAC9C;QACE,IAAI,EAAE,oBAAQ;QACd,QAAQ,EAAR,oBAAQ;QACR,KAAK,EAAE,uBAAW;QAClB,KAAK,EAAE,qBAAS;QAChB,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,4BAAgB;KAC7B;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,8CAA8C;QACrD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,8BAAsB;KACnC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,6BAAqB;KAClC;IACD;QACE,IAAI,EAAE,6CAA6C;QACnD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,2BAAmB;KAChC;IACD;QACE,IAAI,EAAE,8CAA8C;QACpD,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,8CAA8C;QACrD,KAAK,EAAE,6CAA6C;QACpD,SAAS,EAAE,CAAC;QACZ,UAAU,EAAE,6BAAiB,CAAC,EAAE;KACjC;CACF,CAAC"}
|
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.poolQueryMsg = exports.minterQueryMsg = exports.tokenInfoQueryMsg = exports.infoQueryMsg = void 0;
|
4
|
-
exports.infoQueryMsg = JSON.parse(`{
|
5
|
-
"info": {}
|
4
|
+
exports.infoQueryMsg = JSON.parse(`{
|
5
|
+
"info": {}
|
6
6
|
}`);
|
7
|
-
exports.tokenInfoQueryMsg = JSON.parse(`{
|
8
|
-
"token_info": {}
|
7
|
+
exports.tokenInfoQueryMsg = JSON.parse(`{
|
8
|
+
"token_info": {}
|
9
9
|
}`);
|
10
|
-
exports.minterQueryMsg = JSON.parse(`{
|
11
|
-
"minter": {}
|
10
|
+
exports.minterQueryMsg = JSON.parse(`{
|
11
|
+
"minter": {}
|
12
12
|
}`);
|
13
|
-
exports.poolQueryMsg = JSON.parse(`{
|
14
|
-
"pool": {}
|
13
|
+
exports.poolQueryMsg = JSON.parse(`{
|
14
|
+
"pool": {}
|
15
15
|
}`);
|
16
16
|
//# sourceMappingURL=constants.js.map
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
function getQueryBalanceByOwner(owner) {
|
4
|
-
return JSON.parse(`{
|
5
|
-
"balance": {
|
6
|
-
"address": "${owner}"
|
7
|
-
}
|
4
|
+
return JSON.parse(`{
|
5
|
+
"balance": {
|
6
|
+
"address": "${owner}"
|
7
|
+
}
|
8
8
|
}`);
|
9
9
|
}
|
10
10
|
exports.default = getQueryBalanceByOwner;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { PublicKey } from '@solana/web3.js';
|
2
|
-
import { Platform } from '@sonarwatch/portfolio-core';
|
3
|
-
export declare const platformId = "flowmatic";
|
4
|
-
export declare const platform: Platform;
|
5
|
-
export declare const programId: PublicKey;
|
6
|
-
export declare const flowmaticMint = "Eh1fXbAipe4k7CYR9UMb2bbWmBcpU3HcyX3LWuRVFBLz";
|
@@ -1,16 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.flowmaticMint = exports.programId = exports.platform = exports.platformId = void 0;
|
4
|
-
const web3_js_1 = require("@solana/web3.js");
|
5
|
-
exports.platformId = 'flowmatic';
|
6
|
-
exports.platform = {
|
7
|
-
id: exports.platformId,
|
8
|
-
name: 'Flowmatic',
|
9
|
-
image: 'https://sonar.watch/img/platforms/flowmatic.png',
|
10
|
-
// defiLlamaId: 'foo-finance', // from https://defillama.com/docs/api
|
11
|
-
website: 'https://www.flowmatic.xyz/',
|
12
|
-
twitter: 'https://twitter.com/FlowmaticXYZ',
|
13
|
-
};
|
14
|
-
exports.programId = new web3_js_1.PublicKey('STAKEGztX7S1MUHxcQHieZhELCntb9Ys9BgUbeEtMu1');
|
15
|
-
exports.flowmaticMint = 'Eh1fXbAipe4k7CYR9UMb2bbWmBcpU3HcyX3LWuRVFBLz';
|
16
|
-
//# sourceMappingURL=constants.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flowmatic/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,WAAW,CAAC;AACzB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,WAAW;IACjB,KAAK,EAAE,iDAAiD;IACxD,qEAAqE;IACrE,OAAO,EAAE,4BAA4B;IACrC,OAAO,EAAE,kCAAkC;CAC5C,CAAC;AAEW,QAAA,SAAS,GAAG,IAAI,mBAAS,CACpC,6CAA6C,CAC9C,CAAC;AAEW,QAAA,aAAa,GAAG,8CAA8C,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flowmatic/filters.ts"],"names":[],"mappings":";;;AAEO,MAAM,YAAY,GAAG,CAAC,KAAa,EAA8B,EAAE,CAAC;IACzE;QACE,MAAM,EAAE;YACN,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,KAAK;SACb;KACF;IACD,EAAE,QAAQ,EAAE,GAAG,EAAE;CAClB,CAAC;AARW,QAAA,YAAY,gBAQvB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flowmatic/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AACvC,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,wBAAc,CAAC,CAAC"}
|
@@ -1,59 +0,0 @@
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
-
const constants_1 = require("./constants");
|
17
|
-
const clients_1 = require("../../utils/clients");
|
18
|
-
const solana_1 = require("../../utils/solana");
|
19
|
-
const structs_1 = require("../bonkrewards/structs");
|
20
|
-
const filters_1 = require("./filters");
|
21
|
-
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
22
|
-
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
23
|
-
const client = (0, clients_1.getClientSolana)();
|
24
|
-
const stakeAccounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.stakeDepositReceiptStruct, constants_1.programId, (0, filters_1.stakeFilters)(owner));
|
25
|
-
if (stakeAccounts.length === 0)
|
26
|
-
return [];
|
27
|
-
const tokenPrice = yield cache.getTokenPrice(constants_1.flowmaticMint, portfolio_core_1.NetworkId.solana);
|
28
|
-
const assets = [];
|
29
|
-
for (const stakeAccount of stakeAccounts) {
|
30
|
-
if (stakeAccount.depositAmount.isZero())
|
31
|
-
continue;
|
32
|
-
const lockedUntil = new Date(stakeAccount.depositTimestamp
|
33
|
-
.plus(stakeAccount.lockupDuration)
|
34
|
-
.times(1000)
|
35
|
-
.toNumber()).getTime();
|
36
|
-
assets.push(Object.assign(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.flowmaticMint, stakeAccount.depositAmount.dividedBy(Math.pow(10, 4)).toNumber(), portfolio_core_1.NetworkId.solana, tokenPrice)), { attributes: {
|
37
|
-
lockedUntil,
|
38
|
-
} }));
|
39
|
-
}
|
40
|
-
if (assets.length === 0)
|
41
|
-
return [];
|
42
|
-
return [
|
43
|
-
{
|
44
|
-
type: portfolio_core_1.PortfolioElementType.multiple,
|
45
|
-
label: 'Staked',
|
46
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
47
|
-
platformId: constants_1.platformId,
|
48
|
-
data: { assets },
|
49
|
-
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((asset) => asset.value)),
|
50
|
-
},
|
51
|
-
];
|
52
|
-
});
|
53
|
-
const fetcher = {
|
54
|
-
id: `${constants_1.platformId}-staking`,
|
55
|
-
networkId: portfolio_core_1.NetworkId.solana,
|
56
|
-
executor,
|
57
|
-
};
|
58
|
-
exports.default = fetcher;
|
59
|
-
//# sourceMappingURL=stakingFetcher.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flowmatic/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAAmE;AACnE,iDAAsD;AACtD,+CAA8D;AAC9D,oDAAmE;AACnE,uCAAyC;AACzC,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,aAAa,GAAG,MAAM,IAAA,iCAAwB,EAClD,MAAM,EACN,mCAAyB,EACzB,qBAAS,EACT,IAAA,sBAAY,EAAC,KAAK,CAAC,CACpB,CAAC;IACF,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAE1C,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,aAAa,CAAC,yBAAa,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;IAC9E,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE,CAAC;QACzC,IAAI,YAAY,CAAC,aAAa,CAAC,MAAM,EAAE;YAAE,SAAS;QAClD,MAAM,WAAW,GAAG,IAAI,IAAI,CAC1B,YAAY,CAAC,gBAAgB;aAC1B,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC;aACjC,KAAK,CAAC,IAAI,CAAC;aACX,QAAQ,EAAE,CACd,CAAC,OAAO,EAAE,CAAC;QAEZ,MAAM,CAAC,IAAI,iCACN,IAAA,gCAAsB,EACvB,yBAAa,EACb,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC,QAAQ,EAAE,EACxD,0BAAS,CAAC,MAAM,EAChB,UAAU,CACX,KACD,UAAU,EAAE;gBACV,WAAW;aACZ,IACD,CAAC;IACL,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACnC,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,KAAK,EAAE,QAAQ;YACf,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE,EAAE,MAAM,EAAE;YAChB,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;SAC1D;KACF,CAAC;AACJ,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,UAAU;IAC3B,SAAS,EAAE,0BAAS,CAAC,MAAM;IAC3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
/// <reference types="node" />
|
2
|
-
import { BeetStruct } from '@metaplex-foundation/beet';
|
3
|
-
import { PublicKey } from '@solana/web3.js';
|
4
|
-
import BigNumber from 'bignumber.js';
|
5
|
-
export type StakeDepositReceipt = {
|
6
|
-
buffer: Buffer;
|
7
|
-
owner: PublicKey;
|
8
|
-
payer: PublicKey;
|
9
|
-
stakePool: PublicKey;
|
10
|
-
lockupDuration: BigNumber;
|
11
|
-
depositTimestamp: BigNumber;
|
12
|
-
depositAmount: BigNumber;
|
13
|
-
effectiveStake: BigNumber;
|
14
|
-
claimedAmounts: BigNumber[];
|
15
|
-
};
|
16
|
-
export declare const StakeDepositReceiptStruct: BeetStruct<StakeDepositReceipt, Partial<StakeDepositReceipt>>;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.StakeDepositReceiptStruct = void 0;
|
4
|
-
const beet_1 = require("@metaplex-foundation/beet");
|
5
|
-
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
6
|
-
const solana_1 = require("../../utils/solana");
|
7
|
-
exports.StakeDepositReceiptStruct = new beet_1.BeetStruct([
|
8
|
-
['buffer', (0, solana_1.blob)(8)],
|
9
|
-
['owner', beet_solana_1.publicKey],
|
10
|
-
['payer', beet_solana_1.publicKey],
|
11
|
-
['stakePool', beet_solana_1.publicKey],
|
12
|
-
['lockupDuration', solana_1.u64],
|
13
|
-
['depositTimestamp', solana_1.i64],
|
14
|
-
['depositAmount', solana_1.u64],
|
15
|
-
['effectiveStake', solana_1.u128],
|
16
|
-
['claimedAmounts', (0, beet_1.uniformFixedSizeArray)(solana_1.u128, 10)],
|
17
|
-
], (args) => args);
|
18
|
-
//# sourceMappingURL=structs.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/flowmatic/structs.ts"],"names":[],"mappings":";;;AAAA,oDAA8E;AAC9E,kEAA6D;AAG7D,+CAA0D;AAc7C,QAAA,yBAAyB,GAAG,IAAI,iBAAU,CACrD;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,kBAAkB,EAAE,YAAG,CAAC;IACzB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,gBAAgB,EAAE,aAAI,CAAC;IACxB,CAAC,gBAAgB,EAAE,IAAA,4BAAqB,EAAC,aAAI,EAAE,EAAE,CAAC,CAAC;CACpD,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAA2B,CACtC,CAAC"}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|