-
Notifications
You must be signed in to change notification settings - Fork 10
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
1628512
commit 88606fa
Showing
12 changed files
with
202 additions
and
3 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 |
---|---|---|
|
@@ -7,6 +7,7 @@ artifacts | |
bin | ||
cache | ||
contracts | ||
contracts-exposed | ||
docs | ||
node_modules | ||
soldata | ||
|
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,7 @@ docs | |
node_modules | ||
soldata | ||
blockscout | ||
contracts-exposed | ||
|
||
gasReporterOutput.json | ||
|
||
|
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ node_modules | |
scripts | ||
soldata | ||
blockscout | ||
contracts-exposed | ||
|
||
coverage* | ||
*.js | ||
|
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,34 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
|
||
pragma solidity >=0.6.0; | ||
|
||
import "../contracts/Counters.sol"; | ||
|
||
contract $Counters { | ||
bytes32 public constant __hh_exposed_bytecode_marker = "hardhat-exposed"; | ||
|
||
constructor() payable { | ||
} | ||
|
||
function $current(Counters.Counter counter) external pure returns (uint256 ret0) { | ||
(ret0) = Counters.current(counter); | ||
} | ||
|
||
function $increment(Counters.Counter counter) external pure returns (Counters.Counter ret0) { | ||
(ret0) = Counters.increment(counter); | ||
} | ||
|
||
function $decrement(Counters.Counter counter) external pure returns (Counters.Counter ret0) { | ||
(ret0) = Counters.decrement(counter); | ||
} | ||
|
||
function $toUint256(Counters.Counter counter) external pure returns (uint256 ret0) { | ||
(ret0) = Counters.toUint256(counter); | ||
} | ||
|
||
function $toCounter(uint256 counter) external pure returns (Counters.Counter ret0) { | ||
(ret0) = Counters.toCounter(counter); | ||
} | ||
|
||
receive() external payable {} | ||
} |
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,59 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
|
||
pragma solidity >=0.6.0; | ||
|
||
import "../contracts/FooToken.sol"; | ||
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | ||
import "@openzeppelin/contracts/interfaces/draft-IERC6093.sol"; | ||
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; | ||
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | ||
import "@openzeppelin/contracts/utils/Context.sol"; | ||
|
||
contract $FooToken is FooToken { | ||
bytes32 public constant __hh_exposed_bytecode_marker = "hardhat-exposed"; | ||
|
||
constructor(uint256 initialSupply) FooToken(initialSupply) payable { | ||
} | ||
|
||
function $_transfer(address from,address to,uint256 value) external { | ||
super._transfer(from,to,value); | ||
} | ||
|
||
function $_update(address from,address to,uint256 value) external { | ||
super._update(from,to,value); | ||
} | ||
|
||
function $_mint(address account,uint256 value) external { | ||
super._mint(account,value); | ||
} | ||
|
||
function $_burn(address account,uint256 value) external { | ||
super._burn(account,value); | ||
} | ||
|
||
function $_approve(address owner,address spender,uint256 value) external { | ||
super._approve(owner,spender,value); | ||
} | ||
|
||
function $_approve(address owner,address spender,uint256 value,bool emitEvent) external { | ||
super._approve(owner,spender,value,emitEvent); | ||
} | ||
|
||
function $_spendAllowance(address owner,address spender,uint256 value) external { | ||
super._spendAllowance(owner,spender,value); | ||
} | ||
|
||
function $_msgSender() external view returns (address ret0) { | ||
(ret0) = super._msgSender(); | ||
} | ||
|
||
function $_msgData() external view returns (bytes memory ret0) { | ||
(ret0) = super._msgData(); | ||
} | ||
|
||
function $_contextSuffixLength() external view returns (uint256 ret0) { | ||
(ret0) = super._contextSuffixLength(); | ||
} | ||
|
||
receive() external payable {} | ||
} |
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,44 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
|
||
pragma solidity >=0.6.0; | ||
|
||
import "../contracts/Timers.sol"; | ||
|
||
contract $Timers { | ||
bytes32 public constant __hh_exposed_bytecode_marker = "hardhat-exposed"; | ||
|
||
mapping(uint256 => Timers.BlockNumber) internal $v_Timers_BlockNumber; | ||
|
||
constructor() payable { | ||
} | ||
|
||
function $get(Timers.BlockNumber calldata timer) external pure returns (uint256 ret0) { | ||
(ret0) = Timers.get(timer); | ||
} | ||
|
||
function $set(uint256 timer,uint256 timestamp) external payable { | ||
Timers.set($v_Timers_BlockNumber[timer],timestamp); | ||
} | ||
|
||
function $reset(uint256 timer) external payable { | ||
Timers.reset($v_Timers_BlockNumber[timer]); | ||
} | ||
|
||
function $isUnset(Timers.BlockNumber calldata timer) external pure returns (bool ret0) { | ||
(ret0) = Timers.isUnset(timer); | ||
} | ||
|
||
function $isStarted(Timers.BlockNumber calldata timer) external pure returns (bool ret0) { | ||
(ret0) = Timers.isStarted(timer); | ||
} | ||
|
||
function $isPending(Timers.BlockNumber calldata timer) external view returns (bool ret0) { | ||
(ret0) = Timers.isPending(timer); | ||
} | ||
|
||
function $isExpired(Timers.BlockNumber calldata timer) external view returns (bool ret0) { | ||
(ret0) = Timers.isExpired(timer); | ||
} | ||
|
||
receive() external payable {} | ||
} |
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,29 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
|
||
pragma solidity >=0.6.0; | ||
|
||
import "../contracts/Workshop.sol"; | ||
import "@openzeppelin/contracts/utils/Context.sol"; | ||
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | ||
import "../contracts/Counters.sol"; | ||
|
||
contract $Workshop is Workshop { | ||
bytes32 public constant __hh_exposed_bytecode_marker = "hardhat-exposed"; | ||
|
||
constructor(address tokenAddress) Workshop(tokenAddress) payable { | ||
} | ||
|
||
function $_msgSender() external view returns (address ret0) { | ||
(ret0) = super._msgSender(); | ||
} | ||
|
||
function $_msgData() external view returns (bytes memory ret0) { | ||
(ret0) = super._msgData(); | ||
} | ||
|
||
function $_contextSuffixLength() external view returns (uint256 ret0) { | ||
(ret0) = super._contextSuffixLength(); | ||
} | ||
|
||
receive() external payable {} | ||
} |
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