make veORN method public

This commit is contained in:
TheJuze
2023-09-27 16:46:57 +03:00
parent d6b1c625b3
commit b6e6a57d2c
2 changed files with 12 additions and 12 deletions

View File

@@ -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",

View File

@@ -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';