-
Notifications
You must be signed in to change notification settings - Fork 170
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
1 parent
5e881bd
commit bd6c675
Showing
29 changed files
with
885 additions
and
24 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
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
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,5 @@ | ||
{ | ||
"rules": { | ||
"explicit-types": ["error", "explicit"] | ||
} | ||
} |
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,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.4; | ||
|
||
import {ERC20Burnable} from '@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol'; | ||
|
||
contract Foo1 is ERC20Burnable { | ||
uint public hola; | ||
uint public hola2; | ||
int public constant hola3 = 2; | ||
ufixed hola4; | ||
fixed internal hola5; | ||
|
||
constructor() ERC20('MyToken', 'MTK') {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableTrue() public payable {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableFalse() public {} | ||
|
||
function zarasa() {} | ||
} |
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,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.4; | ||
|
||
import {ERC20Burnable} from '@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol'; | ||
|
||
contract Foo1 is ERC20Burnable { | ||
uint256 public hola; | ||
uint256 public hola2; | ||
int256 public constant hola3 = 2; | ||
ufixed128x18 hola4; | ||
fixed128x18 internal hola5; | ||
|
||
constructor() ERC20('MyToken', 'MTK') {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableTrue() public payable {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableFalse() public {} | ||
|
||
function zarasa() {} | ||
} |
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,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.4; | ||
|
||
import {ERC20Burnable} from '@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol'; | ||
|
||
contract Foo1 is ERC20Burnable { | ||
uint public hola; | ||
uint public hola2; | ||
int public constant hola3 = 2; | ||
ufixed hola4; | ||
fixed internal hola5; | ||
|
||
constructor() ERC20('MyToken', 'MTK') {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableTrue() public payable {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableFalse() public {} | ||
|
||
function zarasa() {} | ||
} |
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,83 @@ | ||
pragma solidity 0.8.0; | ||
|
||
library libraryName { | ||
uint256 internal lzarasa1; | ||
uint256 internal lzarasa2 = 2; | ||
uint256 internal _lzarasa3; | ||
uint256 private lzarasa4; | ||
uint256 private lzarasa5 = 5; | ||
uint256 private _lzarasa6; | ||
|
||
uint256 public _lzarasa7; | ||
uint256 public _lzarasa8 = 8; | ||
uint256 public lzarasa9; | ||
|
||
function fofo() public {} | ||
function _fofo() public {} | ||
function _fofo() internal {} | ||
function fofo() internal {} | ||
} | ||
|
||
contract Foo1 { | ||
uint256 internal zarasa1; | ||
uint256 internal zarasa2 = 2; | ||
uint256 internal _zarasa3; | ||
uint256 private zarasa4; | ||
uint256 private zarasa5 = 5; | ||
uint256 private _zarasa6; | ||
|
||
uint256 public _zarasa7; | ||
uint256 public _zarasa8 = 8; | ||
uint256 public zarasa9; | ||
|
||
address payable internal constant zarasa10 = '0x0'; | ||
address public constant _zarasa11 = '0x0'; | ||
uint256 public immutable _zarasa12 = 2; | ||
uint256 _zarasa13; | ||
uint256 zarasa14; | ||
|
||
mapping(address => uint256) internal zarMapping1; | ||
mapping(address => uint256) public _zarMapping2; | ||
mapping(address => uint256) internal _zarMapping3; | ||
mapping(address => uint256) public zarMapping4; | ||
|
||
function fooA(uint bar) internal payable onlyOwner returns (uint256 barA) { | ||
uint256 zarasaFunc; | ||
} | ||
|
||
function fooB(uint bar) private onlyOwner returns (uint256 _barB) { | ||
uint256 zarasaFunc; | ||
} | ||
|
||
function fooC(uint bar) private onlyOwner returns (uint256 _barC) { | ||
uint256 zarasaFunc; | ||
} | ||
|
||
function fooD(uint bar) external onlyOwner { | ||
uint256 zarasaFunc; | ||
} | ||
|
||
function fooE(uint bar) public onlyOwner { | ||
uint256 zarasaFunc; | ||
} | ||
|
||
function fooF(uint bar) onlyOwner returns (uint256 _barF) { | ||
uint256 zarasaFunc; | ||
} | ||
|
||
function fooG(uint bar) onlyOwner { | ||
uint256 zarasaFunc; | ||
} | ||
|
||
function _fooH(uint bar) external onlyOwner { | ||
uint256 zarasaFunc; | ||
} | ||
|
||
function _fooI(uint bar) public onlyOwner { | ||
uint256 zarasaFunc; | ||
} | ||
|
||
function _fooJ(uint bar) onlyOwner returns (uint256 barJ) { | ||
uint256 zarasaFunc; | ||
} | ||
} |
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,5 @@ | ||
{ | ||
"rules": { | ||
"explicit-types": ["error", "explicit"] | ||
} | ||
} |
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,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.4; | ||
|
||
import {ERC20Burnable} from '@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol'; | ||
|
||
contract Foo1 is ERC20Burnable { | ||
uint public hola; | ||
uint public hola2; | ||
int public constant hola3 = 2; | ||
ufixed hola4; | ||
fixed internal hola5; | ||
|
||
constructor() ERC20('MyToken', 'MTK') {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableTrue() public payable {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableFalse() public {} | ||
|
||
function zarasa() {} | ||
} |
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,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.4; | ||
|
||
import {ERC20Burnable} from '@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol'; | ||
|
||
contract Foo1 is ERC20Burnable { | ||
uint256 public hola; | ||
uint256 public hola2; | ||
int256 public constant hola3 = 2; | ||
ufixed128x18 hola4; | ||
fixed128x18 internal hola5; | ||
|
||
constructor() ERC20('MyToken', 'MTK') {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableTrue() public payable {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableFalse() public {} | ||
|
||
function zarasa() {} | ||
} |
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,22 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity ^0.8.4; | ||
|
||
import {ERC20Burnable} from '@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol'; | ||
|
||
contract Foo1 is ERC20Burnable { | ||
uint public hola; | ||
uint public hola2; | ||
int public constant hola3 = 2; | ||
ufixed hola4; | ||
fixed internal hola5; | ||
|
||
constructor() ERC20('MyToken', 'MTK') {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableTrue() public payable {} | ||
|
||
// solhint-disable no-empty-blocks | ||
function payableFalse() public {} | ||
|
||
function zarasa() {} | ||
} |
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,5 @@ | ||
{ | ||
"rules": { | ||
"no-console": "error" | ||
} | ||
} |
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,37 @@ | ||
pragma solidity 0.8.0; | ||
|
||
import 'hardhat/console.sol'; | ||
import 'forge-std/console.sol'; | ||
import 'forge-std/console2.sol'; | ||
import 'forge-std/xxxxx.sol'; | ||
|
||
contract Foo1 { | ||
Console[] public consoleTest; | ||
Console[] public console; | ||
|
||
struct Console { | ||
uint256 one; | ||
uint256 two; | ||
} | ||
|
||
function a() public { | ||
console.log('test'); | ||
// comment | ||
console.logString('test logString'); | ||
uint256 declaration; | ||
console.logBytes12('test logBytes12'); | ||
} | ||
|
||
function b() public { | ||
console2.log('test console 2'); | ||
// comment | ||
console.logString('test logString'); | ||
uint256 declaration; | ||
console.logBytes12('test'); | ||
} | ||
|
||
function c() external { | ||
consoleTest.push(0, 0); | ||
console.push = (1, 1); | ||
} | ||
} |
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,37 @@ | ||
pragma solidity 0.8.0; | ||
|
||
|
||
|
||
|
||
import 'forge-std/xxxxx.sol'; | ||
|
||
contract Foo1 { | ||
Console[] public consoleTest; | ||
Console[] public console; | ||
|
||
struct Console { | ||
uint256 one; | ||
uint256 two; | ||
} | ||
|
||
function a() public { | ||
|
||
// comment | ||
|
||
uint256 declaration; | ||
|
||
} | ||
|
||
function b() public { | ||
|
||
// comment | ||
|
||
uint256 declaration; | ||
|
||
} | ||
|
||
function c() external { | ||
consoleTest.push(0, 0); | ||
console.push = (1, 1); | ||
} | ||
} |
Oops, something went wrong.