mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-29 09:07:59 +03:00
make veORN method public
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user