Comparing version 11.8.0 to 11.9.0
@@ -128,3 +128,3 @@ import { AxiosAdapter } from "axios"; | ||
}>; | ||
getConfig(seqno: number): Promise<{ | ||
getConfig(seqno: number, ids?: number[]): Promise<{ | ||
config: { | ||
@@ -131,0 +131,0 @@ cell: string; |
@@ -90,4 +90,8 @@ "use strict"; | ||
} | ||
async getConfig(seqno) { | ||
let res = await axios_1.default.get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/' + seqno + '/config', { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") }); | ||
async getConfig(seqno, ids) { | ||
let tail = ''; | ||
if (ids && ids.length > 0) { | ||
tail = '/' + [...ids].sort().join(','); | ||
} | ||
let res = await axios_1.default.get(__classPrivateFieldGet(this, _TonClient4_endpoint, "f") + '/block/' + seqno + '/config' + tail, { adapter: __classPrivateFieldGet(this, _TonClient4_adapter, "f"), timeout: __classPrivateFieldGet(this, _TonClient4_timeout, "f") }); | ||
if (!configCodec.is(res.data)) { | ||
@@ -94,0 +98,0 @@ throw Error('Mailformed response'); |
@@ -22,2 +22,3 @@ "use strict"; | ||
await client.getConfig(20241422); | ||
await client.getConfig(20241422, [1, 2, 3]); | ||
}); | ||
@@ -24,0 +25,0 @@ it('should get accounts', async () => { |
{ | ||
"name": "ton", | ||
"version": "11.8.0", | ||
"version": "11.9.0", | ||
"repository": "https://github.com/tonwhales/ton.git", | ||
@@ -5,0 +5,0 @@ "author": "Steve Korshakov <steve@korshakov.com>", |
421438
10875