-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
24,103 additions
and
266 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,2 @@ | ||
DEPLOY_URL=user@remote-host | ||
DEV_SHELL=fish |
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
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,10 @@ | ||
include .env | ||
|
||
nixify: | ||
yarn2nix > nix/yarn.nix | ||
|
||
image-load: | ||
nix build && ./result | docker load | ||
|
||
image-remote-load: | ||
nix build '.#production-image-stream' && ./result | ssh ${DEPLOY_URL} docker load |
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
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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
{ | ||
"name": "near-bridge", | ||
"version": "0.0.1", | ||
"description": "", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/near/rainbow-bridge.git" | ||
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@nomiclabs/hardhat-ethers": "^2.0.1", | ||
"@nomiclabs/hardhat-waffle": "^2.0.1", | ||
"chai": "^4.3.3", | ||
"eslint": "^6.3.0", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-promise": "^4.0.1", | ||
"eslint-plugin-standard": "^4.0.0", | ||
"ethereum-waffle": "^3.3.0", | ||
"ethers": "^5.0.31", | ||
"hardhat": "^2.1.1", | ||
"hardhat-gas-reporter": "^1.0.8", | ||
"rainbow-bridge-utils": "file:../../../utils", | ||
"solc": "0.8.3", | ||
"solidity-coverage": "^0.7.16", | ||
"solium": "^1.2.5" | ||
}, | ||
"scripts": { | ||
"build": "hardhat compile", | ||
"test": "hardhat test", | ||
"coverage": "hardhat coverage", | ||
"lint:js": "eslint .", | ||
"lint:js:fix": "eslint . --fix", | ||
"lint:sol": "solium -d .", | ||
"lint:sol:fix": "solium -d . --fix", | ||
"lint": "yarn lint:js && yarn lint:sol", | ||
"lint:fix": "yarn lint:js:fix && yarn lint:sol:fix" | ||
} | ||
"name": "near-bridge", | ||
"version": "0.0.1", | ||
"description": "", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/aurora-is-near/rainbow-bridge.git" | ||
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@nomiclabs/hardhat-ethers": "^2.0.1", | ||
"@nomiclabs/hardhat-waffle": "^2.0.1", | ||
"chai": "^4.3.3", | ||
"eslint": "^6.3.0", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-promise": "^4.0.1", | ||
"eslint-plugin-standard": "^4.0.0", | ||
"ethereum-waffle": "^3.3.0", | ||
"ethers": "^5.0.31", | ||
"hardhat": "^2.1.1", | ||
"hardhat-gas-reporter": "^1.0.8", | ||
"rainbow-bridge-utils": "1.0.0", | ||
"solc": "0.8.3", | ||
"solidity-coverage": "^0.7.16", | ||
"solium": "^1.2.5" | ||
}, | ||
"scripts": { | ||
"build": "hardhat compile", | ||
"test": "hardhat test", | ||
"coverage": "hardhat coverage", | ||
"lint:js": "eslint .", | ||
"lint:js:fix": "eslint . --fix", | ||
"lint:sol": "solium -d .", | ||
"lint:sol:fix": "solium -d . --fix", | ||
"lint": "yarn lint:js && yarn lint:sol", | ||
"lint:fix": "yarn lint:js:fix && yarn lint:sol:fix" | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,43 +1,43 @@ | ||
{ | ||
"name": "near-prover", | ||
"version": "0.0.1", | ||
"description": "", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/near/rainbow-bridge.git" | ||
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@ethersproject/hardware-wallets": "5.2.0", | ||
"@ledgerhq/hw-app-eth": "^6.19.0", | ||
"@ledgerhq/hw-transport-node-hid": "^6.19.0", | ||
"@nomiclabs/hardhat-ethers": "^2.0.1", | ||
"chai": "^4.3.3", | ||
"dotenv": "^8.2.0", | ||
"eslint": "^6.3.0", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-promise": "^4.0.1", | ||
"eslint-plugin-standard": "^4.0.0", | ||
"eth-gas-reporter": "^0.2.11", | ||
"ethers": "5.2.0", | ||
"hardhat": "^2.1.1", | ||
"rainbow-bridge-utils": "file:../../../utils", | ||
"readline-sync": "^1.4.10", | ||
"solc": "0.8.3", | ||
"solidity-coverage": "^0.7.16", | ||
"solium": "^1.2.5" | ||
}, | ||
"scripts": { | ||
"build": "hardhat compile", | ||
"test": "hardhat test", | ||
"coverage": "hardhat coverage", | ||
"lint:js": "eslint .", | ||
"lint:js:fix": "eslint . --fix", | ||
"lint:sol": "solium -d .", | ||
"lint:sol:fix": "solium -d . --fix", | ||
"lint": "yarn lint:js && yarn lint:sol", | ||
"lint:fix": "yarn lint:js:fix && yarn lint:sol:fix" | ||
} | ||
"name": "near-prover", | ||
"version": "0.0.1", | ||
"description": "", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/aurora-is-near/rainbow-bridge.git" | ||
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@ethersproject/hardware-wallets": "5.2.0", | ||
"@ledgerhq/hw-app-eth": "^6.19.0", | ||
"@ledgerhq/hw-transport-node-hid": "^6.19.0", | ||
"@nomiclabs/hardhat-ethers": "^2.0.1", | ||
"chai": "^4.3.3", | ||
"dotenv": "^8.2.0", | ||
"eslint": "^6.3.0", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-promise": "^4.0.1", | ||
"eslint-plugin-standard": "^4.0.0", | ||
"eth-gas-reporter": "^0.2.11", | ||
"ethers": "5.2.0", | ||
"hardhat": "^2.1.1", | ||
"rainbow-bridge-utils": "1.0.0", | ||
"readline-sync": "^1.4.10", | ||
"solc": "0.8.3", | ||
"solidity-coverage": "^0.7.16", | ||
"solium": "^1.2.5" | ||
}, | ||
"scripts": { | ||
"build": "hardhat compile", | ||
"test": "hardhat test", | ||
"coverage": "hardhat coverage", | ||
"lint:js": "eslint .", | ||
"lint:js:fix": "eslint . --fix", | ||
"lint:sol": "solium -d .", | ||
"lint:sol:fix": "solium -d . --fix", | ||
"lint": "yarn lint:js && yarn lint:sol", | ||
"lint:fix": "yarn lint:js:fix && yarn lint:sol:fix" | ||
} | ||
} |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
rec { | ||
description = "Rainbow Bridge"; | ||
|
||
inputs = { | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05"; | ||
}; | ||
|
||
outputs = inputs@{ self, nixpkgs, flake-utils, ... }: | ||
with flake-utils.lib; eachSystem allSystems (system: | ||
let | ||
pkgs = import nixpkgs { inherit system; }; | ||
packages = pkgs.lib.foldr | ||
(a: b: a // b) | ||
{ } | ||
(map | ||
(env: (pkgs.lib.mapAttrs' | ||
(pkgName: pkg: { | ||
name = "${env}-${pkgName}"; | ||
value = pkg; | ||
}) | ||
( | ||
let | ||
settings = import ./nix/settings.nix { inherit pkgs env; }; | ||
app = settings; | ||
pkgs = import nixpkgs { | ||
inherit system app; | ||
overlays = [ | ||
(import ./nix/environment.nix { inherit app; }) | ||
]; | ||
}; | ||
docker = import ./nix/docker.nix { inherit pkgs app; }; | ||
in | ||
rec { | ||
image-stream = docker.app-image-stream; | ||
image = docker.app-image; | ||
devShell = import ./nix/shell.nix { inherit pkgs; }; | ||
} | ||
)) | ||
) | ||
[ "production" "development" ]); | ||
in | ||
{ | ||
packages = packages // { | ||
default = packages.development-image-stream; | ||
}; | ||
devShells.default = packages.development-devShell; | ||
} | ||
); | ||
} |
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
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
Oops, something went wrong.