-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
199 changed files
with
97,279 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/lib | ||
src/generated/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": [ | ||
"oclif", | ||
"oclif-typescript" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
*-debug.log | ||
*-error.log | ||
/.nyc_output | ||
/dist | ||
/lib | ||
/tmp | ||
node_modules | ||
.DS_Store | ||
.npmrc | ||
.cache/ | ||
cache/ | ||
*.log | ||
*.tgz | ||
*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
lib/**/* | ||
dist/**/* | ||
bin/**/* | ||
*.min.js | ||
*.html | ||
*.css | ||
docs/**/* | ||
src/generated/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
<p align="center"> | ||
<img src="./docs/sushi_logo.svg"> | ||
</p> | ||
|
||
sushi-sh | ||
====== | ||
|
||
> Command Line Interface for SushiSwap | ||
|
||
## Overview | ||
<!-- usage --> | ||
```sh-session | ||
$ 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 | ||
... | ||
``` | ||
<!-- usagestop --> | ||
|
||
|
||
## Commands | ||
|
||
### sushi _meta | ||
|
||
* [`sushi _meta`] | ||
|
||
### sushi autocomplete [SHELL] | ||
|
||
* [`sushi autocomplete [SHELL]`] | ||
|
||
### sushi bundle | ||
|
||
* [`sushi bundle`] | ||
|
||
### sushi bundles | ||
|
||
* [`sushi bundles`] | ||
|
||
### sushi burn | ||
|
||
* [`sushi burn`] | ||
|
||
### sushi burns | ||
|
||
* [`sushi burns`] | ||
|
||
### sushi commands | ||
|
||
* [`sushi commands`] | ||
|
||
### sushi help | ||
|
||
* [`sushi help [COMMAND]`] | ||
|
||
### sushi liquidityPosition | ||
|
||
* [`sushi liquidityPosition`] | ||
|
||
### sushi liquidityPositionSnapshot | ||
|
||
* [`sushi liquidityPositionSnapshot`] | ||
|
||
### liquidityPositionSnapshots | ||
|
||
* [`sushi liquidityPositionSnapshots`] | ||
|
||
### sushi liquidityPositions | ||
|
||
* [`sushi liquidityPositions`] | ||
|
||
### sushi mint | ||
|
||
* [`sushi mint`] | ||
|
||
### sushi mints | ||
|
||
* [`sushi mints`] | ||
|
||
### sushi pair | ||
|
||
* [`sushi pair`] | ||
|
||
### sushi pairDayData | ||
|
||
* [`sushi pairDayData`] | ||
|
||
### sushi pairDayDatas | ||
|
||
* [`sushi pairDayDatas`] | ||
|
||
### sushi pairHourData | ||
|
||
* [`sushi pairHourData`] | ||
|
||
### sushi pairHourDatas | ||
|
||
* [`sushi pairHourDatas`] | ||
|
||
### sushi pairs | ||
|
||
* [`sushi pairs`] | ||
|
||
### sushi swap | ||
|
||
* [`sushi swap`] | ||
|
||
### sushi swaps | ||
|
||
* [`sushi swaps`] | ||
|
||
### sushi token | ||
|
||
* [`sushi token`] | ||
|
||
### sushi tokenDayData | ||
|
||
* [`sushi tokenDayData`] | ||
|
||
### sushi tokenDayDatas | ||
|
||
* [`sushi tokenDayDatas`] | ||
|
||
### sushi tokens | ||
|
||
* [`sushi tokens`] | ||
|
||
### sushi transaction | ||
|
||
* [`sushi transaction`] | ||
|
||
### sushi transactions | ||
|
||
* [`sushi transactions`] | ||
|
||
### sushi sushiswapDayData | ||
|
||
* [`sushi sushiswapDayData`] | ||
|
||
### sushi sushiswapDayDatas | ||
|
||
* [`sushi sushiswapDayDatas`] | ||
|
||
### sushi sushiswapFactories | ||
|
||
* [`sushi sushiswapFactories`] | ||
|
||
### sushi sushiswapFactory | ||
|
||
* [`sushi sushiswapFactory`] | ||
|
||
### sushi user | ||
|
||
* [`sushi user`] | ||
|
||
### sushi users | ||
|
||
* [`sushi users`] | ||
|
||
|
||
## License | ||
|
||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env node | ||
|
||
require('@oclif/command').run() | ||
.then(require('@oclif/command/flush')) | ||
.catch(require('@oclif/errors/handle')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
|
||
node "%~dp0\run" %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
overwrite: true | ||
schema: "https://api.thegraph.com/subgraphs/name/sushiswap/exchange" | ||
#documents: "src/**/*.gql" | ||
generates: | ||
src/types.ts: | ||
- typescript | ||
src/commands/: | ||
preset: near-operation-file | ||
presetConfig: | ||
extension: .ts | ||
baseTypesPath: ../types.ts | ||
plugins: | ||
- typescript-oclif: | ||
handlerPath: ../../handler |
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.