@sonarwatch/portfolio-plugins 0.11.138 → 0.11.140

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. package/CHANGELOG.md +1275 -1267
  2. package/README.md +3 -3
  3. package/package.json +3 -3
  4. package/src/index.js +4 -0
  5. package/src/index.js.map +1 -1
  6. package/src/plugins/aptin/depositsFetcher.js +9 -9
  7. package/src/plugins/aptin/depositsFetcher.js.map +1 -1
  8. package/src/plugins/balancer/helpers/pools.js +21 -21
  9. package/src/plugins/foo/constants.js +1 -1
  10. package/src/plugins/foo/constants.js.map +1 -1
  11. package/src/plugins/native-stake/activeValidatorsJob.js +9 -4
  12. package/src/plugins/native-stake/activeValidatorsJob.js.map +1 -1
  13. package/src/plugins/native-stake/aptosFetcher.js +5 -3
  14. package/src/plugins/native-stake/aptosFetcher.js.map +1 -1
  15. package/src/plugins/pancakeswap/aptosLpJob.js +22 -17
  16. package/src/plugins/pancakeswap/aptosLpJob.js.map +1 -1
  17. package/src/plugins/staratlas/constants.d.ts +12 -0
  18. package/src/plugins/staratlas/constants.js +22 -0
  19. package/src/plugins/staratlas/constants.js.map +1 -0
  20. package/src/plugins/staratlas/helpers.d.ts +4 -0
  21. package/src/plugins/staratlas/helpers.js +26 -0
  22. package/src/plugins/staratlas/helpers.js.map +1 -0
  23. package/src/plugins/staratlas/index.d.ts +6 -0
  24. package/src/plugins/staratlas/index.js +13 -0
  25. package/src/plugins/staratlas/index.js.map +1 -0
  26. package/src/plugins/{tokens/fetchers/aptos-nfts.d.ts → staratlas/lockersFetcher.d.ts} +1 -1
  27. package/src/plugins/staratlas/lockersFetcher.js +54 -0
  28. package/src/plugins/staratlas/lockersFetcher.js.map +1 -0
  29. package/src/plugins/staratlas/stakingFetcher.d.ts +3 -0
  30. package/src/plugins/staratlas/stakingFetcher.js +64 -0
  31. package/src/plugins/staratlas/stakingFetcher.js.map +1 -0
  32. package/src/plugins/staratlas/structs.d.ts +33 -0
  33. package/src/plugins/staratlas/structs.js +34 -0
  34. package/src/plugins/staratlas/structs.js.map +1 -0
  35. package/src/plugins/sushiswap/helpers.js +24 -24
  36. package/src/plugins/thala/constants.d.ts +3 -10
  37. package/src/plugins/thala/constants.js +4 -4
  38. package/src/plugins/thala/constants.js.map +1 -1
  39. package/src/plugins/thala/stabilityPoolFetcher.js +4 -1
  40. package/src/plugins/thala/stabilityPoolFetcher.js.map +1 -1
  41. package/src/plugins/uniswap-v2/helpers.js +22 -22
  42. package/src/utils/aptos/getAccountCoinsData.d.ts +26 -0
  43. package/src/utils/aptos/getAccountCoinsData.js +10 -0
  44. package/src/utils/aptos/getAccountCoinsData.js.map +1 -0
  45. package/src/utils/aptos/getAccountResource.d.ts +2 -3
  46. package/src/utils/aptos/getAccountResource.js +4 -1
  47. package/src/utils/aptos/getAccountResource.js.map +1 -1
  48. package/src/utils/aptos/getAccountResources.d.ts +2 -5
  49. package/src/utils/aptos/getAccountResources.js +3 -1
  50. package/src/utils/aptos/getAccountResources.js.map +1 -1
  51. package/src/utils/aptos/getCoinInfoResource.d.ts +2 -2
  52. package/src/utils/aptos/getCoinStoreResource.d.ts +2 -2
  53. package/src/utils/aptos/getCoinStoreResources.d.ts +2 -5
  54. package/src/utils/aptos/getDecimals.d.ts +1 -1
  55. package/src/utils/aptos/getDecimals.js +1 -1
  56. package/src/utils/aptos/getDecimals.js.map +1 -1
  57. package/src/utils/aptos/getNestedType.d.ts +4 -0
  58. package/src/utils/aptos/getNestedType.js +4 -0
  59. package/src/utils/aptos/getNestedType.js.map +1 -1
  60. package/src/utils/aptos/getTableItem.d.ts +3 -3
  61. package/src/utils/aptos/getTableItem.js +1 -1
  62. package/src/utils/aptos/getTableItem.js.map +1 -1
  63. package/src/utils/aptos/getTableItemsByHandles.d.ts +3 -3
  64. package/src/utils/aptos/getTableItemsByHandles.js.map +1 -1
  65. package/src/utils/aptos/getTableItemsByKeys.d.ts +2 -2
  66. package/src/utils/aptos/getView.d.ts +3 -3
  67. package/src/utils/aptos/getView.js +1 -1
  68. package/src/utils/aptos/getView.js.map +1 -1
  69. package/src/utils/aptos/types.d.ts +0 -10
  70. package/src/utils/blank/isBlankAddressAptos.js +5 -1
  71. package/src/utils/blank/isBlankAddressAptos.js.map +1 -1
  72. package/src/utils/clients/constants.js +1 -1
  73. package/src/utils/clients/constants.js.map +1 -1
  74. package/src/utils/clients/getClientAptos.d.ts +1 -1
  75. package/src/utils/clients/getClientAptos.js +8 -3
  76. package/src/utils/clients/getClientAptos.js.map +1 -1
  77. package/src/utils/clients/types.d.ts +2 -0
  78. package/src/utils/misc/checkComputeAndStoreTokensPrices.d.ts +8 -0
  79. package/src/utils/misc/checkComputeAndStoreTokensPrices.js +8 -0
  80. package/src/utils/misc/checkComputeAndStoreTokensPrices.js.map +1 -1
  81. package/src/utils/misc/getDecimalsForToken.js +5 -3
  82. package/src/utils/misc/getDecimalsForToken.js.map +1 -1
  83. package/src/utils/sei/constants.js +8 -8
  84. package/src/utils/sei/getQueryBalanceByOwner.js +4 -4
  85. package/src/plugins/tokens/fetchers/aptos-nfts.js +0 -117
  86. package/src/plugins/tokens/fetchers/aptos-nfts.js.map +0 -1
