@interest-protocol/vortex-sdk 10.0.0 → 11.1.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.
package/dist/index.mjs CHANGED
@@ -3378,7 +3378,7 @@ const SECRET_PACKAGE_ID = '0x2d57ed0dd0d5f44d91f865fee3bc33d13ef3ce97c7daf88ad5f
3378
3378
  const INITIAL_SHARED_VERSION = '692442863';
3379
3379
  const LSK_FETCH_OFFSET = 'fetch_offset';
3380
3380
  const LSK_ENCRYPTED_OUTPUTS = 'encrypted_outputs';
3381
- const VORTEX_SIGNATURE_DOMAIN = 'https://vortexfi.xyz/'.toUpperCase();
3381
+ const VORTEX_SIGNATURE_DOMAIN = 'https://vortexfi.xyz/ | https://vtx.cash/ | https://vtx.money/'.toUpperCase();
3382
3382
  const TREASURY_ADDRESS = '0x894261575b948c035d002adc3ca4d73c683c01a1bfafac183870940bf9afef1a';
3383
3383
  // 0.5% deposit fee
3384
3384
  const DEPOSIT_FEE_IN_BASIS_POINTS = 50n;
@@ -39586,8 +39586,11 @@ class VortexAPI {
39586
39586
  __classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_assertSuccess).call(this, response);
39587
39587
  return response;
39588
39588
  }
39589
- async getAccounts(hashedSecret) {
39590
- const params = new URLSearchParams({ hashed_secret: hashedSecret });
39589
+ async getAccounts(args) {
39590
+ const params = new URLSearchParams({ hashed_secret: args.hashedSecret });
39591
+ if (args.excludeHidden !== undefined) {
39592
+ params.set('exclude_hidden', args.excludeHidden.toString());
39593
+ }
39591
39594
  const response = await __classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_get).call(this, `/api/v1/accounts?${params.toString()}`);
39592
39595
  __classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_assertSuccess).call(this, response);
39593
39596
  return response;
@@ -39600,6 +39603,18 @@ class VortexAPI {
39600
39603
  __classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_assertSuccess).call(this, response);
39601
39604
  return response;
39602
39605
  }
39606
+ async hideAccounts(args) {
39607
+ const body = {};
39608
+ if (args.accountObjectIds) {
39609
+ body.accountObjectIds = args.accountObjectIds;
39610
+ }
39611
+ if (args.hashedSecret) {
39612
+ body.hashedSecret = args.hashedSecret;
39613
+ }
39614
+ const response = await __classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_post).call(this, '/api/v1/accounts/hide', body, args.apiKey);
39615
+ __classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_assertSuccess).call(this, response);
39616
+ return response;
39617
+ }
39603
39618
  async getPools(args = {}) {
39604
39619
  const params = new URLSearchParams();
39605
39620
  if (args.page) {