eos-detective
Advanced tools
Comparing version 0.5.4 to 0.5.5
@@ -88,2 +88,14 @@ import { ApiResponse, TransfersData } from "../types/ApiResponse"; | ||
count_max?: number; | ||
/** | ||
* Result offset. | ||
* | ||
* @default 0 | ||
*/ | ||
offset?: number; | ||
/** | ||
* Result limit. | ||
* | ||
* @default 1000 | ||
*/ | ||
limit?: number; | ||
}): Promise<ApiResponse<TransfersData>>; |
@@ -31,3 +31,3 @@ "use strict"; | ||
queryParams.symbol = options.symbol || "EOS"; | ||
queryParams.chain = options.chain || "EOS"; | ||
queryParams.chain = options.chain || "eos"; | ||
queryParams.direction = options.direction || "both"; | ||
@@ -38,2 +38,4 @@ queryParams.accumulated = options.accumulated === undefined ? true : options.accumulated; | ||
queryParams.time_min = options.time_min === undefined ? yesterday.toISOString() : options.time_min.toISOString(); | ||
queryParams.offset = options.offset || 0; | ||
queryParams.limit = options.limit || 1000; | ||
// optional params | ||
@@ -40,0 +42,0 @@ if (options.quantity_max) { |
import { JsonRpc, Api } from "eosjs"; | ||
import JsSignatureProvider from "eosjs/dist/eosjs-jssig"; | ||
/** | ||
@@ -15,3 +16,3 @@ * Settings | ||
contract: string; | ||
readonly signatureProvider: any; | ||
readonly signatureProvider: JsSignatureProvider; | ||
readonly rpc: JsonRpc; | ||
@@ -18,0 +19,0 @@ readonly api: Api; |
@@ -16,3 +16,3 @@ "use strict"; | ||
const eosjs_1 = require("eosjs"); | ||
const JsSignatureProvider = require("eosjs/dist/eosjs-jssig").default; | ||
const eosjs_jssig_1 = __importDefault(require("eosjs/dist/eosjs-jssig")); | ||
const fetch = require("isomorphic-fetch"); | ||
@@ -39,3 +39,3 @@ const { TextEncoder, TextDecoder } = require("util"); | ||
} | ||
return new JsSignatureProvider([this.private_key]); | ||
return new eosjs_jssig_1.default([this.private_key]); | ||
} | ||
@@ -42,0 +42,0 @@ get rpc() { |
{ | ||
"name": "eos-detective", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"description": "EOS Detective", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
65780
1340