@sonarwatch/portfolio-plugins 0.11.151 → 0.11.153
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +1331 -1323
- package/README.md +3 -3
- package/package.json +2 -2
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/orphanPlatorms.js +9 -1
- package/src/orphanPlatorms.js.map +1 -1
- package/src/plugins/aptin/constants.js +1 -1
- package/src/plugins/aptin/constants.js.map +1 -1
- package/src/plugins/armada-staking/constants.d.ts +1 -2
- package/src/plugins/armada-staking/constants.js +2 -7
- package/src/plugins/armada-staking/constants.js.map +1 -1
- package/src/plugins/armada-staking/index.js +0 -1
- package/src/plugins/armada-staking/index.js.map +1 -1
- package/src/plugins/armada-staking/stakingFetcher.js +3 -1
- package/src/plugins/armada-staking/stakingFetcher.js.map +1 -1
- package/src/plugins/balancer/helpers/pools.js +21 -21
- package/src/plugins/benqi/constants.js +3 -3
- package/src/plugins/benqi/constants.js.map +1 -1
- package/src/plugins/flash/constants.js +1 -1
- package/src/plugins/flash/constants.js.map +1 -1
- package/src/plugins/flexlend/constants.js +1 -0
- package/src/plugins/flexlend/constants.js.map +1 -1
- package/src/plugins/jupiter/constants.js +2 -1
- package/src/plugins/jupiter/constants.js.map +1 -1
- package/src/plugins/kamino/lendsFetcher.js +10 -7
- package/src/plugins/kamino/lendsFetcher.js.map +1 -1
- package/src/plugins/navi/constants.js +2 -1
- package/src/plugins/navi/constants.js.map +1 -1
- package/src/plugins/phoenix/constants.d.ts +8 -0
- package/src/plugins/phoenix/constants.js +18 -0
- package/src/plugins/phoenix/constants.js.map +1 -0
- package/src/plugins/phoenix/helpers/deserializeMarketData.d.ts +5 -0
- package/src/plugins/phoenix/helpers/deserializeMarketData.js +213 -0
- package/src/plugins/phoenix/helpers/deserializeMarketData.js.map +1 -0
- package/src/plugins/phoenix/helpers/misc.d.ts +6 -0
- package/src/plugins/phoenix/helpers/misc.js +46 -0
- package/src/plugins/phoenix/helpers/misc.js.map +1 -0
- package/src/plugins/phoenix/index.d.ts +6 -0
- package/src/plugins/phoenix/index.js +12 -0
- package/src/plugins/phoenix/index.js.map +1 -0
- package/src/plugins/phoenix/positionsFetcher.d.ts +3 -0
- package/src/plugins/phoenix/positionsFetcher.js +118 -0
- package/src/plugins/phoenix/positionsFetcher.js.map +1 -0
- package/src/plugins/phoenix/structs/marketHeader.d.ts +40 -0
- package/src/plugins/phoenix/structs/marketHeader.js +39 -0
- package/src/plugins/phoenix/structs/marketHeader.js.map +1 -0
- package/src/plugins/phoenix/structs/misc.d.ts +47 -0
- package/src/plugins/phoenix/structs/misc.js +44 -0
- package/src/plugins/phoenix/structs/misc.js.map +1 -0
- package/src/plugins/phoenix/structs/seat.d.ts +11 -0
- package/src/plugins/phoenix/structs/seat.js +14 -0
- package/src/plugins/phoenix/structs/seat.js.map +1 -0
- package/src/plugins/phoenix/types.d.ts +45 -0
- package/src/plugins/phoenix/types.js +3 -0
- package/src/plugins/phoenix/types.js.map +1 -0
- package/src/plugins/pyth/constants.js +1 -1
- package/src/plugins/pyth/constants.js.map +1 -1
- 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/getParsedProgramAccounts.js +2 -2
- package/src/utils/solana/getParsedProgramAccounts.js.map +1 -1
- package/src/utils/solana/getProgramAccounts.d.ts +2 -0
- package/src/utils/solana/{getProgramAccountsSafe.js → getProgramAccounts.js} +5 -5
- package/src/utils/solana/getProgramAccounts.js.map +1 -0
- package/src/utils/solana/index.d.ts +1 -1
- package/src/utils/solana/index.js +1 -1
- package/src/utils/solana/index.js.map +1 -1
- package/src/utils/solana/getProgramAccountsSafe.d.ts +0 -2
- package/src/utils/solana/getProgramAccountsSafe.js.map +0 -1
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.seatStruct = 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.seatStruct = new beet_1.BeetStruct([
|
8
|
+
['discriminant', solana_1.u64],
|
9
|
+
['market', beet_solana_1.publicKey],
|
10
|
+
['trader', beet_solana_1.publicKey],
|
11
|
+
['approvalStatus', solana_1.u64],
|
12
|
+
['padding', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 6)],
|
13
|
+
], (args) => args);
|
14
|
+
//# sourceMappingURL=seat.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"seat.js","sourceRoot":"","sources":["../../../../../../../packages/plugins/src/plugins/phoenix/structs/seat.ts"],"names":[],"mappings":";;;AAAA,oDAA8E;AAC9E,kEAA6D;AAG7D,kDAA4C;AAU/B,QAAA,UAAU,GAAG,IAAI,iBAAU,CACtC;IACE,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,SAAS,EAAE,IAAA,4BAAqB,EAAC,YAAG,EAAE,CAAC,CAAC,CAAC;CAC3C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAY,CACvB,CAAC"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { MarketHeaderAccount } from './structs/marketHeader';
|
2
|
+
import { OrderId, RestingOrder, TraderState } from './structs/misc';
|
3
|
+
export type MarketHeader = {
|
4
|
+
discriminant: string;
|
5
|
+
status: string;
|
6
|
+
marketSizeParams: {
|
7
|
+
bidsSize: string;
|
8
|
+
asksSize: string;
|
9
|
+
numSeats: string;
|
10
|
+
};
|
11
|
+
baseParams: {
|
12
|
+
decimals: number;
|
13
|
+
vaultBump: number;
|
14
|
+
mintKey: string;
|
15
|
+
vaultKey: string;
|
16
|
+
};
|
17
|
+
baseLotSize: string;
|
18
|
+
quoteParams: {
|
19
|
+
decimals: number;
|
20
|
+
vaultBump: number;
|
21
|
+
mintKey: string;
|
22
|
+
vaultKey: string;
|
23
|
+
};
|
24
|
+
quoteLotSize: string;
|
25
|
+
tickSizeInQuoteAtomsPerBaseUnit: string;
|
26
|
+
authority: string;
|
27
|
+
feeRecipient: string;
|
28
|
+
marketSequenceNumber: string;
|
29
|
+
successor: string;
|
30
|
+
rawBaseUnitsPerBaseUnit: number;
|
31
|
+
};
|
32
|
+
export type Market = {
|
33
|
+
header: MarketHeaderAccount;
|
34
|
+
baseLotsPerBaseUnit: number;
|
35
|
+
quoteLotsPerBaseUnitPerTick: number;
|
36
|
+
orderSequenceNumber: number;
|
37
|
+
takerFeeBps: number;
|
38
|
+
collectedQuoteLotFees: number;
|
39
|
+
unclaimedQuoteLotFees: number;
|
40
|
+
bids: [OrderId, Partial<RestingOrder>][];
|
41
|
+
asks: [OrderId, Partial<RestingOrder>][];
|
42
|
+
traders: Map<string, TraderState>;
|
43
|
+
traderPubkeyToTraderIndex: Map<string, number>;
|
44
|
+
traderIndexToTraderPubkey: Map<number, string>;
|
45
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/phoenix/types.ts"],"names":[],"mappings":""}
|
@@ -7,7 +7,7 @@ exports.platform = {
|
|
7
7
|
id: exports.platformId,
|
8
8
|
name: 'Pyth',
|
9
9
|
image: 'https://sonar.watch/img/platforms/pyth.png',
|
10
|
-
|
10
|
+
defiLlamaId: 'pyth-network', // from https://defillama.com/docs/api
|
11
11
|
website: 'https://staking.pyth.network/',
|
12
12
|
twitter: 'https://twitter.com/PythNetwork',
|
13
13
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pyth/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,4CAA4C;IACnD,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/pyth/constants.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAG/B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,4CAA4C;IACnD,WAAW,EAAE,cAAc,EAAE,sCAAsC;IACnE,OAAO,EAAE,+BAA+B;IACxC,OAAO,EAAE,iCAAiC;CAC3C,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AACW,QAAA,QAAQ,GAAG,8CAA8C,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;
|
@@ -10,10 +10,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.getParsedProgramAccounts = void 0;
|
13
|
-
const
|
13
|
+
const getProgramAccounts_1 = require("./getProgramAccounts");
|
14
14
|
function getParsedProgramAccounts(connection, beetStruct, programId, filters = undefined, maxAccounts = -1) {
|
15
15
|
return __awaiter(this, void 0, void 0, function* () {
|
16
|
-
const accountsRes = yield (0,
|
16
|
+
const accountsRes = yield (0, getProgramAccounts_1.getProgramAccounts)(connection, programId, filters, maxAccounts);
|
17
17
|
return accountsRes.map((accountRes) => (Object.assign({ pubkey: accountRes.pubkey, lamports: accountRes.account.lamports }, beetStruct.deserialize(accountRes.account.data)[0])));
|
18
18
|
});
|
19
19
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getParsedProgramAccounts.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/getParsedProgramAccounts.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"getParsedProgramAccounts.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/getParsedProgramAccounts.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,6DAA0D;AAG1D,SAAsB,wBAAwB,CAC5C,UAAsB,EACtB,UAA+B,EAC/B,SAAoB,EACpB,UAAkD,SAAS,EAC3D,WAAW,GAAG,CAAC,CAAC;;QAEhB,MAAM,WAAW,GAAG,MAAM,IAAA,uCAAkB,EAC1C,UAAU,EACV,SAAS,EACT,OAAO,EACP,WAAW,CACZ,CAAC;QACF,OAAO,WAAW,CAAC,GAAG,CACpB,CAAC,UAAU,EAAE,EAAE,CACb,CAAC,gBACC,MAAM,EAAE,UAAU,CAAC,MAAM,EACzB,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,QAAQ,IAClC,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CACjC,CAAA,CACzB,CAAC;IACJ,CAAC;CAAA;AArBD,4DAqBC"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import { Connection, GetProgramAccountsFilter, PublicKey } from '@solana/web3.js';
|
2
|
+
export declare function getProgramAccounts(connection: Connection, programId: PublicKey, filters?: GetProgramAccountsFilter[], maxAccounts?: number): Promise<import("@solana/web3.js").GetProgramAccountsResponse>;
|
@@ -9,15 +9,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
9
9
|
});
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.
|
13
|
-
function
|
12
|
+
exports.getProgramAccounts = void 0;
|
13
|
+
function getProgramAccounts(connection, programId, filters, maxAccounts = 0) {
|
14
14
|
return __awaiter(this, void 0, void 0, function* () {
|
15
15
|
const config = {
|
16
16
|
commitment: 'confirmed',
|
17
17
|
encoding: 'base64',
|
18
18
|
filters,
|
19
19
|
};
|
20
|
-
if (maxAccounts
|
20
|
+
if (maxAccounts <= 0)
|
21
21
|
return connection.getProgramAccounts(programId, config);
|
22
22
|
const accountsRes = yield connection.getProgramAccounts(programId, Object.assign(Object.assign({}, config), { dataSlice: { offset: 0, length: 0 } }));
|
23
23
|
if (accountsRes.length > maxAccounts)
|
@@ -25,5 +25,5 @@ function getProgramAccountsSafe(connection, maxAccounts, programId, filters = un
|
|
25
25
|
return connection.getProgramAccounts(programId, config);
|
26
26
|
});
|
27
27
|
}
|
28
|
-
exports.
|
29
|
-
//# sourceMappingURL=
|
28
|
+
exports.getProgramAccounts = getProgramAccounts;
|
29
|
+
//# sourceMappingURL=getProgramAccounts.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getProgramAccounts.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/getProgramAccounts.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,SAAsB,kBAAkB,CACtC,UAAsB,EACtB,SAAoB,EACpB,OAAoC,EACpC,WAAW,GAAG,CAAC;;QAEf,MAAM,MAAM,GAA6B;YACvC,UAAU,EAAE,WAAW;YACvB,QAAQ,EAAE,QAAQ;YAClB,OAAO;SACR,CAAC;QAEF,IAAI,WAAW,IAAI,CAAC;YAAE,OAAO,UAAU,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAE9E,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,kBAAkB,CAAC,SAAS,kCAC5D,MAAM,KACT,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IACnC,CAAC;QACH,IAAI,WAAW,CAAC,MAAM,GAAG,WAAW;YAClC,MAAM,IAAI,KAAK,CAAC,6BAA6B,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC;QAEtE,OAAO,UAAU,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAC1D,CAAC;CAAA;AAtBD,gDAsBC"}
|
@@ -3,7 +3,7 @@ export * from './beets/numbers';
|
|
3
3
|
export * from './constants';
|
4
4
|
export * from './getParsedProgramAccounts';
|
5
5
|
export * from './getParsedMultipleAccountsInfo';
|
6
|
-
export * from './
|
6
|
+
export * from './getProgramAccounts';
|
7
7
|
export * from './getTokenAccountsByOwner';
|
8
8
|
export * from './u8ArrayToString';
|
9
9
|
export * from './structs';
|
@@ -19,7 +19,7 @@ __exportStar(require("./beets/numbers"), exports);
|
|
19
19
|
__exportStar(require("./constants"), exports);
|
20
20
|
__exportStar(require("./getParsedProgramAccounts"), exports);
|
21
21
|
__exportStar(require("./getParsedMultipleAccountsInfo"), exports);
|
22
|
-
__exportStar(require("./
|
22
|
+
__exportStar(require("./getProgramAccounts"), exports);
|
23
23
|
__exportStar(require("./getTokenAccountsByOwner"), exports);
|
24
24
|
__exportStar(require("./u8ArrayToString"), exports);
|
25
25
|
__exportStar(require("./structs"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,kDAAgC;AAChC,8CAA4B;AAC5B,6DAA2C;AAC3C,kEAAgD;AAChD,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,kDAAgC;AAChC,8CAA4B;AAC5B,6DAA2C;AAC3C,kEAAgD;AAChD,uDAAqC;AACrC,4DAA0C;AAC1C,oDAAkC;AAClC,4CAA0B;AAC1B,0CAAwB"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import { Connection, GetProgramAccountsFilter, PublicKey } from '@solana/web3.js';
|
2
|
-
export declare function getProgramAccountsSafe(connection: Connection, maxAccounts: number, programId: PublicKey, filters?: GetProgramAccountsFilter[] | undefined): Promise<import("@solana/web3.js").GetProgramAccountsResponse>;
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"getProgramAccountsSafe.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/getProgramAccountsSafe.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,SAAsB,sBAAsB,CAC1C,UAAsB,EACtB,WAAmB,EACnB,SAAoB,EACpB,UAAkD,SAAS;;QAE3D,MAAM,MAAM,GAA6B;YACvC,UAAU,EAAE,WAAW;YACvB,QAAQ,EAAE,QAAQ;YAClB,OAAO;SACR,CAAC;QAEF,IAAI,WAAW,GAAG,CAAC;YAAE,OAAO,UAAU,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAE7E,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,kBAAkB,CAAC,SAAS,kCAC5D,MAAM,KACT,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IACnC,CAAC;QACH,IAAI,WAAW,CAAC,MAAM,GAAG,WAAW;YAClC,MAAM,IAAI,KAAK,CAAC,6BAA6B,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC;QAEtE,OAAO,UAAU,CAAC,kBAAkB,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAC1D,CAAC;CAAA;AAtBD,wDAsBC"}
|