@bulletxyz/bullet-sdk 0.48.1 → 0.48.3
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/browser/index.js +4 -4
- package/dist/browser/index.js.map +4 -4
- package/dist/node/index.js +4 -4
- package/dist/node/index.js.map +4 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/client.d.ts +2 -2
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/zod-types/rest.d.ts +17 -14
- package/dist/types/zod-types/rest.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -2110,7 +2110,7 @@ var StateResponseSchemas = {
|
|
|
2110
2110
|
address: Base58Address,
|
|
2111
2111
|
account: Schemas.UserAccount
|
|
2112
2112
|
})),
|
|
2113
|
-
UserAccountConfig:
|
|
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/
|
|
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=
|
|
4111
|
+
//# debugId=AADAFC5158D12BDC64756E2164756E21
|