mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-13 21:52:36 +03:00
update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.22.10-rc2",
|
||||
"version": "0.22.10-rc3",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -55,7 +55,7 @@ type VeORNInfoPayload = BasePayload & {
|
||||
type GetPointsAtPayload = BasePayload & {
|
||||
model: 'veORN'
|
||||
method: 'pointsInfo'
|
||||
params: [number, number, number]
|
||||
params: [number, number]
|
||||
};
|
||||
|
||||
type ListAmountPayload = BasePayload & {
|
||||
@@ -127,13 +127,17 @@ class IndexerService {
|
||||
});
|
||||
};
|
||||
|
||||
readonly getPointsAt = (timestamp = Date.now(), page = 1, pageSize = 1000) => {
|
||||
/**
|
||||
* @param {number} page - current page
|
||||
* @param {number} [pageSize] - amount of items on one page
|
||||
*/
|
||||
readonly getPointsAt = (page = 1, pageSize = 1000) => {
|
||||
return fetchWithValidation(this.apiUrl, getPointsAtResponseSchema, {
|
||||
method: 'POST',
|
||||
body: this.makeRPCPayload({
|
||||
model: 'veORN',
|
||||
method: 'pointsAt',
|
||||
params: [timestamp, page, pageSize],
|
||||
params: [page, pageSize],
|
||||
}),
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user