-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from BoltzExchange/update-dependencies
- Loading branch information
Showing
14 changed files
with
2,251 additions
and
1,597 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,42 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest] | ||
node-version: [10.x, 12.x] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Start Bitcoin Core container | ||
run: npm run docker:start | ||
|
||
- name: Compile | ||
run: npm run compile | ||
|
||
- name: Lint | ||
run: npm run lint | ||
|
||
- name: Unit tests | ||
run: npm run test:unit | ||
|
||
- name: Integration tests | ||
run: npm run test:int | ||
|
||
- name: Contract tests | ||
run: npm run test:solidity |
This file was deleted.
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
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 |
---|---|---|
|
@@ -5,6 +5,8 @@ server=1 | |
|
||
txindex=1 | ||
|
||
fallbackfee=0.00001 | ||
|
||
rpcuser=kek | ||
rpcpassword=kek | ||
rpcallowip=0.0.0.0/0 | ||
|
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,22 +1,7 @@ | ||
import fs from 'fs'; | ||
import path from 'path'; | ||
import IERC20 from '../../build/contracts/IERC20.json'; | ||
import EtherSwap from '../../build/contracts/EtherSwap.json'; | ||
import ERC20Swap from '../../build/contracts/ERC20Swap.json'; | ||
|
||
const contractsPath = `${path.resolve(__dirname, '..', '..')}/build/contracts`; | ||
|
||
const readAbiFile = (contractName: string) => { | ||
return fs.readFileSync(`${contractsPath}/${contractName}.json`); | ||
}; | ||
|
||
const loadAbi = (contractName: string) => { | ||
return JSON.parse(readAbiFile(contractName).toString())['abi']; | ||
}; | ||
|
||
const IERC20ABI = loadAbi('IERC20'); | ||
const ERC20SwapABI = loadAbi('ERC20Swap'); | ||
const EtherSwapABI = loadAbi('EtherSwap'); | ||
|
||
export { | ||
IERC20ABI, | ||
ERC20SwapABI, | ||
EtherSwapABI, | ||
}; | ||
export const IERC20ABI = IERC20.abi; | ||
export const ERC20SwapABI = ERC20Swap.abi; | ||
export const EtherSwapABI = EtherSwap.abi; |
Oops, something went wrong.