Added missing shebang

This commit is contained in:
Tornado Contrib 2024-05-06 02:14:08 +00:00
parent 5fc4b15786
commit b5d469fd16
Signed by: tornadocontrib
GPG Key ID: 60B4DF1A076C64B1
4 changed files with 19 additions and 11 deletions

16
dist/cli.js vendored

@ -1,3 +1,5 @@
#!/usr/bin/env node
/******/ (() => { // webpackBootstrap /******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({ /******/ var __webpack_modules__ = ({
@ -179204,7 +179206,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,
@ -179320,7 +179322,7 @@ function getRegisters({
subgraphName, subgraphName,
query: GET_REGISTERED, query: GET_REGISTERED,
variables: { variables: {
first, first: GRAPHQL_LIMIT,
fromBlock fromBlock
}, },
fetchDataOptions: fetchDataOptions2 fetchDataOptions: fetchDataOptions2
@ -179409,7 +179411,7 @@ function getDeposits({
variables: { variables: {
currency, currency,
amount, amount,
first, first: GRAPHQL_LIMIT,
fromBlock fromBlock
}, },
fetchDataOptions: fetchDataOptions2 fetchDataOptions: fetchDataOptions2
@ -179506,7 +179508,7 @@ function getWithdrawals({
variables: { variables: {
currency, currency,
amount, amount,
first, first: GRAPHQL_LIMIT,
fromBlock fromBlock
}, },
fetchDataOptions: fetchDataOptions2 fetchDataOptions: fetchDataOptions2
@ -179635,7 +179637,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
@ -179724,7 +179726,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
@ -179809,7 +179811,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

@ -53,7 +53,7 @@
"@colors/colors": "1.5.0", "@colors/colors": "1.5.0",
"@metamask/eth-sig-util": "^7.0.1", "@metamask/eth-sig-util": "^7.0.1",
"@tornado/contracts": "1.0.0", "@tornado/contracts": "1.0.0",
"@tornado/core": "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#4fde41b10ce601bcf687e2e8b93785f86237ac6c", "@tornado/core": "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#77ebefe1351bc33da31d6c25e6c7be8eda03b452",
"@tornado/fixed-merkle-tree": "0.7.3", "@tornado/fixed-merkle-tree": "0.7.3",
"@tornado/snarkjs": "0.1.20", "@tornado/snarkjs": "0.1.20",
"@tornado/websnark": "0.0.4", "@tornado/websnark": "0.0.4",

@ -1,5 +1,6 @@
const esbuild = require('esbuild'); const esbuild = require('esbuild');
const path = require('path'); const path = require('path');
const { BannerPlugin } = require('webpack');
const esbuildLoader = { const esbuildLoader = {
test: /\.ts?$/, test: /\.ts?$/,
@ -23,7 +24,12 @@ module.exports = [
path: path.resolve(__dirname, './dist'), path: path.resolve(__dirname, './dist'),
}, },
target: 'node', target: 'node',
plugins: [], plugins: [
new BannerPlugin({
banner: '#!/usr/bin/env node\n',
raw: true
})
],
resolve: { resolve: {
extensions: ['.tsx', '.ts', '.js'], extensions: ['.tsx', '.ts', '.js'],
alias: {}, alias: {},

@ -771,9 +771,9 @@
"@openzeppelin/contracts-v3" "npm:@openzeppelin/contracts@3.2.0-rc.0" "@openzeppelin/contracts-v3" "npm:@openzeppelin/contracts@3.2.0-rc.0"
ethers "^6.4.0" ethers "^6.4.0"
"@tornado/core@git+https://git.tornado.ws/tornadocontrib/tornado-core.git#4fde41b10ce601bcf687e2e8b93785f86237ac6c": "@tornado/core@git+https://git.tornado.ws/tornadocontrib/tornado-core.git#77ebefe1351bc33da31d6c25e6c7be8eda03b452":
version "1.0.1" version "1.0.1"
resolved "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#4fde41b10ce601bcf687e2e8b93785f86237ac6c" resolved "git+https://git.tornado.ws/tornadocontrib/tornado-core.git#77ebefe1351bc33da31d6c25e6c7be8eda03b452"
dependencies: dependencies:
"@metamask/eth-sig-util" "^7.0.1" "@metamask/eth-sig-util" "^7.0.1"
"@tornado/contracts" "^1.0.0" "@tornado/contracts" "^1.0.0"