-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds linting for typescript and solidity (#24)
* Add solidity linting * Add linting to typescript, remove unnecesary files * Add lint workflow * Update yarn actions version * Use yarn action master version
- Loading branch information
1 parent
0d6c2c6
commit f8ae70f
Showing
73 changed files
with
3,916 additions
and
3,935 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,23 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
jobs: | ||
lint: | ||
name: with tslint and solhint | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [10.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: borales/actions-yarn@master | ||
with: | ||
cmd: install # will run `yarn install` command | ||
- uses: borales/actions-yarn@master | ||
with: | ||
cmd: lint # will run `yarn lint` command |
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,4 @@ | ||
{ | ||
"tabWidth": 2, | ||
"useTabs": false | ||
} |
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,6 @@ | ||
{ | ||
"extends": "solhint:default", | ||
"rules": { | ||
"max-line-length": ["error", 100] | ||
} | ||
} |
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,5 +1,6 @@ | ||
pragma solidity ^0.6.4; | ||
|
||
|
||
interface IBFactory { | ||
function newBPool() external returns (address); | ||
} | ||
function newBPool() external returns (address); | ||
} |
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,16 +1,23 @@ | ||
pragma solidity ^0.6.4; | ||
|
||
|
||
interface IERC20 { | ||
event Approval(address indexed _src, address indexed _dst, uint _amount); | ||
event Transfer(address indexed _src, address indexed _dst, uint _amount); | ||
|
||
function totalSupply() external view returns (uint); | ||
function balanceOf(address _whom) external view returns (uint); | ||
function allowance(address _src, address _dst) external view returns (uint); | ||
|
||
function approve(address _dst, uint _amount) external returns (bool); | ||
function transfer(address _dst, uint _amount) external returns (bool); | ||
function transferFrom( | ||
address _src, address _dst, uint _amount | ||
) external returns (bool); | ||
} | ||
event Approval(address indexed _src, address indexed _dst, uint256 _amount); | ||
event Transfer(address indexed _src, address indexed _dst, uint256 _amount); | ||
|
||
function totalSupply() external view returns (uint256); | ||
|
||
function balanceOf(address _whom) external view returns (uint256); | ||
|
||
function allowance(address _src, address _dst) external view returns (uint256); | ||
|
||
function approve(address _dst, uint256 _amount) external returns (bool); | ||
|
||
function transfer(address _dst, uint256 _amount) external returns (bool); | ||
|
||
function transferFrom( | ||
address _src, | ||
address _dst, | ||
uint256 _amount | ||
) external returns (bool); | ||
} |
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,14 +1,14 @@ | ||
pragma solidity ^0.6.4; | ||
|
||
interface IKyberNetwork { | ||
|
||
function trade( | ||
address src, | ||
uint srcAmount, | ||
address dest, | ||
address payable destAddress, | ||
uint maxDestAmount, | ||
uint minConversionRate, | ||
address walletId | ||
) external payable returns(uint256); | ||
} | ||
interface IKyberNetwork { | ||
function trade( | ||
address src, | ||
uint256 srcAmount, | ||
address dest, | ||
address payable destAddress, | ||
uint256 maxDestAmount, | ||
uint256 minConversionRate, | ||
address walletId | ||
) external payable returns (uint256); | ||
} |
Oops, something went wrong.