forked from tornado-packages/tornado-core
parent
4fde41b10c
commit
77ebefe135
14
dist/index.js
vendored
14
dist/index.js
vendored
@ -3388,7 +3388,7 @@ var __async$a = (__this, __arguments, generator) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
const isEmptyArray = (arr) => !Array.isArray(arr) || !arr.length;
|
const isEmptyArray = (arr) => !Array.isArray(arr) || !arr.length;
|
||||||
const first = 1e3;
|
const GRAPHQL_LIMIT = 1e3;
|
||||||
function queryGraph(_0) {
|
function queryGraph(_0) {
|
||||||
return __async$a(this, arguments, function* ({
|
return __async$a(this, arguments, function* ({
|
||||||
graphApi,
|
graphApi,
|
||||||
@ -3504,7 +3504,7 @@ function getRegisters({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_REGISTERED,
|
query: GET_REGISTERED,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
@ -3593,7 +3593,7 @@ function getDeposits({
|
|||||||
variables: {
|
variables: {
|
||||||
currency,
|
currency,
|
||||||
amount,
|
amount,
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
@ -3690,7 +3690,7 @@ function getWithdrawals({
|
|||||||
variables: {
|
variables: {
|
||||||
currency,
|
currency,
|
||||||
amount,
|
amount,
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
@ -3819,7 +3819,7 @@ function getGraphEchoEvents({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_ECHO_EVENTS,
|
query: GET_ECHO_EVENTS,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
@ -3908,7 +3908,7 @@ function getEncryptedNotes({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_ENCRYPTED_NOTES,
|
query: GET_ENCRYPTED_NOTES,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
@ -3993,7 +3993,7 @@ function getGovernanceEvents({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_GOVERNANCE_EVENTS,
|
query: GET_GOVERNANCE_EVENTS,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
|
14
dist/index.mjs
vendored
14
dist/index.mjs
vendored
@ -3367,7 +3367,7 @@ var __async$a = (__this, __arguments, generator) => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
const isEmptyArray = (arr) => !Array.isArray(arr) || !arr.length;
|
const isEmptyArray = (arr) => !Array.isArray(arr) || !arr.length;
|
||||||
const first = 1e3;
|
const GRAPHQL_LIMIT = 1e3;
|
||||||
function queryGraph(_0) {
|
function queryGraph(_0) {
|
||||||
return __async$a(this, arguments, function* ({
|
return __async$a(this, arguments, function* ({
|
||||||
graphApi,
|
graphApi,
|
||||||
@ -3483,7 +3483,7 @@ function getRegisters({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_REGISTERED,
|
query: GET_REGISTERED,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
@ -3572,7 +3572,7 @@ function getDeposits({
|
|||||||
variables: {
|
variables: {
|
||||||
currency,
|
currency,
|
||||||
amount,
|
amount,
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
@ -3669,7 +3669,7 @@ function getWithdrawals({
|
|||||||
variables: {
|
variables: {
|
||||||
currency,
|
currency,
|
||||||
amount,
|
amount,
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
@ -3798,7 +3798,7 @@ function getGraphEchoEvents({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_ECHO_EVENTS,
|
query: GET_ECHO_EVENTS,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
@ -3887,7 +3887,7 @@ function getEncryptedNotes({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_ENCRYPTED_NOTES,
|
query: GET_ENCRYPTED_NOTES,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
@ -3972,7 +3972,7 @@ function getGovernanceEvents({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_GOVERNANCE_EVENTS,
|
query: GET_GOVERNANCE_EVENTS,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
|
14
dist/index.umd.js
vendored
14
dist/index.umd.js
vendored
@ -61833,7 +61833,7 @@ var __async = (__this, __arguments, generator) => {
|
|||||||
|
|
||||||
|
|
||||||
const isEmptyArray = (arr) => !Array.isArray(arr) || !arr.length;
|
const isEmptyArray = (arr) => !Array.isArray(arr) || !arr.length;
|
||||||
const first = 1e3;
|
const GRAPHQL_LIMIT = 1e3;
|
||||||
function queryGraph(_0) {
|
function queryGraph(_0) {
|
||||||
return __async(this, arguments, function* ({
|
return __async(this, arguments, function* ({
|
||||||
graphApi,
|
graphApi,
|
||||||
@ -61949,7 +61949,7 @@ function getRegisters({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_REGISTERED,
|
query: GET_REGISTERED,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
@ -62038,7 +62038,7 @@ function getDeposits({
|
|||||||
variables: {
|
variables: {
|
||||||
currency,
|
currency,
|
||||||
amount,
|
amount,
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
@ -62135,7 +62135,7 @@ function getWithdrawals({
|
|||||||
variables: {
|
variables: {
|
||||||
currency,
|
currency,
|
||||||
amount,
|
amount,
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
@ -62264,7 +62264,7 @@ function getGraphEchoEvents({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_ECHO_EVENTS,
|
query: GET_ECHO_EVENTS,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
@ -62353,7 +62353,7 @@ function getEncryptedNotes({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_ENCRYPTED_NOTES,
|
query: GET_ENCRYPTED_NOTES,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
@ -62438,7 +62438,7 @@ function getGovernanceEvents({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_GOVERNANCE_EVENTS,
|
query: GET_GOVERNANCE_EVENTS,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock
|
fromBlock
|
||||||
},
|
},
|
||||||
fetchDataOptions: fetchDataOptions2
|
fetchDataOptions: fetchDataOptions2
|
||||||
|
@ -31,7 +31,8 @@ export * from './queries';
|
|||||||
|
|
||||||
const isEmptyArray = (arr: object) => !Array.isArray(arr) || !arr.length;
|
const isEmptyArray = (arr: object) => !Array.isArray(arr) || !arr.length;
|
||||||
|
|
||||||
const first = 1000;
|
// https://thegraph.com/docs/en/developing/developer-faqs/#23-is-there-a-limit-to-how-many-objects-the-graph-can-return-per-query
|
||||||
|
const GRAPHQL_LIMIT = 1000;
|
||||||
|
|
||||||
export type queryGraphParams = {
|
export type queryGraphParams = {
|
||||||
graphApi: string;
|
graphApi: string;
|
||||||
@ -239,7 +240,7 @@ export function getRegisters({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_REGISTERED,
|
query: GET_REGISTERED,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock,
|
fromBlock,
|
||||||
},
|
},
|
||||||
fetchDataOptions,
|
fetchDataOptions,
|
||||||
@ -368,7 +369,7 @@ export function getDeposits({
|
|||||||
variables: {
|
variables: {
|
||||||
currency,
|
currency,
|
||||||
amount,
|
amount,
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock,
|
fromBlock,
|
||||||
},
|
},
|
||||||
fetchDataOptions,
|
fetchDataOptions,
|
||||||
@ -506,7 +507,7 @@ export function getWithdrawals({
|
|||||||
variables: {
|
variables: {
|
||||||
currency,
|
currency,
|
||||||
amount,
|
amount,
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock,
|
fromBlock,
|
||||||
},
|
},
|
||||||
fetchDataOptions,
|
fetchDataOptions,
|
||||||
@ -704,7 +705,7 @@ export function getGraphEchoEvents({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_ECHO_EVENTS,
|
query: GET_ECHO_EVENTS,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock,
|
fromBlock,
|
||||||
},
|
},
|
||||||
fetchDataOptions,
|
fetchDataOptions,
|
||||||
@ -830,7 +831,7 @@ export function getEncryptedNotes({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_ENCRYPTED_NOTES,
|
query: GET_ENCRYPTED_NOTES,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock,
|
fromBlock,
|
||||||
},
|
},
|
||||||
fetchDataOptions,
|
fetchDataOptions,
|
||||||
@ -981,7 +982,7 @@ export function getGovernanceEvents({
|
|||||||
subgraphName,
|
subgraphName,
|
||||||
query: GET_GOVERNANCE_EVENTS,
|
query: GET_GOVERNANCE_EVENTS,
|
||||||
variables: {
|
variables: {
|
||||||
first,
|
first: GRAPHQL_LIMIT,
|
||||||
fromBlock,
|
fromBlock,
|
||||||
},
|
},
|
||||||
fetchDataOptions,
|
fetchDataOptions,
|
||||||
|
Loading…
Reference in New Issue
Block a user