@sonarwatch/portfolio-plugins 0.12.19 → 0.12.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/CHANGELOG.md +1774 -1766
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/src/index.js +4 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/balancer/helpers/pools.js +21 -21
  7. package/src/plugins/bluefin/bankFetcher.d.ts +3 -0
  8. package/src/plugins/bluefin/bankFetcher.js +66 -0
  9. package/src/plugins/bluefin/bankFetcher.js.map +1 -0
  10. package/src/plugins/bluefin/constants.d.ts +8 -0
  11. package/src/plugins/bluefin/constants.js +18 -0
  12. package/src/plugins/bluefin/constants.js.map +1 -0
  13. package/src/plugins/bluefin/index.d.ts +6 -0
  14. package/src/plugins/bluefin/index.js +16 -0
  15. package/src/plugins/bluefin/index.js.map +1 -0
  16. package/src/plugins/bluefin/perpsJob.d.ts +3 -0
  17. package/src/plugins/bluefin/perpsJob.js +41 -0
  18. package/src/plugins/bluefin/perpsJob.js.map +1 -0
  19. package/src/plugins/bluefin/poolFetcher.d.ts +3 -0
  20. package/src/plugins/bluefin/poolFetcher.js +72 -0
  21. package/src/plugins/bluefin/poolFetcher.js.map +1 -0
  22. package/src/plugins/bluefin/poolJob.d.ts +3 -0
  23. package/src/plugins/bluefin/poolJob.js +33 -0
  24. package/src/plugins/bluefin/poolJob.js.map +1 -0
  25. package/src/plugins/bluefin/positionFetcher.d.ts +3 -0
  26. package/src/plugins/bluefin/positionFetcher.js +133 -0
  27. package/src/plugins/bluefin/positionFetcher.js.map +1 -0
  28. package/src/plugins/bluefin/types.d.ts +88 -0
  29. package/src/plugins/bluefin/types.js +3 -0
  30. package/src/plugins/bluefin/types.js.map +1 -0
  31. package/src/plugins/jupiter/pricingJob.js +3 -0
  32. package/src/plugins/jupiter/pricingJob.js.map +1 -1
  33. package/src/plugins/sushiswap/helpers.js +24 -24
  34. package/src/plugins/uniswap-v2/helpers.js +22 -22
  35. package/src/plugins/x-staking-solana/constants.js +1 -1
  36. package/src/plugins/x-staking-solana/constants.js.map +1 -1
  37. package/src/utils/misc/getLpUnderlyingTokenSource.js +2 -1
  38. package/src/utils/misc/getLpUnderlyingTokenSource.js.map +1 -1
  39. package/src/utils/sei/constants.js +8 -8
  40. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  41. package/src/utils/solana/constants.d.ts +4 -2
  42. package/src/utils/solana/constants.js +5 -3
  43. package/src/utils/solana/constants.js.map +1 -1
  44. package/src/utils/solana/index.d.ts +0 -1
  45. package/src/utils/solana/index.js +0 -1
  46. package/src/utils/solana/index.js.map +1 -1
  47. package/src/utils/sui/constants.d.ts +1 -0
  48. package/src/utils/sui/constants.js +2 -1
  49. package/src/utils/sui/constants.js.map +1 -1
  50. package/src/utils/solana/getTokenAccountsByOwner.d.ts +0 -2
  51. package/src/utils/solana/getTokenAccountsByOwner.js +0 -33
  52. package/src/utils/solana/getTokenAccountsByOwner.js.map +0 -1
