Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: sam bacha <[email protected]>
  • Loading branch information
sambacha committed Sep 7, 2021
0 parents commit 0c74399
Show file tree
Hide file tree
Showing 199 changed files with 97,279 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .editorconfig
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
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/lib
src/generated/**/*
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": [
"oclif",
"oclif-typescript"
]
}
29 changes: 29 additions & 0 deletions .github/workflows/node.js.yml
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
50 changes: 50 additions & 0 deletions .github/workflows/npm-publish.yml
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}}
14 changes: 14 additions & 0 deletions .gitignore
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
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
lib/**/*
dist/**/*
bin/**/*
*.min.js
*.html
*.css
docs/**/*
src/generated/**/*
21 changes: 21 additions & 0 deletions LICENSE
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.
168 changes: 168 additions & 0 deletions README.md
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
5 changes: 5 additions & 0 deletions bin/run
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'))
3 changes: 3 additions & 0 deletions bin/run.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

node "%~dp0\run" %*
14 changes: 14 additions & 0 deletions codegen.yml
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
1 change: 1 addition & 0 deletions docs/assets/css/main.css

Large diffs are not rendered by default.

Binary file added docs/assets/images/icons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/widgets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0c74399

Please sign in to comment.