@@ -0,0 +1,64 @@
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 tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
19
+ const solana_1 = require("../../utils/solana");
20
+ const structs_1 = require("./structs");
21
+ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
22
+ const connection = (0, clients_1.getClientSolana)();
23
+ const accounts = yield (0, solana_1.getParsedProgramAccounts)(connection, structs_1.stakingStruct, constants_1.stakingPid, [
24
+ { dataSize: structs_1.stakingStruct.byteSize },
25
+ {
26
+ memcmp: { bytes: owner, offset: 8 },
27
+ },
28
+ ]);
29
+ if (accounts.length === 0)
30
+ return [];
31
+ const atlasTokenPrice = yield cache.getTokenPrice(constants_1.atlasMint, portfolio_core_1.NetworkId.solana);
32
+ const assets = [];
33
+ accounts.forEach((account) => {
34
+ if (!account.totalStake.isZero()) {
35
+ assets.push((0, tokenPriceToAssetToken_1.default)(constants_1.atlasMint, account.totalStake.div(Math.pow(10, constants_1.atlasDecimals)).toNumber(), portfolio_core_1.NetworkId.solana, atlasTokenPrice, atlasTokenPrice === null || atlasTokenPrice === void 0 ? void 0 : atlasTokenPrice.price, {}));
36
+ }
37
+ if (!account.pendingRewards.isZero()) {
38
+ assets.push((0, tokenPriceToAssetToken_1.default)(constants_1.atlasMint, account.totalStake.div(Math.pow(10, constants_1.atlasDecimals)).toNumber(), portfolio_core_1.NetworkId.solana, atlasTokenPrice, atlasTokenPrice === null || atlasTokenPrice === void 0 ? void 0 : atlasTokenPrice.price, {
39
+ isClaimable: true,
40
+ }));
41
+ }
42
+ });
43
+ if (assets.length === 0)
44
+ return [];
45
+ return [
46
+ {
47
+ type: portfolio_core_1.PortfolioElementType.multiple,
48
+ networkId: portfolio_core_1.NetworkId.solana,
49
+ label: 'Staked',
50
+ platformId: constants_1.platformId,
51
+ data: {
52
+ assets,
53
+ },
54
+ value: (0, portfolio_core_1.getUsdValueSum)(assets.map((a) => a.value)),
55
+ },
56
+ ];
57
+ });
58
+ const fetcher = {
59
+ id: `${constants_1.platformId}-staking`,
60
+ networkId: portfolio_core_1.NetworkId.solana,
61
+ executor,
62
+ };
63
+ exports.default = fetcher;
64
+ //# sourceMappingURL=stakingFetcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/staratlas/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAEpC,2CAA+E;AAE/E,iDAAsD;AACtD,qGAA6E;AAC7E,+CAA8D;AAC9D,uCAA0C;AAE1C,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,yBAAe,GAAE,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,IAAA,iCAAwB,EAC7C,UAAU,EACV,uBAAa,EACb,sBAAU,EACV;QACE,EAAE,QAAQ,EAAE,uBAAa,CAAC,QAAQ,EAAE;QACpC;YACE,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE;SACpC;KACF,CACF,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErC,MAAM,eAAe,GAAG,MAAM,KAAK,CAAC,aAAa,CAC/C,qBAAS,EACT,0BAAS,CAAC,MAAM,CACjB,CAAC;IACF,MAAM,MAAM,GAA0B,EAAE,CAAC;IACzC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,CAAC;YACjC,MAAM,CAAC,IAAI,CACT,IAAA,gCAAsB,EACpB,qBAAS,EACT,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,SAAA,EAAE,EAAI,yBAAa,CAAA,CAAC,CAAC,QAAQ,EAAE,EACtD,0BAAS,CAAC,MAAM,EAChB,eAAe,EACf,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,KAAK,EACtB,EAAE,CACH,CACF,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,CAAC;YACrC,MAAM,CAAC,IAAI,CACT,IAAA,gCAAsB,EACpB,qBAAS,EACT,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,SAAA,EAAE,EAAI,yBAAa,CAAA,CAAC,CAAC,QAAQ,EAAE,EACtD,0BAAS,CAAC,MAAM,EAChB,eAAe,EACf,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,KAAK,EACtB;gBACE,WAAW,EAAE,IAAI;aAClB,CACF,CACF,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACnC,OAAO;QACL;YACE,IAAI,EAAE,qCAAoB,CAAC,QAAQ;YACnC,SAAS,EAAE,0BAAS,CAAC,MAAM;YAC3B,KAAK,EAAE,QAAQ;YACf,UAAU,EAAV,sBAAU;YACV,IAAI,EAAE;gBACJ,MAAM;aACP;YACD,KAAK,EAAE,IAAA,+BAAc,EAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SAClD;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"}
@@ -0,0 +1,33 @@
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 Escrow = {
6
+ buffer: Buffer;
7
+ locker: PublicKey;
8
+ owner: PublicKey;
9
+ bump: number;
10
+ tokens: PublicKey;
11
+ amount: BigNumber;
12
+ escrowStartedAt: BigNumber;
13
+ escrowEndsAt: BigNumber;
14
+ voteDelegate: PublicKey;
15
+ };
16
+ export declare const escrowStruct: BeetStruct<Escrow, Partial<Escrow>>;
17
+ export type Staking = {
18
+ buffer: Buffer;
19
+ owner: PublicKey;
20
+ registeredStake: PublicKey;
21
+ stakeMint: PublicKey;
22
+ totalStake: BigNumber;
23
+ activeStake: BigNumber;
24
+ pendingRewards: BigNumber;
25
+ paidRewards: BigNumber;
26
+ currentPeriod: number;
27
+ stakedAtTs: BigNumber;
28
+ lastPendingRewardCalcTs: BigNumber;
29
+ lastHarvestTs: BigNumber;
30
+ unstakedTs: BigNumber;
31
+ bump: number;
32
+ };
33
+ export declare const stakingStruct: BeetStruct<Staking, Partial<Staking>>;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stakingStruct = exports.escrowStruct = 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.escrowStruct = new beet_1.BeetStruct([
8
+ ['buffer', (0, solana_1.blob)(8)],
9
+ ['locker', beet_solana_1.publicKey],
10
+ ['owner', beet_solana_1.publicKey],
11
+ ['bump', beet_1.u8],
12
+ ['tokens', beet_solana_1.publicKey],
13
+ ['amount', solana_1.u64],
14
+ ['escrowStartedAt', solana_1.i64],
15
+ ['escrowEndsAt', solana_1.i64],
16
+ ['voteDelegate', beet_solana_1.publicKey],
17
+ ], (args) => args);
18
+ exports.stakingStruct = new beet_1.BeetStruct([
19
+ ['buffer', (0, solana_1.blob)(8)],
20
+ ['owner', beet_solana_1.publicKey],
21
+ ['registeredStake', beet_solana_1.publicKey],
22
+ ['stakeMint', beet_solana_1.publicKey],
23
+ ['totalStake', solana_1.u64],
24
+ ['activeStake', solana_1.u64],
25
+ ['pendingRewards', solana_1.u64],
26
+ ['paidRewards', solana_1.u64],
27
+ ['currentPeriod', beet_1.u16],
28
+ ['stakedAtTs', solana_1.i64],
29
+ ['lastPendingRewardCalcTs', solana_1.i64],
30
+ ['lastHarvestTs', solana_1.i64],
31
+ ['unstakedTs', solana_1.i64],
32
+ ['bump', beet_1.u8],
33
+ ], (args) => args);
34
+ //# sourceMappingURL=structs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/staratlas/structs.ts"],"names":[],"mappings":";;;AAAA,oDAAgE;AAChE,kEAA6D;AAG7D,+CAAoD;AAcvC,QAAA,YAAY,GAAG,IAAI,iBAAU,CACxC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,QAAQ,EAAE,uBAAS,CAAC;IACrB,CAAC,QAAQ,EAAE,YAAG,CAAC;IACf,CAAC,iBAAiB,EAAE,YAAG,CAAC;IACxB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,cAAc,EAAE,uBAAS,CAAC;CAC5B,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAc,CACzB,CAAC;AAmBW,QAAA,aAAa,GAAG,IAAI,iBAAU,CACzC;IACE,CAAC,QAAQ,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACnB,CAAC,OAAO,EAAE,uBAAS,CAAC;IACpB,CAAC,iBAAiB,EAAE,uBAAS,CAAC;IAC9B,CAAC,WAAW,EAAE,uBAAS,CAAC;IACxB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,gBAAgB,EAAE,YAAG,CAAC;IACvB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,eAAe,EAAE,UAAG,CAAC;IACtB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,yBAAyB,EAAE,YAAG,CAAC;IAChC,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,MAAM,EAAE,SAAE,CAAC;CACb,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAe,CAC1B,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;
@@ -1,4 +1,5 @@
1
1
  import { Platform } from '@sonarwatch/portfolio-core';
