@augustdigital/sdk 9.3.0 → 9.4.0

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.
Files changed (56) hide show
  1. package/lib/adapters/evm/getters.js +40 -0
  2. package/lib/adapters/evm/index.d.ts +106 -2
  3. package/lib/adapters/evm/index.js +125 -0
  4. package/lib/adapters/solana/index.d.ts +12 -5
  5. package/lib/adapters/solana/index.js +12 -4
  6. package/lib/adapters/solana/pricing.d.ts +173 -0
  7. package/lib/adapters/solana/pricing.js +223 -0
  8. package/lib/adapters/solana/types.d.ts +45 -0
  9. package/lib/adapters/solana/vault.actions.d.ts +33 -8
  10. package/lib/adapters/solana/vault.actions.js +185 -28
  11. package/lib/adapters/stellar/actions.d.ts +2 -2
  12. package/lib/adapters/stellar/actions.js +2 -2
  13. package/lib/adapters/stellar/getters.d.ts +1 -1
  14. package/lib/adapters/stellar/getters.js +2 -2
  15. package/lib/adapters/stellar/index.d.ts +1 -1
  16. package/lib/adapters/stellar/index.js +1 -1
  17. package/lib/adapters/stellar/types.d.ts +1 -2
  18. package/lib/core/analytics/method-taxonomy.js +7 -0
  19. package/lib/core/analytics/version.d.ts +1 -1
  20. package/lib/core/analytics/version.js +1 -1
  21. package/lib/core/base.class.d.ts +2 -2
  22. package/lib/core/base.class.js +2 -2
  23. package/lib/core/constants/core.d.ts +17 -3
  24. package/lib/core/constants/core.js +17 -3
  25. package/lib/core/constants/vaults.js +4 -0
  26. package/lib/core/fetcher.js +112 -45
  27. package/lib/core/helpers/concurrency.d.ts +37 -0
  28. package/lib/core/helpers/concurrency.js +58 -0
  29. package/lib/core/helpers/core.d.ts +9 -0
  30. package/lib/core/helpers/core.js +47 -0
  31. package/lib/core/helpers/vaults.d.ts +1 -1
  32. package/lib/core/helpers/vaults.js +1 -1
  33. package/lib/core/helpers/web3.js +14 -1
  34. package/lib/core/logger/curator-alert.d.ts +2 -2
  35. package/lib/core/logger/curator-alert.js +2 -2
  36. package/lib/evm/methods/crossChainVaultRegistry.d.ts +2 -3
  37. package/lib/evm/methods/crossChainVaultRegistry.js +2 -3
  38. package/lib/evm/types/crossChain.d.ts +1 -1
  39. package/lib/main.d.ts +7 -5
  40. package/lib/main.js +7 -5
  41. package/lib/modules/vaults/getters.d.ts +10 -3
  42. package/lib/modules/vaults/getters.js +205 -71
  43. package/lib/modules/vaults/main.d.ts +4 -4
  44. package/lib/modules/vaults/main.js +7 -4
  45. package/lib/modules/vaults/read.actions.d.ts +181 -0
  46. package/lib/modules/vaults/read.actions.js +331 -36
  47. package/lib/modules/vaults/types.d.ts +13 -0
  48. package/lib/modules/vaults/utils.js +5 -1
  49. package/lib/modules/vaults/write.actions.d.ts +74 -6
  50. package/lib/modules/vaults/write.actions.js +133 -23
  51. package/lib/sdk.d.ts +9827 -9342
  52. package/lib/services/subgraph/schema.d.ts +1 -1
  53. package/lib/services/subgraph/schema.js +1 -1
  54. package/lib/types/pools.d.ts +1 -1
  55. package/lib/types/vaults.d.ts +4 -4
  56. package/package.json +1 -1
