@bulletxyz/bullet-sdk 0.48.2 → 0.48.4

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.
@@ -2110,7 +2110,7 @@ var StateResponseSchemas = {
2110
2110
  address: Base58Address,
2111
2111
  account: Schemas.UserAccount
2112
2112
  })),
2113
- UserAccountConfig: createBaseResponse(VersionedV0(Schemas.UserAccountConfigV0)),
2113
+ UserAccountConfig: StateResponseSchemas.StateMapElement(Base58Address, VersionedV0(Schemas.UserAccountConfigV0)),
2114
2114
  AccountBulk: createBaseResponse(z3.object({
2115
2115
  found: createJsonMap(Base58Address, Schemas.UserAccount),
2116
2116
  not_found: z3.array(Base58Address)
@@ -2343,8 +2343,8 @@ class ReadOnlyClient {
2343
2343
  return ResponseSchemas.AccountBulk.parse(response).found;
2344
2344
  }
2345
2345
  async getUserAccountConfig(address) {
2346
- let path = `/modules/exchange/api/v1/account/config/${address}`, response = await this.fetchApiResource(path);
2347
- return ResponseSchemas.UserAccountConfig.parse(response);
2346
+ let path = `/modules/exchange/state/user-account-configs/items/${address}`, response = await this.fetchApiResource(path);
2347
+ return ResponseSchemas.UserAccountConfig.parse(response).value;
2348
2348
  }
2349
2349
  async getExchangeAssets() {
2350
2350
  let response = await this.fetchApiResource("/modules/exchange/state/exchange-assets");
@@ -4108,4 +4108,4 @@ export {
4108
4108
  AbortError
4109
4109
  };
4110
4110
 
4111
- //# debugId=FE4508674C00884264756E2164756E21
4111
+ //# debugId=AADAFC5158D12BDC64756E2164756E21