generated from windingtree/smartcontracts-template-hardhat
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #23 from windingtree/feat/improve-stage-setup
feat: 🎸 New Sokol deployment
- Loading branch information
Showing
82 changed files
with
8,979 additions
and
19,404 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 |
---|---|---|
|
@@ -21,6 +21,7 @@ coverage* | |
inheritance-graph.dot | ||
docs | ||
dist | ||
temp | ||
|
||
# dotenv | ||
.env* | ||
|
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,19 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity ^0.8.13; | ||
|
||
import '@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol'; | ||
import './MockERC20Dec18.sol'; | ||
|
||
/// @custom:security-contact security@windingtree.com | ||
contract MockERC20Dec18Permit is MockERC20Dec18, ERC20Permit { | ||
|
||
constructor(string memory name, string memory symbol) MockERC20Dec18(name, symbol) ERC20Permit(name) {} | ||
|
||
function _beforeTokenTransfer( | ||
address from, | ||
address to, | ||
uint256 amount | ||
) internal override(ERC20, MockERC20Dec18) whenNotPaused { | ||
super._beforeTokenTransfer(from, to, amount); | ||
} | ||
} |
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,14 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity ^0.8.13; | ||
|
||
import './MockERC20Dec18.sol'; | ||
|
||
/// @custom:security-contact security@windingtree.com | ||
contract MockERC20Dec6 is MockERC20Dec18 { | ||
|
||
constructor(string memory name, string memory symbol) MockERC20Dec18(name, symbol) {} | ||
|
||
function decimals() public pure override(ERC20) returns (uint8) { | ||
return 6; | ||
} | ||
} |
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,14 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity ^0.8.13; | ||
|
||
import './MockERC20Dec18Permit.sol'; | ||
|
||
/// @custom:security-contact security@windingtree.com | ||
contract MockERC20Dec6Permit is MockERC20Dec18Permit { | ||
|
||
constructor(string memory name, string memory symbol) MockERC20Dec18Permit(name, symbol) {} | ||
|
||
function decimals() public pure override(ERC20) returns (uint8) { | ||
return 6; | ||
} | ||
} |
11 changes: 3 additions & 8 deletions
11
contracts/test/MockWrappedERC20.sol → contracts/test/MockWrappedERC20Dec18.sol
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
24 changes: 24 additions & 0 deletions
24
contracts/upgradeable/test/MockERC20Dec18PermitUpgradeable.sol
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,24 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity ^0.8.13; | ||
|
||
import '@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol'; | ||
import './MockERC20Dec18Upgradeable.sol'; | ||
|
||
/// @custom:security-contact security@windingtree.com | ||
contract MockERC20Dec18PermitUpgradeable is | ||
MockERC20Dec18Upgradeable, | ||
ERC20PermitUpgradeable | ||
{ | ||
function initialize(string memory name, string memory symbol) public override initializer { | ||
super.initialize(name, symbol); | ||
__ERC20Permit_init(name); | ||
} | ||
|
||
function _beforeTokenTransfer( | ||
address from, | ||
address to, | ||
uint256 amount | ||
) internal override(ERC20Upgradeable, MockERC20Dec18Upgradeable) whenNotPaused { | ||
super._beforeTokenTransfer(from, to, amount); | ||
} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
contracts/upgradeable/test/MockERC20Dec6PermitUpgradeable.sol
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,13 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity ^0.8.13; | ||
|
||
import '@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol'; | ||
import './MockERC20Dec18PermitUpgradeable.sol'; | ||
|
||
/// @custom:security-contact security@windingtree.com | ||
contract MockERC20Dec6PermitUpgradeable is MockERC20Dec18PermitUpgradeable | ||
{ | ||
function decimals() public pure override returns (uint8) { | ||
return 6; | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
contracts/upgradeable/test/MockWrappedERC20Dec18Upgradeable.sol
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,36 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity ^0.8.13; | ||
|
||
import './MockERC20Dec18Upgradeable.sol'; | ||
|
||
/// @custom:security-contact security@windingtree.com | ||
contract MockWrappedERC20Dec18Upgradeable is MockERC20Dec18Upgradeable | ||
{ | ||
event Deposit(address indexed dst, uint256 wad); | ||
event Withdrawal(address indexed src, uint256 wad); | ||
|
||
receive() external payable { | ||
deposit(); | ||
} | ||
|
||
function deposit() public payable { | ||
_mint(msg.sender, msg.value); | ||
emit Deposit(msg.sender, msg.value); | ||
} | ||
|
||
function withdraw(uint256 wad) public payable { | ||
require(balanceOf(msg.sender) >= wad); | ||
_burn(msg.sender, wad); | ||
address payable sender = payable(msg.sender); | ||
sender.transfer(wad); | ||
emit Withdrawal(msg.sender, wad); | ||
} | ||
|
||
function _beforeTokenTransfer( | ||
address from, | ||
address to, | ||
uint256 amount | ||
) internal override whenNotPaused { | ||
super._beforeTokenTransfer(from, to, amount); | ||
} | ||
} |
75 changes: 0 additions & 75 deletions
75
contracts/upgradeable/test/MockWrappedERC20Upgradeable.sol
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.