@bulletxyz/bullet-sdk 0.21.0-rc.6 → 0.21.0-rc.8
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
CHANGED
|
@@ -6799,7 +6799,7 @@ var Schemas = {
|
|
|
6799
6799
|
AccountAddresses: z.object({
|
|
6800
6800
|
addresses: z.array(Base58Address),
|
|
6801
6801
|
total: z.number(),
|
|
6802
|
-
next_offset: z.number().
|
|
6802
|
+
next_offset: z.number().nullable()
|
|
6803
6803
|
})
|
|
6804
6804
|
};
|
|
6805
6805
|
var ResponseSchemas = {
|
|
@@ -6878,7 +6878,9 @@ var BaseConnection = class {
|
|
|
6878
6878
|
const url = new URL(path, this.endpoint);
|
|
6879
6879
|
if (params) {
|
|
6880
6880
|
for (const [key, value] of Object.entries(params)) {
|
|
6881
|
-
|
|
6881
|
+
if (value !== void 0) {
|
|
6882
|
+
url.searchParams.append(key, value);
|
|
6883
|
+
}
|
|
6882
6884
|
}
|
|
6883
6885
|
}
|
|
6884
6886
|
const response = await fetch(url.toString());
|
|
@@ -7299,9 +7301,12 @@ var ExchangeConnection = class extends BaseConnection {
|
|
|
7299
7301
|
const parsed = ResponseSchemas.OrderbookL2Bulk.parse(response);
|
|
7300
7302
|
return parsed.data.found;
|
|
7301
7303
|
}
|
|
7302
|
-
async getUserAccountAddresses(start
|
|
7303
|
-
const path = `/modules/exchange/api/v1/account/addresses
|
|
7304
|
-
const response = await this.fetchApiResource(path
|
|
7304
|
+
async getUserAccountAddresses(start, limit) {
|
|
7305
|
+
const path = `/modules/exchange/api/v1/account/addresses`;
|
|
7306
|
+
const response = await this.fetchApiResource(path, {
|
|
7307
|
+
from: start?.toString(),
|
|
7308
|
+
limit: limit?.toString()
|
|
7309
|
+
});
|
|
7305
7310
|
const parsed = ResponseSchemas.AccountAddresses.parse(response);
|
|
7306
7311
|
return parsed.data;
|
|
7307
7312
|
}
|