forked from AztecProtocol/aztec-connect-bridges
-
Notifications
You must be signed in to change notification settings - Fork 0
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
18 changed files
with
159 additions
and
135 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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
version: '2.1' | ||
version: "2.1" | ||
orbs: | ||
node: circleci/[email protected] | ||
jobs: | ||
build-and-test: | ||
docker: | ||
- image: 'cimg/base:stable-20.04' | ||
- image: "cimg/base:stable-20.04" | ||
steps: | ||
- checkout | ||
- node/install: | ||
install-yarn: true | ||
node-version: '16.13' | ||
node-version: "16.13" | ||
- run: | ||
name: Setup Foundry | ||
shell: /bin/bash | ||
|
@@ -53,12 +53,12 @@ jobs: | |
yarn build | ||
publish: | ||
docker: | ||
- image: 'cimg/base:stable-20.04' | ||
- image: "cimg/base:stable-20.04" | ||
steps: | ||
- checkout | ||
- node/install: | ||
install-yarn: true | ||
node-version: '16.13' | ||
node-version: "16.13" | ||
- run: | ||
name: Authenticate with registry | ||
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc | ||
|
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,18 +1,18 @@ | ||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier/@typescript-eslint'], | ||
parser: "@typescript-eslint/parser", | ||
plugins: ["@typescript-eslint"], | ||
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier/@typescript-eslint"], | ||
env: { | ||
node: true, | ||
}, | ||
rules: { | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'no-constant-condition': 'off', | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"no-constant-condition": "off", | ||
camelcase: 2, | ||
}, | ||
ignorePatterns: ['node_modules', 'dest*', 'dist', '*.js', '.eslintrc'], | ||
ignorePatterns: ["node_modules", "dest*", "dist", "*.js", ".eslintrc"], | ||
}; |
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,9 +1,7 @@ | ||
cache | ||
cache/ | ||
out/ | ||
node_modules | ||
node_modules/ | ||
artifacts/ | ||
yarn-error.log | ||
contracts | ||
client-dest/ | ||
types/ | ||
typechain-types/ |
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 @@ | ||
cache/ | ||
out/ | ||
node_modules/ | ||
artifacts/ | ||
yarn-error.log | ||
client-dest/ | ||
lib/ | ||
typechain-types/ |
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
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,15 +1,13 @@ | ||
const path = require('path'); | ||
const { readFileSync, writeFileSync } = require('fs'); | ||
const path = require("path"); | ||
const { readFileSync, writeFileSync } = require("fs"); | ||
|
||
// https://github.com/Uniswap/uniswap-v2-periphery/pull/53 | ||
const safeMathFilename = path.resolve(__dirname, './node_modules/@uniswap/v2-periphery/contracts/libraries/SafeMath.sol'); | ||
const safeMathFilename = path.resolve( | ||
__dirname, | ||
"./node_modules/@uniswap/v2-periphery/contracts/libraries/SafeMath.sol", | ||
); | ||
|
||
try { | ||
const content = readFileSync(safeMathFilename, 'utf-8'); | ||
writeFileSync( | ||
safeMathFilename, | ||
content.replace('pragma solidity =0.6.6;', 'pragma solidity >=0.6.6;'), | ||
'utf-8', | ||
); | ||
} catch (e) { | ||
} | ||
const content = readFileSync(safeMathFilename, "utf-8"); | ||
writeFileSync(safeMathFilename, content.replace("pragma solidity =0.6.6;", "pragma solidity >=0.6.6;"), "utf-8"); | ||
} catch (e) {} |
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
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 +1 @@ | ||
export * from './web3_provider'; | ||
export * from "./web3_provider"; |
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,4 +1,4 @@ | ||
import { Web3Provider } from '@ethersproject/providers'; | ||
import { EthereumProvider } from '@aztec/barretenberg/blockchain'; | ||
import { Web3Provider } from "@ethersproject/providers"; | ||
import { EthereumProvider } from "@aztec/barretenberg/blockchain"; | ||
|
||
export const createWeb3Provider = (ethereumProvider: EthereumProvider) => new Web3Provider(ethereumProvider); |
Oops, something went wrong.