@@ -0,0 +1,88 @@
1
+ export type Vault = {
2
+ name: string;
3
+ users: {
4
+ fields: {
5
+ id: {
6
+ id: string;
7
+ };
8
+ };
9
+ };
10
+ };
11
+ export type VaultAccount = {
12
+ id: {
13
+ id: string;
14
+ };
15
+ name: string;
16
+ value: {
17
+ fields: {
18
+ amount_locked: string;
19
+ pending_withdrawal: string;
20
+ };
21
+ type: string;
22
+ };
23
+ };
24
+ export type Bank = {
25
+ accounts: {
26
+ fields: {
27
+ id: {
28
+ id: string;
29
+ };
30
+ };
31
+ type: string;
32
+ };
33
+ };
34
+ export type BankAccount = {
35
+ id: {
36
+ id: string;
37
+ };
38
+ name: string;
39
+ value: {
40
+ fields: {
41
+ balance: string;
42
+ owner: string;
43
+ };
44
+ type: string;
45
+ };
46
+ };
47
+ export type PerpetualV2 = {
48
+ id: {
49
+ id: string;
50
+ };
51
+ name: string;
52
+ positions: {
53
+ fields: {
54
+ id: {
55
+ id: string;
56
+ };
57
+ size: string;
58
+ };
59
+ type: string;
60
+ };
61
+ priceOracle: string;
62
+ };
63
+ export type UserPosition = {
64
+ id: {
65
+ id: string;
66
+ };
67
+ name: string;
68
+ value: {
69
+ fields: {
70
+ isPosPositive: boolean;
71
+ margin: string;
72
+ mro: string;
73
+ oiOpen: string;
74
+ perpID: string;
75
+ qPos: string;
76
+ user: string;
77
+ };
78
+ type: string;
79
+ };
80
+ };
81
+ export type PerpetualMeta = {
82
+ symbol: string;
83
+ perpetualAddress: {
84
+ id: string;
85
+ owner: string;
86
+ dataType: string;
87
+ };
88
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/bluefin/types.ts"],"names":[],"mappings":""}
@@ -57,6 +57,9 @@ const mints = [
57
57
  'phaseZSfPxTDBpiVb96H4XFSD8xHeHxZre5HerehBJG',
58
58
  'picobAEvs6w7QEknPce34wAE4gknZA9v5tTonnmHYdX',
59
59
  'pumpkinsEq8xENVZE6QgTS93EN4r9iKvNxNALS1ooyp',
60
+ 'WensoLXxZJnev2YvihHFchn1dVVFnFLYvgomXWvvwRu',
61
+ 'HausGKcq9G9zM3azwNmgZyzUvYeeqR8h8663PmZpxuDj',
62
+ 'Fi5GayacZzUrfaCRCJtBz2vSYkGF56xjgCceZx5SbXwq',
60
63
  ];
61
64
  const vsToken = portfolio_core_1.solanaNativeWrappedAddress;
62
65
  const executor = (cache) => __awaiter(void 0, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"pricingJob.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/jupiter/pricingJob.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAIoC;AACpC,6CAA4C;AAG5C,oDAAkD;AAClD,uCAA6C;AAC7C,mDAA2D;AAC3D,0FAAuF;AACvF,iDAAsD;AAEtD,MAAM,KAAK,GAAG;IACZ,6CA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, 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;
@@ -15,7 +15,7 @@ exports.stepFinancePlatform = {
15
15
  exports.allbridgePlatformId = 'allbridge';
16
16
  exports.allbridgePlatform = {
17
17
  id: exports.allbridgePlatformId,
18
- name: 'Step Finance',
18
+ name: 'Allbridge',
19
19
  image: 'https://sonar.watch/img/platforms/allbridge.png',
20
20
  website: 'https://stake.allbridge.io/?chain=SOL',
21
21
  twitter: 'https://twitter.com/Allbridge_io',
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/constants.ts"],"names":[],"mappings":";;;AACA,mDAM6B;AAC7B,sDAA2E;AAC3E,yDAAiF;AAEpE,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,sBAAgB;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,sBAAsB;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,sBAAmB;KAChC;CACF,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/x-staking-solana/constants.ts"],"names":[],"mappings":";;;AACA,mDAM6B;AAC7B,sDAA2E;AAC3E,yDAAiF;AAEpE,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,WAAW;IACjB,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,sBAAgB;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,sBAAsB;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,sBAAmB;KAChC;CACF,CAAC"}
@@ -7,6 +7,7 @@ exports.getLpUnderlyingTokenSource = exports.defaultAcceptedPairs = void 0;
7
7
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
8
8
  const constants_1 = require("../../plugins/tokens/constants");
9
9
  const getSourceWeight_1 = __importDefault(require("./getSourceWeight"));
10
+ const constants_2 = require("../sui/constants");
10
11
  exports.defaultAcceptedPairs = new Map([
11
12
  [
12
13
  portfolio_core_1.NetworkId.sei,
@@ -38,7 +39,7 @@ exports.defaultAcceptedPairs = new Map([
38
39
  [
39
40
  portfolio_core_1.suiNativeAddress,
40
41
  '0x2::sui::SUI',
41
- '0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN', // USDCet
42
+ constants_2.usdcSuiType, // USDCet
42
43
  '0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c::coin::COIN', // USDCet
43
44
  ].map((a) => (0, portfolio_core_1.formatTokenAddress)(a, portfolio_core_1.NetworkId.sui)),
44
45
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"getLpUnderlyingTokenSource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getLpUnderlyingTokenSource.ts"],"names":[],"mappings":";;;;;;AAAA,+DAYoC;AACpC,8DAAsE;AACtE,wEAAgD;AAEnC,QAAA,oBAAoB,GAAG,IAAI,GAAG,CAA0B;IACnE;QACE,0BAAS,CAAC,GAAG;QACb;YACE,iCAAgB;YAChB,sEAAsE,EAAE,OAAO;YAC/E,qHAAqH,EAAE,SAAS;SACjI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAAE,0BAAS,CAAC,GAAG,CAAC,CAAC;KACnD;IACD;QACE,0BAAS,CAAC,MAAM;QAChB;YACE,oCAAmB;YACnB,2CAA0B;YAC1B,8CAA8C,EAAE,OAAO;YACvD,8CAA8C,EAAE,OAAO;SACxD,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAAE,0BAAS,CAAC,MAAM,CAAC,CAAC;KACtD;IACD;QACE,0BAAS,CAAC,KAAK;QACf;YACE,mCAAkB;YAClB,6EAA6E,EAAE,SAAS;YACxF,mFAAmF,EAAE,oBAAoB;SAC1G,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAAE,0BAAS,CAAC,KAAK,CAAC,CAAC;KACrD;IACD;QACE,0BAAS,CAAC,GAAG;QACb;YACE,iCAAgB;YAChB,eAAe;YACf,gFAAgF,EAAE,SAAS;YAC3F,gFAAgF,EAAE,SAAS;SAC5F,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAA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QAEX,IAAI,YAAY,GAAG,CAAC,CAAC;QACrB,IAAI,CAAC,CAAC,MAAM,IAAI,eAAe,CAAC,MAAM;YACpC,YAAY,GAAG,CAAC,CAAC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC;QACnD,MAAM,KAAK,GAAG,CAAC,YAAY,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,aAAa,CAAC;QAEnE,MAAM,MAAM,GAAqB;YAC/B,EAAE,EAAE,QAAQ;YACZ,SAAS;YACT,UAAU,EAAE,gCAAoB,CAAC,EAAE;YACnC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;YACtB,QAAQ,EAAE,CAAC,CAAC,QAAQ;YACpB,KAAK;YACL,MAAM,EAAE,IAAA,yBAAe,EAAC,iBAAiB,CAAC;YAC1C,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,aAAa;YACb,WAAW;SACZ,CAAC;QACF,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAnFD,gEAmFC"}
1
+ {"version":3,"file":"getLpUnderlyingTokenSource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/misc/getLpUnderlyingTokenSource.ts"],"names":[],"mappings":";;;;;;AAAA,+DAYoC;AACpC,8DAAsE;AACtE,wEAAgD;AAChD,gDAA+C;AAElC,QAAA,oBAAoB,GAAG,IAAI,GAAG,CAA0B;IACnE;QACE,0BAAS,CAAC,GAAG;QACb;YACE,iCAAgB;YAChB,sEAAsE,EAAE,OAAO;YAC/E,qHAAqH,EAAE,SAAS;SACjI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mCAAkB,EAAC,CAAC,EAAE,0BAAS,CAAC,GAAG,CAAC,CAAC;KACnD;IACD;QACE,0BAAS,CAAC,MAAM;QAChB;YACE,oCAAmB;YACnB,2CAA0B;YAC1B,8CAA8C,EAAE,OAAO;YACvD,8CAA8C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FC"}
@@ -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,7 +1,9 @@
1
1
  import { PublicKey } from '@solana/web3.js';
2
2
  import BigNumber from 'bignumber.js';
3
- export declare const solanaTokenPid: PublicKey;
4
- export declare const solanaToken2022Pid: PublicKey;
3
+ export declare const solanaTokenPid = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
4
+ export declare const solanaTokenPidPk: PublicKey;
5
+ export declare const solanaToken2022Pid = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb";
6
+ export declare const solanaToken2022PidPk: PublicKey;
5
7
  export declare const associatedTokenProgramId: PublicKey;
6
8
  export declare const usdcSolanaMint = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v";
7
9
  export declare const usdcSolanaDecimals = 6;
@@ -3,11 +3,13 @@ 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.usdcSolanaFactor = exports.usdcSolanaDecimals = exports.usdcSolanaMint = exports.associatedTokenProgramId = exports.solanaToken2022Pid = exports.solanaTokenPid = void 0;
6
+ 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
- exports.solanaTokenPid = new web3_js_1.PublicKey('TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA');
10
- exports.solanaToken2022Pid = new web3_js_1.PublicKey('TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb');
9
+ exports.solanaTokenPid = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
10
+ exports.solanaTokenPidPk = new web3_js_1.PublicKey(exports.solanaTokenPid);
11
+ exports.solanaToken2022Pid = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
12
+ exports.solanaToken2022PidPk = new web3_js_1.PublicKey(exports.solanaToken2022Pid);
11
13
  exports.associatedTokenProgramId = new web3_js_1.PublicKey('ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL');
12
14
  exports.usdcSolanaMint = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
13
15
  exports.usdcSolanaDecimals = 6;
@@ -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,IAAI,mBAAS,CACzC,6CAA6C,CAC9C,CAAC;AACW,QAAA,kBAAkB,GAAG,IAAI,mBAAS,CAC7C,6CAA6C,CAC9C,CAAC;AACW,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"}
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"}
@@ -4,7 +4,6 @@ export * from './constants';
4
4
  export * from './getParsedProgramAccounts';
5
5
  export * from './getParsedMultipleAccountsInfo';
6
6
  export * from './getProgramAccounts';
7
- export * from './getTokenAccountsByOwner';
8
7
  export * from './u8ArrayToString';
9
8
  export * from './structs';
10
9
  export * from './types';
@@ -20,7 +20,6 @@ __exportStar(require("./constants"), exports);
20
20
  __exportStar(require("./getParsedProgramAccounts"), exports);
21
21
  __exportStar(require("./getParsedMultipleAccountsInfo"), exports);
22
22
  __exportStar(require("./getProgramAccounts"), exports);
23
- __exportStar(require("./getTokenAccountsByOwner"), exports);
24
23
  __exportStar(require("./u8ArrayToString"), exports);
25
24
  __exportStar(require("./structs"), exports);
26
25
  __exportStar(require("./types"), 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,uDAAqC;AACrC,4DAA0C;AAC1C,oDAAkC;AAClC,4CAA0B;AAC1B,0CAAwB"}
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,oDAAkC;AAClC,4CAA0B;AAC1B,0CAAwB"}
@@ -1,2 +1,3 @@
1
1
  export declare const kioskItemType = "0x2::kiosk::Item";
2
2
  export declare const obKioskStructType = "0x95a441d389b07437d00dd07e0b6f05f513d7659b13fd7c5d3923c7d9d847199b::ob_kiosk::OwnerToken";
3
+ export declare const usdcSuiType = "0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN";
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.obKioskStructType = exports.kioskItemType = void 0;
3
+ exports.usdcSuiType = exports.obKioskStructType = exports.kioskItemType = void 0;
4
4
  exports.kioskItemType = '0x2::kiosk::Item';
5
5
  exports.obKioskStructType = '0x95a441d389b07437d00dd07e0b6f05f513d7659b13fd7c5d3923c7d9d847199b::ob_kiosk::OwnerToken';
6
+ exports.usdcSuiType = '0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf::coin::COIN';
6
7
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,kBAAkB,CAAC;AACnC,QAAA,iBAAiB,GAC5B,0FAA0F,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/sui/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,kBAAkB,CAAC;AACnC,QAAA,iBAAiB,GAC5B,0FAA0F,CAAC;AAChF,QAAA,WAAW,GACtB,gFAAgF,CAAC"}
@@ -1,2 +0,0 @@
1
- import { Connection, PublicKey } from '@solana/web3.js';
2
- export declare function getTokenAccountsByOwner(connection: Connection, owner: PublicKey, tokenProgramId?: PublicKey): Promise<import("./types").ParsedAccount<import("./structs").TokenAccount>[]>;
@@ -1,33 +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
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.getTokenAccountsByOwner = void 0;
13
- const getParsedProgramAccounts_1 = require("./getParsedProgramAccounts");
14
- const structs_1 = require("./structs");
15
- const constants_1 = require("./constants");
16
- function getTokenAccountsByOwner(connection, owner, tokenProgramId = constants_1.solanaTokenPid) {
17
- return __awaiter(this, void 0, void 0, function* () {
18
- const filters = [
19
- {
20
- memcmp: {
21
- bytes: owner.toString(),
22
- offset: 32,
23
- },
24
- },
25
- ];
26
- if (tokenProgramId.toString() === constants_1.solanaTokenPid.toString()) {
27
- filters.push({ dataSize: structs_1.tokenAccountStruct.byteSize });
28
- }
29
- return (0, getParsedProgramAccounts_1.getParsedProgramAccounts)(connection, structs_1.tokenAccountStruct, tokenProgramId, filters, 10000);
30
- });
31
- }
32
- exports.getTokenAccountsByOwner = getTokenAccountsByOwner;
33
- //# sourceMappingURL=getTokenAccountsByOwner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getTokenAccountsByOwner.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/solana/getTokenAccountsByOwner.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,yEAAsE;AACtE,uCAA+C;AAC/C,2CAA6C;AAE7C,SAAsB,uBAAuB,CAC3C,UAAsB,EACtB,KAAgB,EAChB,iBAA4B,0BAAc;;QAE1C,MAAM,OAAO,GAA+B;YAC1C;gBACE,MAAM,EAAE;oBACN,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE;oBACvB,MAAM,EAAE,EAAE;iBACX;aACF;SACF,CAAC;QACF,IAAI,cAAc,CAAC,QAAQ,EAAE,KAAK,0BAAc,CAAC,QAAQ,EAAE,EAAE,CAAC;YAC5D,OAAO,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,4BAAkB,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC1D,CAAC;QAED,OAAO,IAAA,mDAAwB,EAC7B,UAAU,EACV,4BAAkB,EAClB,cAAc,EACd,OAAO,EACP,KAAK,CACN,CAAC;IACJ,CAAC;CAAA;AAxBD,0DAwBC"}