├── .dockerignore ├── .env.example ├── .github └── workflows │ └── node.js.yaml ├── .gitignore ├── .husky └── pre-commit ├── .prettierignore ├── .prettierrc.json ├── .vscode ├── launch.json └── tasks.json ├── .yarn └── releases │ └── yarn-berry.cjs ├── .yarnrc.yml ├── Dockerfile ├── LICENSE ├── README.md ├── package.json ├── src ├── abis │ └── erc20.json ├── config.ts ├── constrants │ ├── addresses.ts │ └── chainId.ts ├── inchPrice.ts ├── index.ts ├── interfaces │ └── main.ts ├── trade.ts └── utils │ └── balance.ts ├── tsconfig.json └── yarn.lock /.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/.dockerignore -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | ALCHEMY_POLYGON_RPC_URL=https://polygon-mainnet.g.alchemy.com/v2/ 2 | PRIVATE_KEY=your-private_key -------------------------------------------------------------------------------- /.github/workflows/node.js.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/.github/workflows/node.js.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /.yarn/releases/yarn-berry.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/.yarn/releases/yarn-berry.cjs -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/.yarnrc.yml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/package.json -------------------------------------------------------------------------------- /src/abis/erc20.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/src/abis/erc20.json -------------------------------------------------------------------------------- /src/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/src/config.ts -------------------------------------------------------------------------------- /src/constrants/addresses.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/src/constrants/addresses.ts -------------------------------------------------------------------------------- /src/constrants/chainId.ts: -------------------------------------------------------------------------------- 1 | export const polygonChainID = 137; 2 | -------------------------------------------------------------------------------- /src/inchPrice.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/src/inchPrice.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/interfaces/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/src/interfaces/main.ts -------------------------------------------------------------------------------- /src/trade.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/src/trade.ts -------------------------------------------------------------------------------- /src/utils/balance.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/src/utils/balance.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuichiroaoki/1inch-trading-bot/HEAD/yarn.lock --------------------------------------------------------------------------------