@sonarwatch/portfolio-plugins 0.14.151 → 0.14.152
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/CHANGELOG.md +2232 -2228
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/plugins/allbridge/constants.d.ts +0 -6
- package/src/plugins/allbridge/constants.js +1 -9
- package/src/plugins/allbridge/constants.js.map +1 -1
- package/src/plugins/allbridge/helpers.d.ts +1 -1
- package/src/plugins/allbridge/helpers.js +1 -3
- package/src/plugins/allbridge/helpers.js.map +1 -1
- package/src/plugins/allbridge/positionsFetcher.js +2 -1
- package/src/plugins/allbridge/positionsFetcher.js.map +1 -1
- package/src/plugins/allbridge/structs.d.ts +13 -0
- package/src/plugins/allbridge/structs.js +14 -0
- package/src/plugins/allbridge/structs.js.map +1 -0
- package/src/plugins/allbridge/types.d.ts +0 -6
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/bonfida/constants.js +1 -1
- package/src/plugins/bonfida/constants.js.map +1 -1
- package/src/plugins/divvy/constants.d.ts +0 -2
- package/src/plugins/divvy/constants.js +1 -7
- package/src/plugins/divvy/constants.js.map +1 -1
- package/src/plugins/divvy/houseJob.js +6 -3
- package/src/plugins/divvy/houseJob.js.map +1 -1
- package/src/plugins/divvy/housePoolFetcher.js +9 -11
- package/src/plugins/divvy/housePoolFetcher.js.map +1 -1
- package/src/plugins/divvy/stakingFetcher.js +7 -12
- package/src/plugins/divvy/stakingFetcher.js.map +1 -1
- package/src/plugins/divvy/structs.d.ts +57 -0
- package/src/plugins/divvy/structs.js +57 -0
- package/src/plugins/divvy/structs.js.map +1 -0
- package/src/plugins/elemental/constants.d.ts +4 -2
- package/src/plugins/elemental/constants.js +3 -7
- package/src/plugins/elemental/constants.js.map +1 -1
- package/src/plugins/elemental/filters.d.ts +0 -1
- package/src/plugins/elemental/filters.js +1 -6
- package/src/plugins/elemental/filters.js.map +1 -1
- package/src/plugins/elemental/helpers.js +2 -2
- package/src/plugins/elemental/helpers.js.map +1 -1
- package/src/plugins/elemental/poolsJob.js +4 -4
- package/src/plugins/elemental/poolsJob.js.map +1 -1
- package/src/plugins/ensofi/constants.d.ts +4 -2
- package/src/plugins/ensofi/constants.js +3 -7
- package/src/plugins/ensofi/constants.js.map +1 -1
- package/src/plugins/ensofi/idl.d.ts +149 -6
- package/src/plugins/ensofi/idl.js +1074 -61
- package/src/plugins/ensofi/idl.js.map +1 -1
- package/src/plugins/ensofi/solanaLoansFetcher.js +23 -37
- package/src/plugins/ensofi/solanaLoansFetcher.js.map +1 -1
- package/src/plugins/ensofi/structs.d.ts +58 -0
- package/src/plugins/ensofi/structs.js +60 -0
- package/src/plugins/ensofi/structs.js.map +1 -0
- package/src/plugins/jupiter/governance/constants.js +3 -3
- package/src/plugins/jupiter/governance/constants.js.map +1 -1
- package/src/plugins/jupiter/launchpad/constants.d.ts +1 -0
- package/src/plugins/jupiter/launchpad/constants.js +8 -7
- package/src/plugins/jupiter/launchpad/constants.js.map +1 -1
- package/src/plugins/jupiter/pricingJob.js +2 -1
- package/src/plugins/jupiter/pricingJob.js.map +1 -1
- package/src/plugins/orca/getWhirlpoolPositions.js +7 -7
- package/src/plugins/orca/getWhirlpoolPositions.js.map +1 -1
- package/src/plugins/orca/types.d.ts +2 -0
- package/src/plugins/picasso/constants.d.ts +0 -2
- package/src/plugins/picasso/constants.js +1 -7
- package/src/plugins/picasso/constants.js.map +1 -1
- package/src/plugins/picasso/helpers.js +7 -4
- package/src/plugins/picasso/helpers.js.map +1 -1
- package/src/plugins/picasso/structs.d.ts +39 -0
- package/src/plugins/picasso/structs.js +37 -0
- package/src/plugins/picasso/structs.js.map +1 -0
- package/src/plugins/picasso/unstakingNftsJob.js +2 -1
- package/src/plugins/picasso/unstakingNftsJob.js.map +1 -1
- package/src/plugins/picasso/unstakingPositionsFetcher.js +4 -4
- package/src/plugins/picasso/unstakingPositionsFetcher.js.map +1 -1
- package/src/plugins/raydium/ammV2ApiJob.js +24 -0
- package/src/plugins/raydium/ammV2ApiJob.js.map +1 -1
- package/src/plugins/raydium/constants.d.ts +1 -0
- package/src/plugins/raydium/constants.js +2 -1
- package/src/plugins/raydium/constants.js.map +1 -1
- package/src/plugins/raydium/getRaydiumCLMMPositions.js +9 -5
- package/src/plugins/raydium/getRaydiumCLMMPositions.js.map +1 -1
- package/src/plugins/raydium/types.d.ts +14 -4
- package/src/plugins/sanctum/s1AirdropFetcher.js +2 -2
- package/src/plugins/sanctum/s1AirdropFetcher.js.map +1 -1
- package/src/plugins/sharky/collectionsJob.js +8 -9
- package/src/plugins/sharky/collectionsJob.js.map +1 -1
- package/src/plugins/sharky/constants.d.ts +0 -2
- package/src/plugins/sharky/constants.js +1 -7
- package/src/plugins/sharky/constants.js.map +1 -1
- package/src/plugins/sharky/loansFetcher.js +25 -19
- package/src/plugins/sharky/loansFetcher.js.map +1 -1
- package/src/plugins/sharky/structs.d.ts +96 -0
- package/src/plugins/sharky/structs.js +103 -0
- package/src/plugins/sharky/structs.js.map +1 -0
- package/src/plugins/sharky/types.d.ts +0 -15
- package/src/plugins/sharky/types.js +0 -8
- package/src/plugins/sharky/types.js.map +1 -1
- package/src/plugins/stabble/constants.d.ts +0 -3
- package/src/plugins/stabble/constants.js +1 -13
- package/src/plugins/stabble/constants.js.map +1 -1
- package/src/plugins/stabble/poolsJob.js +14 -9
- package/src/plugins/stabble/poolsJob.js.map +1 -1
- package/src/plugins/stabble/structs.d.ts +43 -0
- package/src/plugins/stabble/structs.js +42 -0
- package/src/plugins/stabble/structs.js.map +1 -0
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/utils/solana/beets/ParsedGpa.d.ts +1 -0
- package/src/utils/solana/beets/ParsedGpa.js +9 -0
- package/src/utils/solana/beets/ParsedGpa.js.map +1 -1
- package/src/plugins/divvy/types.d.ts +0 -28
- package/src/plugins/divvy/types.js +0 -3
- package/src/plugins/divvy/types.js.map +0 -1
- package/src/plugins/picasso/types.d.ts +0 -17
- package/src/plugins/picasso/types.js +0 -3
- package/src/plugins/picasso/types.js.map +0 -1
- package/src/plugins/sharky/filters.d.ts +0 -8
- package/src/plugins/sharky/filters.js +0 -43
- package/src/plugins/sharky/filters.js.map +0 -1
- package/src/plugins/stabble/filters.d.ts +0 -5
- package/src/plugins/stabble/filters.js +0 -20
- package/src/plugins/stabble/filters.js.map +0 -1
- package/src/plugins/stabble/types.d.ts +0 -40
- package/src/plugins/stabble/types.js +0 -3
- package/src/plugins/stabble/types.js.map +0 -1
@@ -14,26 +14,31 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
15
|
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
16
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
17
|
+
const web3_js_1 = require("@solana/web3.js");
|
17
18
|
const constants_1 = require("./constants");
|
18
19
|
const clients_1 = require("../../utils/clients");
|
19
|
-
const solana_1 = require("../../utils/solana");
|
20
|
-
const filters_1 = require("./filters");
|
21
20
|
const getAssetBatchDas_1 = require("../../utils/solana/das/getAssetBatchDas");
|
22
21
|
const getSolanaDasEndpoint_1 = __importDefault(require("../../utils/clients/getSolanaDasEndpoint"));
|
22
|
+
const structs_1 = require("./structs");
|
23
|
+
const ParsedGpa_1 = require("../../utils/solana/beets/ParsedGpa");
|
23
24
|
const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
24
25
|
const connection = (0, clients_1.getClientSolana)();
|
25
26
|
const dasUrl = (0, getSolanaDasEndpoint_1.default)();
|
26
27
|
const pools = (yield Promise.all([
|
27
|
-
|
28
|
-
|
28
|
+
ParsedGpa_1.ParsedGpa.build(connection, structs_1.stablePoolStruct, new web3_js_1.PublicKey(constants_1.stableProgramId))
|
29
|
+
.addFilter('vault', new web3_js_1.PublicKey('stab1io8dHvK26KoHmTwwHyYmHRbUWbyEJx6CdrGabC'))
|
30
|
+
.run(),
|
31
|
+
ParsedGpa_1.ParsedGpa.build(connection, structs_1.weightedPoolStruct, new web3_js_1.PublicKey(constants_1.weightedProgramId))
|
32
|
+
.addFilter('vault', new web3_js_1.PublicKey('w8edo9a9TDw52c1rBmVbP6dNakaAuFiPjDd52ZJwwVi'))
|
33
|
+
.run(),
|
29
34
|
])).flat();
|
30
35
|
const mints = new Set();
|
31
36
|
const lpMints = new Set();
|
32
37
|
pools.forEach((pool) => {
|
33
38
|
pool.tokens.forEach((token) => {
|
34
|
-
mints.add(token.mint);
|
39
|
+
mints.add(token.mint.toString());
|
35
40
|
});
|
36
|
-
lpMints.add(pool.mint);
|
41
|
+
lpMints.add(pool.mint.toString());
|
37
42
|
});
|
38
43
|
const [tokenPrices, heliusAssets] = yield Promise.all([
|
39
44
|
cache.getTokenPricesAsMap(mints, portfolio_core_1.NetworkId.solana),
|
@@ -41,13 +46,13 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
41
46
|
]);
|
42
47
|
const sources = [];
|
43
48
|
pools.forEach((pool) => {
|
44
|
-
const heliusAsset = heliusAssets.get(pool.mint);
|
49
|
+
const heliusAsset = heliusAssets.get(pool.mint.toString());
|
45
50
|
if (!(heliusAsset === null || heliusAsset === void 0 ? void 0 : heliusAsset.token_info))
|
46
51
|
return;
|
47
52
|
const supply = new bignumber_js_1.default(heliusAsset.token_info.supply).dividedBy(Math.pow(10, Number(heliusAsset.token_info.decimals)));
|
48
53
|
const underlyings = [];
|
49
54
|
for (const token of pool.tokens) {
|
50
|
-
const tokenPrice = tokenPrices.get(token.mint);
|
55
|
+
const tokenPrice = tokenPrices.get(token.mint.toString());
|
51
56
|
if (!tokenPrice)
|
52
57
|
return;
|
53
58
|
const tokenAmount = token.scalingUp
|
@@ -65,7 +70,7 @@ const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
|
|
65
70
|
});
|
66
71
|
}
|
67
72
|
sources.push({
|
68
|
-
address: pool.mint,
|
73
|
+
address: pool.mint.toString(),
|
69
74
|
decimals: heliusAsset.token_info.decimals,
|
70
75
|
id: constants_1.platformId,
|
71
76
|
networkId: portfolio_core_1.NetworkId.solana,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stabble/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAyE;AACzE,gEAAqC;
|
1
|
+
{"version":3,"file":"poolsJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stabble/poolsJob.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAyE;AACzE,gEAAqC;AACrC,6CAA4C;AAG5C,2CAA6E;AAC7E,iDAAsD;AACtD,8EAAgF;AAChF,oGAA4E;AAC5E,uCAAiE;AACjE,kEAA+D;AAE/D,MAAM,QAAQ,GAAgB,CAAO,KAAY,EAAE,EAAE;IACnD,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IACrC,MAAM,MAAM,GAAG,IAAA,8BAAoB,GAAE,CAAC;IAEtC,MAAM,KAAK,GAAG,CACZ,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,qBAAS,CAAC,KAAK,CACb,UAAU,EACV,0BAAgB,EAChB,IAAI,mBAAS,CAAC,2BAAe,CAAC,CAC/B;aACE,SAAS,CACR,OAAO,EACP,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAC7D;aACA,GAAG,EAAE;QACR,qBAAS,CAAC,KAAK,CACb,UAAU,EACV,4BAAkB,EAClB,IAAI,mBAAS,CAAC,6BAAiB,CAAC,CACjC;aACE,SAAS,CACR,OAAO,EACP,IAAI,mBAAS,CAAC,6CAA6C,CAAC,CAC7D;aACA,GAAG,EAAE;KACT,CAAC,CACH,CAAC,IAAI,EAAE,CAAC;IAET,MAAM,KAAK,GAAgB,IAAI,GAAG,E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,EAAE,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;SAChE,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,MAAM,KAAK,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC,CAAA,CAAC;AACF,MAAM,GAAG,GAAQ;IACf,EAAE,EAAE,GAAG,sBAAU,QAAQ;IACzB,QAAQ;IACR,MAAM,EAAE,CAAC,QAAQ,CAAC;CACnB,CAAC;AACF,kBAAe,GAAG,CAAC"}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
|
+
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
|
+
import { PublicKey } from '@solana/web3.js';
|
4
|
+
import BigNumber from 'bignumber.js';
|
5
|
+
import { BeetStruct, FixableBeetStruct } from '@metaplex-foundation/beet';
|
6
|
+
export type PoolToken = {
|
7
|
+
mint: PublicKey;
|
8
|
+
decimals: number;
|
9
|
+
scalingUp: boolean;
|
10
|
+
scalingFactor: BigNumber;
|
11
|
+
balance: BigNumber;
|
12
|
+
weight: BigNumber;
|
13
|
+
};
|
14
|
+
export declare const poolTokenStruct: BeetStruct<PoolToken, Partial<PoolToken>>;
|
15
|
+
export type WeightedPool = {
|
16
|
+
accountDiscriminator: number[];
|
17
|
+
owner: PublicKey;
|
18
|
+
vault: PublicKey;
|
19
|
+
mint: PublicKey;
|
20
|
+
authorityBump: number;
|
21
|
+
isActive: boolean;
|
22
|
+
invariant: BigNumber;
|
23
|
+
swapFee: BigNumber;
|
24
|
+
tokens: PoolToken[];
|
25
|
+
pendingOwner?: PublicKey;
|
26
|
+
};
|
27
|
+
export declare const weightedPoolStruct: FixableBeetStruct<WeightedPool, Partial<WeightedPool>>;
|
28
|
+
export type StablePool = {
|
29
|
+
accountDiscriminator: number[];
|
30
|
+
owner: PublicKey;
|
31
|
+
vault: PublicKey;
|
32
|
+
mint: PublicKey;
|
33
|
+
authorityBump: number;
|
34
|
+
isActive: boolean;
|
35
|
+
ampInitialFactor: number;
|
36
|
+
ampTargetFactor: number;
|
37
|
+
rampStartTs: BigNumber;
|
38
|
+
rampStopTs: BigNumber;
|
39
|
+
swapFee: BigNumber;
|
40
|
+
tokens: PoolToken[];
|
41
|
+
pendingOwner?: PublicKey;
|
42
|
+
};
|
43
|
+
export declare const stablePoolStruct: FixableBeetStruct<StablePool, Partial<StablePool>>;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.stablePoolStruct = exports.weightedPoolStruct = exports.poolTokenStruct = void 0;
|
4
|
+
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
5
|
+
const beet_1 = require("@metaplex-foundation/beet");
|
6
|
+
const solana_1 = require("../../utils/solana");
|
7
|
+
exports.poolTokenStruct = new beet_1.BeetStruct([
|
8
|
+
['mint', beet_solana_1.publicKey],
|
9
|
+
['decimals', beet_1.u8],
|
10
|
+
['scalingUp', beet_1.bool],
|
11
|
+
['scalingFactor', solana_1.u64],
|
12
|
+
['balance', solana_1.u64],
|
13
|
+
['weight', solana_1.u64],
|
14
|
+
], (args) => args);
|
15
|
+
exports.weightedPoolStruct = new beet_1.FixableBeetStruct([
|
16
|
+
['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
|
17
|
+
['owner', beet_solana_1.publicKey],
|
18
|
+
['vault', beet_solana_1.publicKey],
|
19
|
+
['mint', beet_solana_1.publicKey],
|
20
|
+
['authorityBump', beet_1.u8],
|
21
|
+
['isActive', beet_1.bool],
|
22
|
+
['invariant', solana_1.u64],
|
23
|
+
['swapFee', solana_1.u64],
|
24
|
+
['tokens', (0, beet_1.array)(exports.poolTokenStruct)],
|
25
|
+
['pendingOwner', beet_solana_1.publicKey],
|
26
|
+
], (args) => args);
|
27
|
+
exports.stablePoolStruct = new beet_1.FixableBeetStruct([
|
28
|
+
['accountDiscriminator', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 8)],
|
29
|
+
['owner', beet_solana_1.publicKey],
|
30
|
+
['vault', beet_solana_1.publicKey],
|
31
|
+
['mint', beet_solana_1.publicKey],
|
32
|
+
['authorityBump', beet_1.u8],
|
33
|
+
['isActive', beet_1.bool],
|
34
|
+
['ampInitialFactor', beet_1.u16],
|
35
|
+
['ampTargetFactor', beet_1.u16],
|
36
|
+
['rampStartTs', solana_1.i64],
|
37
|
+
['rampStopTs', solana_1.i64],
|
38
|
+
['swapFee', solana_1.u64],
|
39
|
+
['tokens', (0, beet_1.array)(exports.poolTokenStruct)],
|
40
|
+
['pendingOwner', beet_solana_1.publicKey],
|
41
|
+
], (args) => args);
|
42
|
+
//# sourceMappingURL=structs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stabble/structs.ts"],"names":[],"mappings":";;;AAEA,kEAA6D;AAC7D,oDAQmC;AACnC,+CAA8C;AAWjC,QAAA,eAAe,GAAG,IAAI,iBAAU,CAC3C;IACE,CAAC,MAAM,EAAE,uBAAS,CAAC;IACnB,CAAC,UAAU,EAAE,SAAE,CAAC;IAChB,CAAC,WAAW,EAAE,WAAI,CAAC;IACnB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,SAAS,EAAE,YAAG,CAAC;IAChB,CAAC,QAAQ,EAAE,YAAG,CAAC;CAChB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAiB,CAC5B,CAAC;AAeW,QAAA,kBAAkB,GAAG,IAAI,wBAAiB,CACrD;IACE,CAAC,sBAAsB,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACtD,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,MAAM,EAAE,uBAAS,CAAC;IACnB,CAAC,eAAe,EAAE,SAAE,CAAC;IACrB,CAAC,UAAU,EAAE,WAAI,CAAC;IAClB,CAAC,WAAW,EAAE,YAAG,CAAC;IAClB,CAAC,SAAS,EAAE,YAAG,CAAC;IAChB,CAAC,QAAQ,EAAE,IAAA,YAAK,EAAC,uBAAe,CAAC,CAAC;IAClC,CAAC,cAAc,EAAE,uBAAS,CAAC;CAC5B,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAoB,CAC/B,CAAC;AAkBW,QAAA,gBAAgB,GAAG,IAAI,wBAAiB,CACnD;IACE,CAAC,sBAAsB,EAAE,IAAA,4BAAqB,EAAC,SAAE,EAAE,CAAC,CAAC,CAAC;IACtD,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,MAAM,EAAE,uBAAS,CAAC;IACnB,CAAC,eAAe,EAAE,SAAE,CAAC;IACrB,CAAC,UAAU,EAAE,WAAI,CAAC;IAClB,CAAC,kBAAkB,EAAE,UAAG,CAAC;IACzB,CAAC,iBAAiB,EAAE,UAAG,CAAC;IACxB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,SAAS,EAAE,YAAG,CAAC;IAChB,CAAC,QAAQ,EAAE,IAAA,YAAK,EAAC,uBAAe,CAAC,CAAC;IAClC,CAAC,cAAc,EAAE,uBAAS,CAAC;CAC5B,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAkB,CAC7B,CAAC"}
|
@@ -54,30 +54,30 @@ function sushiV3PairToUniV2(pair) {
|
|
54
54
|
}
|
55
55
|
function getV3PairsAddresses(url, length = 300) {
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
57
|
-
const query = (0, graphql_request_1.gql) `
|
58
|
-
{
|
59
|
-
pools(
|
60
|
-
orderBy: totalValueLockedUSD
|
61
|
-
first: ${length}
|
62
|
-
orderDirection: desc
|
63
|
-
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
-
) {
|
65
|
-
id
|
66
|
-
token0Price
|
67
|
-
token1Price
|
68
|
-
liquidity
|
69
|
-
token0 {
|
70
|
-
id
|
71
|
-
totalSupply
|
72
|
-
decimals
|
73
|
-
}
|
74
|
-
token1 {
|
75
|
-
id
|
76
|
-
totalSupply
|
77
|
-
decimals
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
57
|
+
const query = (0, graphql_request_1.gql) `
|
58
|
+
{
|
59
|
+
pools(
|
60
|
+
orderBy: totalValueLockedUSD
|
61
|
+
first: ${length}
|
62
|
+
orderDirection: desc
|
63
|
+
where: { volumeUSD_not: "0", liquidity_not: "0" }
|
64
|
+
) {
|
65
|
+
id
|
66
|
+
token0Price
|
67
|
+
token1Price
|
68
|
+
liquidity
|
69
|
+
token0 {
|
70
|
+
id
|
71
|
+
totalSupply
|
72
|
+
decimals
|
73
|
+
}
|
74
|
+
token1 {
|
75
|
+
id
|
76
|
+
totalSupply
|
77
|
+
decimals
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
81
|
`;
|
82
82
|
const res = yield (0, graphql_request_1.default)(url, query);
|
83
83
|
const pools = res.pools;
|
@@ -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;
|
@@ -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;
|
@@ -11,6 +11,7 @@ export declare class ParsedGpa<T> {
|
|
11
11
|
static build<T>(connection: Connection, beets: GlobalBeetStruct<T>, programId: PublicKey): ParsedGpa<T>;
|
12
12
|
private constructor();
|
13
13
|
addInnerFilter(keys: string, val: T[keyof T] & NonNullable<unknown>): this;
|
14
|
+
addRawFilter(offset: number, bytes: string): this;
|
14
15
|
addFilter(key: keyof T & string, val: T[keyof T]): this;
|
15
16
|
addDataSizeFilter(size?: number): this;
|
16
17
|
run(): Promise<ParsedAccount<T>[]>;
|
@@ -25,6 +25,13 @@ class ParsedGpa {
|
|
25
25
|
this.gpaBuilder.addInnerFilter(keys, val);
|
26
26
|
return this;
|
27
27
|
}
|
28
|
+
addRawFilter(offset, bytes) {
|
29
|
+
if (this.gpaBuilder.config.filters == null) {
|
30
|
+
this.gpaBuilder.config.filters = [];
|
31
|
+
}
|
32
|
+
this.gpaBuilder.config.filters.push({ memcmp: { offset, bytes } });
|
33
|
+
return this;
|
34
|
+
}
|
28
35
|
addFilter(key, val) {
|
29
36
|
this.gpaBuilder.addFilter(key, val);
|
30
37
|
return this;
|
@@ -40,8 +47,10 @@ class ParsedGpa {
|
|
40
47
|
});
|
41
48
|
}
|
42
49
|
debug() {
|
50
|
+
/* eslint-disable no-console */
|
43
51
|
console.log(this.programId.toString());
|
44
52
|
console.log(this.gpaBuilder.config.filters);
|
53
|
+
/* eslint-enable no-console */
|
45
54
|
return this;
|
46
55
|
}
|
47
56
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ParsedGpa.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/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;IACd,CAAC;CACF;AAlED,8BAkEC"}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
|
-
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
|
-
import { PublicKey } from '@solana/web3.js';
|
4
|
-
export type House = {
|
5
|
-
pubkey: PublicKey;
|
6
|
-
houseMint: string;
|
7
|
-
currency: string;
|
8
|
-
currencyDecimals: number;
|
9
|
-
houseTokenSupply: string;
|
10
|
-
liquidity: string;
|
11
|
-
};
|
12
|
-
export type Position = {
|
13
|
-
house: string;
|
14
|
-
user: string;
|
15
|
-
amount: string;
|
16
|
-
status: {
|
17
|
-
deposit?: {};
|
18
|
-
withdraw?: {};
|
19
|
-
};
|
20
|
-
};
|
21
|
-
export type Miner = {
|
22
|
-
isBoosted: boolean;
|
23
|
-
rewarder: string;
|
24
|
-
authority: string;
|
25
|
-
amount: string;
|
26
|
-
rewards: string;
|
27
|
-
revshares: number;
|
28
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/divvy/types.ts"],"names":[],"mappings":""}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
export type Vault = {
|
2
|
-
stakeTimestampSec: string;
|
3
|
-
service: {
|
4
|
-
guestChain: {
|
5
|
-
validator: string;
|
6
|
-
};
|
7
|
-
};
|
8
|
-
stakeAmount: string;
|
9
|
-
stakeMint: string;
|
10
|
-
lastReceivedRewardsHeight: string;
|
11
|
-
withdrawalRequest?: WithdrawalRequestParams;
|
12
|
-
};
|
13
|
-
export type WithdrawalRequestParams = {
|
14
|
-
timestampInSec: string;
|
15
|
-
owner: string;
|
16
|
-
tokenAccount: string;
|
17
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/picasso/types.ts"],"names":[],"mappings":""}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
|
-
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
|
-
import { GetProgramAccountsFilter } from '@solana/web3.js';
|
4
|
-
export declare function getLoanFilters(owner: string): [
|
5
|
-
GetProgramAccountsFilter[],
|
6
|
-
GetProgramAccountsFilter[],
|
7
|
-
GetProgramAccountsFilter[]
|
8
|
-
];
|
@@ -1,43 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getLoanFilters = void 0;
|
4
|
-
const constants_1 = require("./constants");
|
5
|
-
function getLoanFilters(owner) {
|
6
|
-
return [
|
7
|
-
[
|
8
|
-
{
|
9
|
-
dataSize: constants_1.loanDataSize,
|
10
|
-
},
|
11
|
-
{
|
12
|
-
memcmp: {
|
13
|
-
bytes: owner,
|
14
|
-
offset: 115,
|
15
|
-
},
|
16
|
-
},
|
17
|
-
],
|
18
|
-
[
|
19
|
-
{
|
20
|
-
dataSize: constants_1.loanDataSize,
|
21
|
-
},
|
22
|
-
{
|
23
|
-
memcmp: {
|
24
|
-
bytes: owner,
|
25
|
-
offset: 147,
|
26
|
-
},
|
27
|
-
},
|
28
|
-
],
|
29
|
-
[
|
30
|
-
{
|
31
|
-
dataSize: constants_1.loanDataSize,
|
32
|
-
},
|
33
|
-
{
|
34
|
-
memcmp: {
|
35
|
-
bytes: owner,
|
36
|
-
offset: 83,
|
37
|
-
},
|
38
|
-
},
|
39
|
-
],
|
40
|
-
];
|
41
|
-
}
|
42
|
-
exports.getLoanFilters = getLoanFilters;
|
43
|
-
//# sourceMappingURL=filters.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/sharky/filters.ts"],"names":[],"mappings":";;;AACA,2CAA2C;AAE3C,SAAgB,cAAc,CAC5B,KAAa;IAMb,OAAO;QACL;YACE;gBACE,QAAQ,EAAE,wBAAY;aACvB;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,GAAG;iBACZ;aACF;SACF;QACD;YACE;gBACE,QAAQ,EAAE,wBAAY;aACvB;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,GAAG;iBACZ;aACF;SACF;QACD;YACE;gBACE,QAAQ,EAAE,wBAAY;aACvB;YACD;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK;oBACZ,MAAM,EAAE,EAAE;iBACX;aACF;SACF;KACF,CAAC;AACJ,CAAC;AA1CD,wCA0CC"}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
/// <reference types="@drift-labs/sdk/node_modules/@solana/web3.js" />
|
2
|
-
/// <reference types="jito-ts/node_modules/@solana/web3.js" />
|
3
|
-
import { GetProgramAccountsFilter } from '@solana/web3.js';
|
4
|
-
export declare const stableFilter: GetProgramAccountsFilter[];
|
5
|
-
export declare const weightedFilter: GetProgramAccountsFilter[];
|
@@ -1,20 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.weightedFilter = exports.stableFilter = void 0;
|
4
|
-
exports.stableFilter = [
|
5
|
-
{
|
6
|
-
memcmp: {
|
7
|
-
offset: 40,
|
8
|
-
bytes: 'stab1io8dHvK26KoHmTwwHyYmHRbUWbyEJx6CdrGabC',
|
9
|
-
},
|
10
|
-
},
|
11
|
-
];
|
12
|
-
exports.weightedFilter = [
|
13
|
-
{
|
14
|
-
memcmp: {
|
15
|
-
offset: 40,
|
16
|
-
bytes: 'w8edo9a9TDw52c1rBmVbP6dNakaAuFiPjDd52ZJwwVi',
|
17
|
-
},
|
18
|
-
},
|
19
|
-
];
|
20
|
-
//# sourceMappingURL=filters.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stabble/filters.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAA+B;IACtD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,6CAA6C;SACrD;KACF;CACF,CAAC;AAEW,QAAA,cAAc,GAA+B;IACxD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,6CAA6C;SACrD;KACF;CACF,CAAC"}
|
@@ -1,40 +0,0 @@
|
|
1
|
-
export type StablePool = {
|
2
|
-
owner: string;
|
3
|
-
vault: string;
|
4
|
-
mint: string;
|
5
|
-
authorityBump: string;
|
6
|
-
isActive: boolean;
|
7
|
-
ampInitialFactor: string;
|
8
|
-
ampTargetFactor: string;
|
9
|
-
rampStartTs: string;
|
10
|
-
rampStopTs: string;
|
11
|
-
swapFee: string;
|
12
|
-
tokens: StablePoolToken[];
|
13
|
-
pendingOwner?: string;
|
14
|
-
};
|
15
|
-
export type StablePoolToken = {
|
16
|
-
mint: string;
|
17
|
-
decimals: string;
|
18
|
-
scalingUp: boolean;
|
19
|
-
scalingFactor: string;
|
20
|
-
balance: string;
|
21
|
-
};
|
22
|
-
export type WeightedPool = {
|
23
|
-
owner: string;
|
24
|
-
vault: string;
|
25
|
-
mint: string;
|
26
|
-
authorityBump: string;
|
27
|
-
isActive: boolean;
|
28
|
-
invariant: string;
|
29
|
-
swapFee: string;
|
30
|
-
tokens: StablePoolToken[];
|
31
|
-
pendingOwner?: string;
|
32
|
-
};
|
33
|
-
export type WeightedPoolToken = {
|
34
|
-
mint: string;
|
35
|
-
decimals: string;
|
36
|
-
scalingUp: boolean;
|
37
|
-
scalingFactor: string;
|
38
|
-
balance: string;
|
39
|
-
weight: string;
|
40
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/stabble/types.ts"],"names":[],"mappings":""}
|