@@ -28,7 +28,7 @@ export declare function isSubgraphSchemaFieldError(errors: {
28
28
  * `august-citrea-earn-ctusd`). A wrong guess made every subgraph read query
29
29
  * non-existent field names, so the subgraph returned GraphQL errors with no
30
30
  * `data` and the SDK silently returned empty sets — emptying the Pending
31
- * Withdrawals and History tabs for that vault (AUGUST-6568).
31
+ * Withdrawals and History tabs for that vault.
32
32
  *
33
33
  * Because the schema is immutable for a fixed subgraph deployment, the result is
34
34
  * cached per URL ({@link SCHEMA_TTL_MS}); across a page's positions/history/
@@ -28,7 +28,7 @@ function isSubgraphSchemaFieldError(errors) {
28
28
  * `august-citrea-earn-ctusd`). A wrong guess made every subgraph read query
29
29
  * non-existent field names, so the subgraph returned GraphQL errors with no
30
30
  * `data` and the SDK silently returned empty sets — emptying the Pending
31
- * Withdrawals and History tabs for that vault (AUGUST-6568).
31
+ * Withdrawals and History tabs for that vault.
32
32
  *
33
33
  * Because the schema is immutable for a fixed subgraph deployment, the result is
34
34
  * cached per URL ({@link SCHEMA_TTL_MS}); across a page's positions/history/
@@ -111,7 +111,7 @@ export type IPoolWithPositions = IPoolWithUnderlying & {
111
111
  redeemable: INormalizedNumber;
112
112
  walletBalance: string;
113
113
  };
114
- export type IPoolFunctions = 'decimals' | 'symbol' | 'name' | 'asset' | 'totalSupply' | 'maxSupply' | 'totalAssets' | 'globalLoansAmount' | 'loansOperator' | 'getTotalLoansDeployed' | 'withdrawalFee' | 'lagDuration' | 'withdrawalsPaused' | 'assetsWhitelistAddress' | 'getWhitelistedAssets' | 'maxDepositAmount' | 'getTotalAssets' | 'lpTokenAddress' | 'depositCap';
114
+ export type IPoolFunctions = 'decimals' | 'symbol' | 'name' | 'asset' | 'totalSupply' | 'maxSupply' | 'totalAssets' | 'globalLoansAmount' | 'loansOperator' | 'getTotalLoansDeployed' | 'withdrawalFee' | 'lagDuration' | 'withdrawalsPaused' | 'depositsPaused' | 'assetsWhitelistAddress' | 'getWhitelistedAssets' | 'maxDepositAmount' | 'getTotalAssets' | 'lpTokenAddress' | 'depositCap';
115
115
  export type IPoolAction = 'deposit' | 'withdraw' | 'claim' | 'stake' | 'getReward' | 'unstake';
116
116
  export type IPoolModal = {
117
117
  isOpen: boolean;
@@ -176,7 +176,7 @@ export interface IVaultAllocations {
176
176
  *
177
177
  * This is stated explicitly because the convention going undocumented let a
178
178
  * consumer scale a subset of these fields twice, making them contribute 1/100th of
179
- * their value to a displayed total (AUGUST-6967). The unit is uniform here by
179
+ * their value to a displayed total. The unit is uniform here by
180
180
  * design; treating some of these fields as decimals and others as percentages is
181
181
  * always a bug on the consumer side.
182
182
  */
@@ -467,16 +467,16 @@ export interface IVaultPnl {
467
467
  * Supported Vaults: cUSDO, tETH, wstETH, rsETH
468
468
  *
469
469
  * @deprecated The `hgETH30dLiquidAPY` and `hgETH7dLiquidAPY` fields are deprecated.
470
- * These fields will be removed on 2026-01-01.
470
+ * These fields will be removed in the next major release.
471
471
  * Use `liquidAPY30Day` and `liquidAPY7Day` fields instead.
472
472
  */
473
473
  export interface IVaultAnnualizedApy {
474
474
  vaultAddress: IAddress;
475
475
  liquidityApy: number;
476
476
  annualizedApy: number;
477
- /** @deprecated Use `liquidAPY7Day` instead. Will be removed on 2026-01-01. */
477
+ /** @deprecated Use `liquidAPY7Day` instead. Will be removed in the next major release. */
478
478
  hgETH7dLiquidAPY?: number;
479
- /** @deprecated Use `liquidAPY30Day` instead. Will be removed on 2026-01-01. */
479
+ /** @deprecated Use `liquidAPY30Day` instead. Will be removed in the next major release. */
480
480
  hgETH30dLiquidAPY?: number;
481
481
  liquidAPY7Day?: number;
482
482
  liquidAPY30Day?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@augustdigital/sdk",
3
- "version": "9.3.0",
3
+ "version": "9.4.0",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/sdk.d.ts",
6
6
  "keywords": [