diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..d67969a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,33 @@ +root = true + +# defaults +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +# JavaScript, JSON, JSX, JavaScript Modules, TypeScript +# https://github.com/feross/standard +# https://prettier.io +[*.{cjs,js,json,jsx,mjs,ts,tsx}] +indent_size = 2 +indent_style = space + +# Shell +# https://google.github.io/styleguide/shell.xml#Indentation +[*.{bash,sh,zsh}] +indent_size = 2 +indent_style = space + +# TOML +# https://github.com/toml-lang/toml/tree/master/examples +[*.toml] +indent_size = 2 +indent_style = space + +# YAML +# http://yaml.org/spec/1.2/2009-07-21/spec.html#id2576668 +[*.{yaml,yml}] +indent_size = 2 +indent_style = space diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..68788a2 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +/lib +src/generated/**/* \ No newline at end of file diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..7b84619 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,6 @@ +{ + "extends": [ + "oclif", + "oclif-typescript" + ] +} diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..ef1390d --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,29 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [12.x, 14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: yarn install --frozen-lockfile + - run: yarn build + - run: yarn test diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..f82f34c --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,50 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages + +name: Node.js Package + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: yarn install --frozen-lockfile + - run: yarn build + - run: yarn test + + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://registry.npmjs.org/ + - run: yarn install --frozen-lockfile + - run: yarn build + - run: yarn publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} + + publish-gpr: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://npm.pkg.github.com/ + - run: yarn install --frozen-lockfile + - run: yarn build + - run: yarn publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..31756c0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +*-debug.log +*-error.log +/.nyc_output +/dist +/lib +/tmp +node_modules +.DS_Store +.npmrc +.cache/ +cache/ +*.log +*.tgz +*.tar.gz \ No newline at end of file diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..9ce53c9 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,8 @@ +lib/**/* +dist/**/* +bin/**/* +*.min.js +*.html +*.css +docs/**/* +src/generated/**/* diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..dfaf852 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 The Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..71558a2 --- /dev/null +++ b/README.md @@ -0,0 +1,168 @@ +
+
+
An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+Description placeholder
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Description placeholder
+Generated using TypeDoc
+An array of aliases for this command
+An order-dependent array of arguments for the command
+The tweet-sized description for your class, used in a parent-commands + sub-command listing and as the header for the command help
+An array of example strings to show at the end of the command's help
+hide the command from help?
+A command ID, used mostly in error or verbose reporting
+instantiate and run the command
+When set to false, allows a variable amount of arguments
+An override string (or strings) for the default usage documentation
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+++ +Command Line Interface for SushiSwap
+
$ npm install -g sushi-sh
+$ sushi COMMAND
+running command...
+$ sushi (-v|--version|version)
+sushi-sh/1.1.0 darwin-x64 node-v14.17.3
+$ sushi --help [COMMAND]
+USAGE
+ $ sushi COMMAND
+...
+
+
+
+ MIT
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+User Information Query
+Generated using TypeDoc
+Generated using TypeDoc
+Access to subgraph metadata
+All built-in and custom scalars, mapped to their actual values
+Access to subgraph metadata
+The hash of the block
+The block number
+The type for the top-level _meta field
+Information about a specific subgraph block. The hash of the block + will be null if the _meta field has a block constraint that asks for + a block number. It will be filled if the _meta field has no block constraint + and therefore asks for the latest block
+The deployment ID
+If true
, the subgraph encountered indexing errors at some past block
Generated using TypeDoc
+Generated using TypeDoc
+Generated using TypeDoc
+Access to subgraph metadata
+All built-in and custom scalars, mapped to their actual values
+Access to subgraph metadata
+The hash of the block
+The block number
+The type for the top-level _meta field
+Information about a specific subgraph block. The hash of the block + will be null if the _meta field has a block constraint that asks for + a block number. It will be filled if the _meta field has no block constraint + and therefore asks for the latest block
+The deployment ID
+If true
, the subgraph encountered indexing errors at some past block
Generated using TypeDoc
+
An array of aliases for this command
+