From c39f90d6229891848af3a5703606c6a8bb185b4e Mon Sep 17 00:00:00 2001 From: NanezX Date: Wed, 1 Nov 2023 22:25:40 -0400 Subject: [PATCH] delete old nix shell --- subgraph/shell.nix | 93 ---------------------------------------------- 1 file changed, 93 deletions(-) delete mode 100755 subgraph/shell.nix diff --git a/subgraph/shell.nix b/subgraph/shell.nix deleted file mode 100755 index b38b38bcd..000000000 --- a/subgraph/shell.nix +++ /dev/null @@ -1,93 +0,0 @@ -`let - pkgs = import - (builtins.fetchTarball { - name = "nixos-unstable-2021-10-01"; - url = "https://github.com/nixos/nixpkgs/archive/d3d2c44a26b693293e8c79da0c3e3227fc212882.tar.gz"; - sha256 = "0vi4r7sxzfdaxzlhpmdkvkn3fjg533fcwsy3yrcj5fiyqip2p3kl"; - }) - { }; - - compile = pkgs.writeShellScriptBin "compile" '' - hardhat compile --force - ''; - - codegen = pkgs.writeShellScriptBin "codegen" '' - graph codegen - ''; - - docker-up = pkgs.writeShellScriptBin "docker-up" '' - # docker-down - # rm -rf docker/data - docker-compose -f docker/docker-compose.yaml up --build -d - ''; - - docker-down = pkgs.writeShellScriptBin "docker-down" '' - docker-compose -f docker/docker-compose.yaml down - ''; - - flush-all = pkgs.writeShellScriptBin "flush-all" '' - rm -rf cache - rm -rf node_modules - rm -rf build - rm -rf generated - rm -rf docker/data - ''; - - copy-abis = pkgs.writeShellScriptBin "copy-abis" '' - cp artifacts/contracts/orderbook/OrderBook.sol/OrderBook.json abis - cp artifacts/contracts/test/testToken/ReserveToken.sol/ReserveToken.json abis - ''; - - setup = pkgs.writeShellScriptBin "setup" '' - cp -r rain-protocol/artifacts . - cp -r rain-protocol/typechain . - copy-abis - ''; - - ci-test = pkgs.writeShellScriptBin "ci-test" '' - npx mustache config/localhost.json subgraph.template.yaml subgraph.yaml - codegen - # npx hardhat test --no-compile - cargo run --manifest-path ./Cargo.toml test - ''; - - init = pkgs.writeShellScriptBin "init" '' - npm install - ''; - - ci-prepare-subgraph-polygon = pkgs.writeShellScriptBin "ci-prepare-subgraph-polygon" '' - npx mustache config/polygon.json subgraph.template.yaml subgraph.yaml - graph codegen - graph build - ''; - - ci-prepare-subgraph-mumbai = pkgs.writeShellScriptBin "ci-prepare-subgraph-mumbai" '' - npx mustache config/mumbai.json subgraph.template.yaml subgraph.yaml - graph codegen - graph build - ''; - -in -pkgs.stdenv.mkDerivation { - name = "shell"; - buildInputs = [ - pkgs.nixpkgs-fmt - pkgs.yarn - pkgs.nodejs-16_x - ci-test - compile - codegen - docker-up - docker-down - flush-all - init - ci-prepare-subgraph-polygon - ci-prepare-subgraph-mumbai - copy-abis - setup - ]; - - shellHook = '' - export PATH=$( npm bin ):$PATH - ''; -}