From b6e6a57d2cb97112b5814432667e2fabcc597270 Mon Sep 17 00:00:00 2001 From: TheJuze Date: Wed, 27 Sep 2023 16:46:57 +0300 Subject: [PATCH] make veORN method public --- package.json | 2 +- src/services/Integrator/index.ts | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index b6df1a3..04fe10b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.19.89-rc1", + "version": "0.19.89-rc2", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/services/Integrator/index.ts b/src/services/Integrator/index.ts index 76efab4..e5a1aa0 100644 --- a/src/services/Integrator/index.ts +++ b/src/services/Integrator/index.ts @@ -77,6 +77,17 @@ class IntegratorService { }); }; + veORNInfo = (address: string) => { + return fetchWithValidation(this.apiUrl, veORNInfoSchema, { + method: 'POST', + body: this.makeRPCPayload({ + model: 'veORN', + method: 'info', + params: [address] + }) + }) + } + private readonly getEnvironment = () => { return fetchWithValidation(this.apiUrl, environmentResponseSchema, { method: 'POST', @@ -124,17 +135,6 @@ class IntegratorService { }), }); } - - private readonly veORNInfo = (address: string) => { - return fetchWithValidation(this.apiUrl, veORNInfoSchema, { - method: 'POST', - body: this.makeRPCPayload({ - model: 'veORN', - method: 'info', - params: [address] - }) - }) - } } export * as schemas from './schemas/index.js';