Added queue length method

This commit is contained in:
Aleksandr Kraiz
2022-05-10 19:13:59 +04:00
parent 56456292b4
commit 7b1467f0ce
2 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@orionprotocol/sdk",
"version": "0.5.0",
"version": "0.5.1",
"description": "Orion Protocol SDK",
"main": "./lib/esm/index.js",
"module": "./lib/esm/index.js",

View File

@@ -190,6 +190,10 @@ class OrionBlockchain {
);
}
getQueueLength() {
return fetchWithValidation(`https://${this.apiUrl}/api/queueLength`, z.number().int());
}
getIDOInfo() {
return fetchWithValidation(`https://${this.apiUrl}/api/solarflare`, IDOSchema);
}