2
+ import { InputViewRequestData } from '@aptos-labs/ts-sdk';
2
3
  export declare const platformId = "thala";
3
4
  export declare const thalaPlatform: Platform;
4
5
  export declare const programAdressThala = "0x6f986d146e4a90b828d8c12c14b6f4e003fdff11a8eecceceb63744363eaac01";
@@ -14,13 +15,5 @@ export declare const lpStableTypePrefix = "0x48271d39d0b05bd6efca2278f22277d6fcc
14
15
  export declare const lpWeightedTypePrefix = "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::WeightedPool";
15
16
  export declare const lpStableCoinInfoTypePrefix = "0x1::coin::CoinInfo<0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::stable_pool::StablePoolToken";
16
17
  export declare const lpWeightedCoinInfoTypePrefix = "0x1::coin::CoinInfo<0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::WeightedPoolToken";
17
- export declare const stabilityDepositPayload: (owner: string) => {
18
- function: string;
19
- type_arguments: string[];
20
- arguments: string[];
21
- };
22
- export declare const stabilityClaimablePayload: (owner: string) => {
23
- function: string;
24
- type_arguments: never[];
25
- arguments: string[];
26
- };
18
+ export declare const stabilityDepositPayload: (owner: string) => InputViewRequestData;
19
+ export declare const stabilityClaimablePayload: (owner: string) => InputViewRequestData;
@@ -30,14 +30,14 @@ exports.lpStableCoinInfoTypePrefix = `${aptos_1.coinInfo}<${exports.lpStableType
30
30
  exports.lpWeightedCoinInfoTypePrefix = `${aptos_1.coinInfo}<${exports.lpWeightedTypeTokenPrefix}`;
31
31
  const stabilityDepositPayload = (owner) => ({
32
32
  function: liquidityDeposit,
33
- type_arguments: [cryptoType],
34
- arguments: [owner],
33
+ typeArguments: [cryptoType],
34
+ functionArguments: [owner],
35
35
  });
36
36
  exports.stabilityDepositPayload = stabilityDepositPayload;
37
37
  const stabilityClaimablePayload = (owner) => ({
38
38
  function: liquidityClaimable,
39
- type_arguments: [],
40
- arguments: [owner],
39
+ typeArguments: [],
40
+ functionArguments: [owner],
41
41
  });
42
42
  exports.stabilityClaimablePayload = stabilityClaimablePayload;
43
43
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/constants.ts"],"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AiB,CAAC;AAEjD,QAAA,iBAAiB,GAAG,0CAA0C,CAAC;AAE/D,QAAA,gBAAgB,GAC3B,oEAAoE,CAAC;AAC1D,QAAA,uBAAuB,GAAG,GAAG,wBAAgB,gCAAgC,CAAC;AAC9E,QAAA,yBAAyB,GAAG,GAAG,wBAAgB,oCAAoC,CAAC;AACpF,QAAA,kBAAkB,GAAG,GAAG,wBAAgB,2BAA2B,CAAC;AACpE,QAAA,oBAAoB,GAAG,GAAG,wBAAgB,+BAA+B,CAAC;AAC1E,QAAA,0BAA0B,GAAG,GAAG,gBAAQ,IAAI,+BAAuB,EAAE,CAAC;AACtE,QAAA,4BAA4B,GAAG,GAAG,gBAAQ,IAAI,iCAAyB,EAAE,CAAC;AAEhF,MAAM,uBAAuB,GAAG,CACrC,KAAa,EACS,EAAE,CAAC,CAAC;IAC1B,QAAQ,EAAE,gBAAgB;IAC1B,aAAa,EAAE,CAAC,UAAU,CAAC;IAC3B,iBAAiB,EAAE,CAAC,KAAK,CAAC;CAC3B,CAAC,CAAC;AANU,QAAA,uBAAuB,2BAMjC;AAEI,MAAM,yBAAyB,GAAG,CACvC,KAAa,EACS,EAAE,CAAC,CAAC;IAC1B,QAAQ,EAAE,kBAAkB;IAC5B,aAAa,EAAE,EAAE;IACjB,iBAAiB,EAAE,CAAC,KAAK,CAAC;CAC3B,CAAC,CAAC;AANU,QAAA,yBAAyB,6BAMnC"}
@@ -13,6 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const portfolio_core_1 = require("@sonarwatch/portfolio-core");
16
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
16
17
  const constants_1 = require("./constants");
17
18
  const aptos_1 = require("../../utils/aptos");
18
19
  const clients_1 = require("../../utils/clients");
@@ -25,7 +26,9 @@ const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* (
25
26
  const depositAmountString = stabilityPoolDepositView.at(0);
26
27
  if (!depositAmountString)
27
28
  return [];
28
- const depositAmount = +depositAmountString / Math.pow(10, portfolio_core_1.aptosNetwork.native.decimals);
29
+ const depositAmount = new bignumber_js_1.default(depositAmountString.toString())
30
+ .div(Math.pow(10, portfolio_core_1.aptosNetwork.native.decimals))
31
+ .toNumber();
29
32
  if (depositAmount === 0)
30
33
  return [];
31
34
  const depositTokenPrice = yield cache.getTokenPrice(constants_1.modCoin.toString(), portfolio_core_1.NetworkId.aptos);
@@ -1 +1 @@
1
- {"version":3,"file":"stabilityPoolFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/stabilityPoolFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AAGpC,2CAMqB;AACrB,6CAA4C;AAC5C,iDAAqD;AACrD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,wBAAc,GAAE,CAAC;IACpC,MAAM,wBAAwB,GAAG,MAAM,IAAA,eAAO,EAC5C,UAAU,EACV,IAAA,mCAAuB,EAAC,KAAK,CAAC,CAC/B,CAAC;IACF,IAAI,CAAC,wBAAwB,IAAI,wBAAwB,CAAC,MAAM,KAAK,CAAC;QACpE,OAAO,EAAE,CAAC;IAEZ,MAAM,mBAAmB,GAAG,wBAAwB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAC3D,IAAI,CAAC,mBAAmB;QAAE,OAAO,EAAE,CAAC;IAEpC,MAAM,aAAa,GACjB,CAAC,mBAAmB,GAAG,SAAA,EAAE,EAAI,6BAAY,CAAC,MAAM,CAAC,QAAQ,CAAA,CAAC;IAC5D,IAAI,aAAa,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAEnC,MAAM,iBAAiB,GAAG,MAAM,KAAK,CAAC,aAAa,CACjD,mBAAO,CAAC,QAAQ,EAAE,EAClB,0BAAS,CAAC,KAAK,CAChB,CAAC;IAEF,MAAM,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AC,OAAO,CAAS,KAAK,EAAE,EAAE,MAAM,EAAE,sBAAU,EAAE,CAAC,CAAC;IACvE,IAAI,GAAG,EAAE,CAAC;QACR,MAAM,CAAC,IAAI,CAAC;YACV,GAAG;YACH,GAAG,EAAE,IAAA,yBAAQ,EAAC,GAAG,CAAC;SACnB,CAAC,CAAC;IACL,CAAC;IAED,MAAM,SAAS,GAAuB;QACpC,KAAK;QACL,MAAM,EAAE,CAAC,MAAM,CAAC;QAChB,WAAW;QACX,YAAY,EAAE,CAAC,YAAY,CAAC;QAC5B,iBAAiB;QACjB,MAAM;KACP,CAAC;IACF,MAAM,WAAW,GAAyB,CAAC,SAAS,CAAC,CAAC;IAEtD,MAAM,eAAe,GAA8B;QACjD,SAAS,EAAE,0BAAS,CAAC,KAAK;QAC1B,UAAU,EAAE,OAAO;QACnB,IAAI,EAAE,qCAAoB,CAAC,SAAS;QACpC,KAAK,EAAE,QAAQ;QACf,KAAK;QACL,IAAI,EAAE;YACJ,WAAW;SACZ;KACF,CAAC;IACF,OAAO,CAAC,eAAe,CAAC,CAAC;AAC3B,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,iBAAiB;IAClC,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"stabilityPoolFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/thala/stabilityPoolFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAQoC;AACpC,gEAAqC;AAGrC,2CAMqB;AACrB,6CAA4C;AAC5C,iDAAqD;AACrD,qGAA6E;AAE7E,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,UAAU,GAAG,IAAA,wBAAc,GAAE,CAAC;IACpC,MAAM,wBAAwB,GAAG,MAAM,IAAA,eAAO,EAC5C,UAAU,E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AE;YACJ,WAAW;SACZ;KACF,CAAC;IACF,OAAO,CAAC,eAAe,CAAC,CAAC;AAC3B,CAAC,CAAA,CAAC;AAEF,MAAM,OAAO,GAAY;IACvB,EAAE,EAAE,GAAG,sBAAU,iBAAiB;IAClC,SAAS,EAAE,0BAAS,CAAC,KAAK;IAC1B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
@@ -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,26 @@
1
+ import { AptosClient } from '../clients/types';
2
+ export declare function getAccountCoinsData(client: AptosClient, coinType: string): Promise<{
3
+ amount: any;
4
+ asset_type: string;
5
+ is_frozen: boolean;
6
+ is_primary: boolean;
7
+ last_transaction_timestamp: any;
8
+ last_transaction_version: any;
9
+ owner_address: string;
10
+ storage_id: string;
11
+ token_standard: string;
12
+ metadata?: {
13
+ token_standard: string;
14
+ symbol: string;
15
+ supply_aggregator_table_key_v1?: string | null | undefined;
16
+ supply_aggregator_table_handle_v1?: string | null | undefined;
17
+ project_uri?: string | null | undefined;
18
+ name: string;
19
+ last_transaction_version: any;
20
+ last_transaction_timestamp: any;
21
+ icon_uri?: string | null | undefined;
22
+ decimals: number;
23
+ creator_address: string;
24
+ asset_type: string;
25
+ } | null | undefined;
26
+ }[]>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAccountCoinsData = void 0;
4
+ function getAccountCoinsData(client, coinType) {
5
+ return client.getAccountCoinsData({
6
+ accountAddress: coinType,
7
+ });
8
+ }
9
+ exports.getAccountCoinsData = getAccountCoinsData;
10
+ //# sourceMappingURL=getAccountCoinsData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccountCoinsData.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getAccountCoinsData.ts"],"names":[],"mappings":";;;AAEA,SAAgB,mBAAmB,CAAC,MAAmB,EAAE,QAAgB;IACvE,OAAO,MAAM,CAAC,mBAAmB,CAAC;QAChC,cAAc,EAAE,QAAQ;KACzB,CAAC,CAAC;AACL,CAAC;AAJD,kDAIC"}
@@ -1,3 +1,2 @@
1
- import { AptosClient } from 'aptos';
2
- import { MoveResource } from './MoveResource';
3
- export declare function getAccountResource<T>(client: AptosClient, accountAddress: string, resourceType: string): Promise<MoveResource<T> | null>;
1
+ import { AptosClient } from '../clients/types';
2
+ export declare function getAccountResource<T extends object>(client: AptosClient, accountAddress: string, resourceType: `${string}::${string}::${string}`): Promise<T | null>;
@@ -13,7 +13,10 @@ exports.getAccountResource = void 0;
13
13
  function getAccountResource(client, accountAddress, resourceType) {
14
14
  return __awaiter(this, void 0, void 0, function* () {
15
15
  const resource = yield client
16
- .getAccountResource(accountAddress, resourceType)
16
+ .getAccountResource({
17
+ accountAddress,
18
+ resourceType,
19
+ })
17
20
  .catch((e) => {
18
21
  if (!e.status || e.status !== 404)
19
22
  throw e;
@@ -1 +1 @@
1
- {"version":3,"file":"getAccountResource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getAccountResource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,SAAsB,kBAAkB,CACtC,MAAmB,EACnB,cAAsB,EACtB,YAAoB;;QAEpB,MAAM,QAAQ,GAAG,MAAM,MAAM;aAC1B,kBAAkB,CAAC,cAAc,EAAE,YAAY,CAAC;aAChD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACX,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,KAAK,GAAG;gBAAE,MAAM,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QACL,IAAI,CAAC,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC3B,OAAO,QAA2B,CAAC;IACrC,CAAC;CAAA;AAZD,gDAYC"}
1
+ {"version":3,"file":"getAccountResource.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getAccountResource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,SAAsB,kBAAkB,CACtC,MAAmB,EACnB,cAAsB,EACtB,YAA+C;;QAE/C,MAAM,QAAQ,GAAG,MAAM,MAAM;aAC1B,kBAAkB,CAAI;YACrB,cAAc;YACd,YAAY;SACb,CAAC;aACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACX,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,KAAK,GAAG;gBAAE,MAAM,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QACL,IAAI,CAAC,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC3B,OAAO,QAAQ,CAAC;IAClB,CAAC;CAAA;AAfD,gDAeC"}
@@ -1,5 +1,2 @@
1
- import { AptosClient } from 'aptos';
2
- export declare function getAccountResources(client: AptosClient, accountAddress: string): Promise<{
3
- type: string;
4
- data: {};
5
- }[] | null>;
1
+ import { AptosClient } from '../clients/types';
2
+ export declare function getAccountResources(client: AptosClient, accountAddress: string): Promise<import("@aptos-labs/ts-sdk").MoveResource[] | null>;
@@ -13,7 +13,9 @@ exports.getAccountResources = void 0;
13
13
  function getAccountResources(client, accountAddress) {
14
14
  return __awaiter(this, void 0, void 0, function* () {
15
15
  const resources = yield client
16
- .getAccountResources(accountAddress)
16
+ .getAccountResources({
17
+ accountAddress,
18
+ })
17
19
  .catch((e) => {
18
20
  if (!e.status || e.status !== 404)
19
21
  throw e;
@@ -1 +1 @@
1
- {"version":3,"file":"getAccountResources.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getAccountResources.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,SAAsB,mBAAmB,CACvC,MAAmB,EACnB,cAAsB;;QAEtB,MAAM,SAAS,GAAG,MAAM,MAAM;aAC3B,mBAAmB,CAAC,cAAc,CAAC;aACnC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACX,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,KAAK,GAAG;gBAAE,MAAM,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QACL,OAAO,SAAS,IAAI,IAAI,CAAC;IAC3B,CAAC;CAAA;AAVD,kDAUC"}
1
+ {"version":3,"file":"getAccountResources.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getAccountResources.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,SAAsB,mBAAmB,CACvC,MAAmB,EACnB,cAAsB;;QAEtB,MAAM,SAAS,GAAG,MAAM,MAAM;aAC3B,mBAAmB,CAAC;YACnB,cAAc;SACf,CAAC;aACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACX,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,KAAK,GAAG;gBAAE,MAAM,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QACL,OAAO,SAAS,IAAI,IAAI,CAAC;IAC3B,CAAC;CAAA;AAZD,kDAYC"}
@@ -1,3 +1,3 @@
1
- import { AptosClient } from 'aptos';
1
+ import { AptosClient } from '../clients/types';
2
2
  import { CoinInfoData } from './resources/coinInfo';
3
- export declare function getCoinInfoResource(client: AptosClient, coinType: string): Promise<import("./MoveResource").MoveResource<CoinInfoData> | null>;
3
+ export declare function getCoinInfoResource(client: AptosClient, coinType: string): Promise<CoinInfoData | null>;
@@ -1,3 +1,3 @@
1
- import { AptosClient } from 'aptos';
1
+ import { AptosClient } from '../clients/types';
2
2
  import { CoinStoreData } from './resources/coinStore';
3
- export declare function getCoinStoreResource(client: AptosClient, owner: string, coinType: string): Promise<import("./MoveResource").MoveResource<CoinStoreData> | null>;
3
+ export declare function getCoinStoreResource(client: AptosClient, owner: string, coinType: string): Promise<CoinStoreData | null>;
@@ -1,5 +1,2 @@
1
- import { AptosClient } from 'aptos';
2
- export declare function getCoinStoreResources(client: AptosClient, owner: string): Promise<{
3
- type: string;
4
- data: {};
5
- }[] | null>;
1
+ import { AptosClient } from '../clients/types';
2
+ export declare function getCoinStoreResources(client: AptosClient, owner: string): Promise<import("@aptos-labs/ts-sdk").MoveResource[] | null>;
@@ -1,2 +1,2 @@
1
- import { AptosClient } from 'aptos';
1
+ import { AptosClient } from '../clients/types';
2
2
  export declare function getDecimals(client: AptosClient, coinType: string): Promise<number | null>;
@@ -16,7 +16,7 @@ function getDecimals(client, coinType) {
16
16
  const coinInfoResource = yield (0, getCoinInfoResource_1.getCoinInfoResource)(client, coinType);
17
17
  if (!coinInfoResource)
18
18
  return null;
19
- return coinInfoResource.data.decimals;
19
+ return coinInfoResource.decimals;
20
20
  });
21
21
  }
22
22
  exports.getDecimals = getDecimals;
@@ -1 +1 @@
1
- {"version":3,"file":"getDecimals.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getDecimals.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,+DAA4D;AAE5D,SAAsB,WAAW,CAAC,MAAmB,EAAE,QAAgB;;QACrE,MAAM,gBAAgB,GAAG,MAAM,IAAA,yCAAmB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACrE,IAAI,CAAC,gBAAgB;YAAE,OAAO,IAAI,CAAC;QACnC,OAAO,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC;IACxC,CAAC;CAAA;AAJD,kCAIC"}
1
+ {"version":3,"file":"getDecimals.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getDecimals.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,+DAA4D;AAE5D,SAAsB,WAAW,CAAC,MAAmB,EAAE,QAAgB;;QACrE,MAAM,gBAAgB,GAAG,MAAM,IAAA,yCAAmB,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACrE,IAAI,CAAC,gBAAgB;YAAE,OAAO,IAAI,CAAC;QACnC,OAAO,gBAAgB,CAAC,QAAQ,CAAC;IACnC,CAAC;CAAA;AAJD,kCAIC"}
@@ -1 +1,5 @@
1
+ /**
2
+ * @deprecated
3
+ * This function has been deprecated. Use the parseTypeString instead.
4
+ */
1
5
  export declare function getNestedType(type: string): string;
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getNestedType = void 0;
4
+ /**
5
+ * @deprecated
6
+ * This function has been deprecated. Use the parseTypeString instead.
7
+ */
4
8
  function getNestedType(type) {
5
9
  const index = type.indexOf('<');
6
10
  return type.slice(index + 1, -1);
@@ -1 +1 @@
1
- {"version":3,"file":"getNestedType.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getNestedType.ts"],"names":[],"mappings":";;;AAAA,SAAgB,aAAa,CAAC,IAAY;IACxC,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAChC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACnC,CAAC;AAHD,sCAGC"}
1
+ {"version":3,"file":"getNestedType.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getNestedType.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,SAAgB,aAAa,CAAC,IAAY;IACxC,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAChC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACnC,CAAC;AAHD,sCAGC"}
@@ -1,3 +1,3 @@
1
- import { AptosClient } from 'aptos';
2
- import { TableItemRequest } from './types';
3
- export declare function getTableItem<T>(client: AptosClient, handle: string, data: TableItemRequest): Promise<NonNullable<T> | null>;
1
+ import { TableItemRequest } from '@aptos-labs/ts-sdk';
2
+ import { AptosClient } from '../clients/types';
3
+ export declare function getTableItem<T>(client: AptosClient, handle: string, data: TableItemRequest): Promise<NonNullable<Awaited<T>> | null>;
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getTableItem = void 0;
13
13
  function getTableItem(client, handle, data) {
14
14
  return __awaiter(this, void 0, void 0, function* () {
15
- const item = yield client.getTableItem(handle, data).catch((e) => {
15
+ const item = yield client.getTableItem({ handle, data }).catch((e) => {
16
16
  if (!e.status || e.status !== 404)
17
17
  throw e;
18
18
  });
@@ -1 +1 @@
1
- {"version":3,"file":"getTableItem.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getTableItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,SAAsB,YAAY,CAChC,MAAmB,EACnB,MAAc,EACd,IAAsB;;QAEtB,MAAM,IAAI,GAAa,MAAM,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACzE,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,KAAK,GAAG;gBAAE,MAAM,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,IAAI,IAAI,CAAC;IACtB,CAAC;CAAA;AATD,oCASC"}
1
+ {"version":3,"file":"getTableItem.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getTableItem.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,SAAsB,YAAY,CAChC,MAAmB,EACnB,MAAc,EACd,IAAsB;;QAEtB,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,YAAY,CAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACtE,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,KAAK,GAAG;gBAAE,MAAM,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,IAAI,IAAI,CAAC;IACtB,CAAC;CAAA;AATD,oCASC"}
@@ -1,3 +1,3 @@
1
- import { AptosClient } from 'aptos';
2
- import { TableItemRequest } from './types';
3
- export declare function getTableItemsByHandles<T>(client: AptosClient, handles: string[], data: TableItemRequest): Promise<(Awaited<NonNullable<T>> | null)[]>;
1
+ import { TableItemRequest } from '@aptos-labs/ts-sdk';
2
+ import { AptosClient } from '../clients/types';
3
+ export declare function getTableItemsByHandles<T>(client: AptosClient, handles: string[], data: TableItemRequest): Promise<(Awaited<NonNullable<Awaited<T>>> | null)[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"getTableItemsByHandles.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getTableItemsByHandles.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iDAA8C;AAG9C,MAAM,GAAG,GAAG,EAAE,CAAC;AAEf,SAAsB,sBAAsB,CAC1C,MAAmB,EACnB,OAAiB,EACjB,IAAsB;;QAEtB,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,MAAM,cAAc,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;QACpC,OAAO,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACnC,MAAM,kBAAkB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;YACzD,MAAM,SAAS,GAAG,MAAM,uBAAuB,CAC7C,MAAM,EACN,kBAAkB,EAClB,IAAI,CACL,CAAC;YACF,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;QAC3B,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CAAA;AAjBD,wDAiBC;AAED,SAAe,uBAAuB,CACpC,MAAmB,EACnB,OAAiB,EACjB,IAAsB;;QAEtB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CACtC,IAAA,2BAAY,EAAI,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,CACtC,CAAC;QACF,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QACnD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;YAC5B,IAAI,MAAM,CAAC,MAAM,KAAK,UAAU;gBAAE,OAAO,IAAI,CAAC;YAC9C,OAAO,MAAM,CAAC,KAAK,CAAC;QACtB,CAAC,CAAC,CAAC;IACL,CAAC;CAAA"}
1
+ {"version":3,"file":"getTableItemsByHandles.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getTableItemsByHandles.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,iDAA8C;AAE9C,MAAM,GAAG,GAAG,EAAE,CAAC;AAEf,SAAsB,sBAAsB,CAC1C,MAAmB,EACnB,OAAiB,EACjB,IAAsB;;QAEtB,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,MAAM,cAAc,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;QACpC,OAAO,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACnC,MAAM,kBAAkB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;YACzD,MAAM,SAAS,GAAG,MAAM,uBAAuB,CAC7C,MAAM,EACN,kBAAkB,EAClB,IAAI,CACL,CAAC;YACF,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;QAC3B,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CAAA;AAjBD,wDAiBC;AAED,SAAe,uBAAuB,CACpC,MAAmB,EACnB,OAAiB,EACjB,IAAsB;;QAEtB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CACtC,IAAA,2BAAY,EAAI,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,CACtC,CAAC;QACF,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QACnD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;YAC5B,IAAI,MAAM,CAAC,MAAM,KAAK,UAAU;gBAAE,OAAO,IAAI,CAAC;YAC9C,OAAO,MAAM,CAAC,KAAK,CAAC;QACtB,CAAC,CAAC,CAAC;IACL,CAAC;CAAA"}
@@ -1,2 +1,2 @@
1
- import { AptosClient } from 'aptos';
2
- export declare function getTableItemsByKeys<T>(client: AptosClient, handle: string, keys: string[], keyType: string, valueType: string): Promise<(Awaited<NonNullable<T>> | null)[]>;
1
+ import { AptosClient } from '../clients/types';
2
+ export declare function getTableItemsByKeys<T>(client: AptosClient, handle: string, keys: string[], keyType: string, valueType: string): Promise<(Awaited<NonNullable<Awaited<T>>> | null)[]>;
@@ -1,3 +1,3 @@
1
- import { AptosClient } from 'aptos';
2
- import { ViewRequest } from './types';
3
- export declare function getView(client: AptosClient, payload: ViewRequest): Promise<(string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | any)[])[])[])[])[])[])[])[])[])[])[])[] | null>;
1
+ import { InputViewRequestData } from '@aptos-labs/ts-sdk';
2
+ import { AptosClient } from '../clients/types';
3
+ export declare function getView(client: AptosClient, payload: InputViewRequestData): Promise<import("@aptos-labs/ts-sdk").MoveValue[] | null>;
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getView = void 0;
13
13
  function getView(client, payload) {
14
14
  return __awaiter(this, void 0, void 0, function* () {
15
- const resource = yield client.view(payload).catch((e) => {
15
+ const resource = yield client.view({ payload }).catch((e) => {
16
16
  if (!e.status || e.status !== 404)
17
17
  throw e;
18
18
  });
@@ -1 +1 @@
1
- {"version":3,"file":"getView.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getView.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,SAAsB,OAAO,CAAC,MAAmB,EAAE,OAAoB;;QACrE,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YACtD,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,KAAK,GAAG;gBAAE,MAAM,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC3B,OAAO,QAAQ,CAAC;IAClB,CAAC;CAAA;AAND,0BAMC"}
1
+ {"version":3,"file":"getView.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/aptos/getView.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,SAAsB,OAAO,CAC3B,MAAmB,EACnB,OAA6B;;QAE7B,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;YAC1D,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,MAAM,KAAK,GAAG;gBAAE,MAAM,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC3B,OAAO,QAAQ,CAAC;IAClB,CAAC;CAAA;AATD,0BASC"}
@@ -1,13 +1,3 @@
1
- export type TableItemRequest = {
2
- key_type: string;
3
- value_type: string;
4
- key: string;
5
- };
6
- export type ViewRequest = {
7
- function: string;
8
- type_arguments: string[];
9
- arguments: string[];
10
- };
11
1
  export type MoveType = {
12
2
  type: string;
13
3
  root: string;
@@ -14,7 +14,11 @@ const clients_1 = require("../clients");
14
14
  function isBlankAddressAptos(address) {
15
15
  return __awaiter(this, void 0, void 0, function* () {
16
16
  const client = (0, clients_1.getClientAptos)();
17
- const ressources = yield client.getAccountResources(address).catch(() => []);
17
+ const ressources = yield client
18
+ .getAccountResources({
19
+ accountAddress: address,
20
+ })
21
+ .catch(() => []);
18
22
  return ressources.length === 0;
19
23
  });
20
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"isBlankAddressAptos.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/blank/isBlankAddressAptos.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAA4C;AAE5C,SAAsB,mBAAmB,CAAC,OAAe;;QACvD,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;QAChC,MAAM,UAAU,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;QAC7E,OAAO,UAAU,CAAC,MAAM,KAAK,CAAC,CAAC;IACjC,CAAC;CAAA;AAJD,kDAIC"}
1
+ {"version":3,"file":"isBlankAddressAptos.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/utils/blank/isBlankAddressAptos.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAA4C;AAE5C,SAAsB,mBAAmB,CAAC,OAAe;;QACvD,MAAM,MAAM,GAAG,IAAA,wBAAc,GAAE,CAAC;QAChC,MAAM,UAAU,GAAG,MAAM,MAAM;aAC5B,mBAAmB,CAAC;YACnB,cAAc,EAAE,OAAO;SACxB,CAAC;aACD,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;QACnB,OAAO,UAAU,CAAC,MAAM,KAAK,CAAC,CAAC;IACjC,CAAC;CAAA;AARD,kDAQC"}