@sonarwatch/portfolio-plugins 0.15.46 → 0.15.47
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 +2935 -2926
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/byreal/clmmJob.d.ts +3 -0
- package/src/plugins/byreal/clmmJob.js +140 -0
- package/src/plugins/byreal/clmmJob.js.map +1 -0
- package/src/plugins/byreal/constants.d.ts +8 -0
- package/src/plugins/byreal/constants.js +11 -0
- package/src/plugins/byreal/constants.js.map +1 -0
- package/src/plugins/byreal/index.d.ts +4 -0
- package/src/plugins/byreal/index.js +11 -0
- package/src/plugins/byreal/index.js.map +1 -0
- package/src/plugins/byreal/resetFetcher.d.ts +3 -0
- package/src/plugins/byreal/resetFetcher.js +119 -0
- package/src/plugins/byreal/resetFetcher.js.map +1 -0
- package/src/plugins/byreal/structs.d.ts +53 -0
- package/src/plugins/byreal/structs.js +53 -0
- package/src/plugins/byreal/structs.js.map +1 -0
- package/src/plugins/carrot/constants.d.ts +1 -0
- package/src/plugins/carrot/constants.js +2 -1
- package/src/plugins/carrot/constants.js.map +1 -1
- package/src/plugins/carrot/crtYieldJob.d.ts +3 -0
- package/src/plugins/carrot/crtYieldJob.js +35 -0
- package/src/plugins/carrot/crtYieldJob.js.map +1 -0
- package/src/plugins/carrot/index.js +2 -1
- package/src/plugins/carrot/index.js.map +1 -1
- package/src/plugins/fragmetric/airdropFetcher.d.ts +2 -0
- package/src/plugins/fragmetric/airdropFetcher.js +48 -0
- package/src/plugins/fragmetric/airdropFetcher.js.map +1 -0
- package/src/plugins/fragmetric/constants.d.ts +10 -0
- package/src/plugins/fragmetric/constants.js +18 -1
- package/src/plugins/fragmetric/constants.js.map +1 -1
- package/src/plugins/fragmetric/index.d.ts +2 -0
- package/src/plugins/fragmetric/index.js +3 -1
- package/src/plugins/fragmetric/index.js.map +1 -1
- package/src/plugins/kamino/constants.js +4 -0
- package/src/plugins/kamino/constants.js.map +1 -1
- package/src/plugins/raydium/clmmFetcher.d.ts +4 -1
- package/src/plugins/raydium/clmmFetcher.js +81 -79
- package/src/plugins/raydium/clmmFetcher.js.map +1 -1
- package/src/plugins/raydium/constants.d.ts +1 -1
- package/src/plugins/raydium/constants.js +2 -2
- package/src/plugins/raydium/constants.js.map +1 -1
- package/src/plugins/sushiswap/helpers.js +24 -24
- package/src/plugins/switchboard/onDemandPricingJob.js +2 -1
- package/src/plugins/switchboard/onDemandPricingJob.js.map +1 -1
- package/src/plugins/tokens/fetchers/solana.js +3 -1
- package/src/plugins/tokens/fetchers/solana.js.map +1 -1
- package/src/plugins/uniswap-v2/helpers.js +22 -22
- package/src/plugins/voltr/constants.d.ts +6 -0
- package/src/plugins/voltr/constants.js +8 -0
- package/src/plugins/voltr/constants.js.map +1 -0
- package/src/plugins/voltr/index.d.ts +4 -0
- package/src/plugins/voltr/index.js +6 -0
- package/src/plugins/voltr/index.js.map +1 -0
- package/src/plugins/zeta/airdropFetcher.js +14 -14
- package/src/utils/sei/constants.js +8 -8
- package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
- package/src/utils/solana/constants.d.ts +0 -1
- package/src/utils/solana/constants.js +1 -2
- package/src/utils/solana/constants.js.map +1 -1
@@ -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;
|
@@ -0,0 +1,6 @@
|
|
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 declare const platformId = "voltr";
|
5
|
+
export declare const vaultPid: PublicKey;
|
6
|
+
export declare const adaptorPid: PublicKey;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.adaptorPid = exports.vaultPid = exports.platformId = void 0;
|
4
|
+
const web3_js_1 = require("@solana/web3.js");
|
5
|
+
exports.platformId = 'voltr';
|
6
|
+
exports.vaultPid = new web3_js_1.PublicKey('EwAei87GBsgeLueC7mShT2TNbH3BYumP4RskusxUFBn6');
|
7
|
+
exports.adaptorPid = new web3_js_1.PublicKey('3BufioDyECNwuFJLRGCXNbZFrsnJnCsALMfDKjQEnk8x');
|
8
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/voltr/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAE/B,QAAA,UAAU,GAAG,OAAO,CAAC;AAErB,QAAA,QAAQ,GAAG,IAAI,mBAAS,CACnC,8CAA8C,CAC/C,CAAC;AACW,QAAA,UAAU,GAAG,IAAI,mBAAS,CACrC,8CAA8C,CAC/C,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/voltr/index.ts"],"names":[],"mappings":";;;AAGa,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,EAAE,CAAC"}
|
@@ -41,20 +41,20 @@ const getMultipleAccountsInfoSafe_1 = require("../../utils/solana/getMultipleAcc
|
|
41
41
|
const helpers_1 = require("./helpers");
|
42
42
|
const AirdropFetcher_1 = require("../../AirdropFetcher");
|
43
43
|
const getClaimTransactions_1 = require("../../utils/solana/jupiter/getClaimTransactions");
|
44
|
-
const query = (0, graphql_request_1.gql) `
|
45
|
-
query GetAirdropFinalFrontend($authority: String!) {
|
46
|
-
getAirdropFinalFrontend(authority: $authority) {
|
47
|
-
authority
|
48
|
-
community_allocation
|
49
|
-
eligibility
|
50
|
-
main_allocation
|
51
|
-
og_allocation
|
52
|
-
s1_allocation
|
53
|
-
s2_allocation
|
54
|
-
total_allocation
|
55
|
-
__typename
|
56
|
-
}
|
57
|
-
}
|
44
|
+
const query = (0, graphql_request_1.gql) `
|
45
|
+
query GetAirdropFinalFrontend($authority: String!) {
|
46
|
+
getAirdropFinalFrontend(authority: $authority) {
|
47
|
+
authority
|
48
|
+
community_allocation
|
49
|
+
eligibility
|
50
|
+
main_allocation
|
51
|
+
og_allocation
|
52
|
+
s1_allocation
|
53
|
+
s2_allocation
|
54
|
+
total_allocation
|
55
|
+
__typename
|
56
|
+
}
|
57
|
+
}
|
58
58
|
`;
|
59
59
|
const executor = (owner) => __awaiter(void 0, void 0, void 0, function* () {
|
60
60
|
const res = yield (0, graphql_request_1.default)(constants_1.graphqlApi, query, {
|
@@ -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,4 +11,3 @@ export declare const usdcSolanaMint = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTD
|
|
11
11
|
export declare const usdcSolanaDecimals = 6;
|
12
12
|
export declare const usdcSolanaFactor: BigNumber;
|
13
13
|
export declare const emptyWithSol = "empty11111111111111111111111111111111111111";
|
14
|
-
export declare const crtSolanaMint = "CRTx1JouZhzSU6XytsE42UQraoGqiHgxabocVfARTy2s";
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.
|
6
|
+
exports.emptyWithSol = exports.usdcSolanaFactor = exports.usdcSolanaDecimals = exports.usdcSolanaMint = exports.associatedTokenProgramId = exports.solanaToken2022PidPk = exports.solanaToken2022Pid = exports.solanaTokenPidPk = exports.solanaTokenPid = void 0;
|
7
7
|
const web3_js_1 = require("@solana/web3.js");
|
8
8
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
9
9
|
exports.solanaTokenPid = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
|
@@ -15,5 +15,4 @@ exports.usdcSolanaMint = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
|
|
15
15
|
exports.usdcSolanaDecimals = 6;
|
16
16
|
exports.usdcSolanaFactor = new bignumber_js_1.default(Math.pow(10, 6));
|
17
17
|
exports.emptyWithSol = 'empty11111111111111111111111111111111111111';
|
18
|
-
exports.crtSolanaMint = 'CRTx1JouZhzSU6XytsE42UQraoGqiHgxabocVfARTy2s';
|
19
18
|
//# sourceMappingURL=constants.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/constants.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAC5C,gEAAqC;AAExB,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAAC,sBAAc,CAAC,CAAC;AAEjD,QAAA,kBAAkB,GAAG,6CAA6C,CAAC;AACnE,QAAA,oBAAoB,GAAG,IAAI,mBAAS,CAAC,0BAAkB,CAAC,CAAC;AAEzD,QAAA,wBAAwB,GAAG,IAAI,mBAAS,CACnD,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,8CAA8C,CAAC;AAChE,QAAA,kBAAkB,GAAG,CAAC,CAAC;AACvB,QAAA,gBAAgB,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC;AAC1C,QAAA,YAAY,GAAG,6CAA6C,CAAC
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/constants.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAC5C,gEAAqC;AAExB,QAAA,cAAc,GAAG,6CAA6C,CAAC;AAC/D,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAAC,sBAAc,CAAC,CAAC;AAEjD,QAAA,kBAAkB,GAAG,6CAA6C,CAAC;AACnE,QAAA,oBAAoB,GAAG,IAAI,mBAAS,CAAC,0BAAkB,CAAC,CAAC;AAEzD,QAAA,wBAAwB,GAAG,IAAI,mBAAS,CACnD,8CAA8C,CAC/C,CAAC;AAEW,QAAA,cAAc,GAAG,8CAA8C,CAAC;AAChE,QAAA,kBAAkB,GAAG,CAAC,CAAC;AACvB,QAAA,gBAAgB,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,CAAC,CAAA,CAAC,CAAC;AAC1C,QAAA,YAAY,GAAG,6CAA6C,CAAC"}
|