-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(PTokenV2): remove ERC777 & others deps entirely
- Loading branch information
Showing
31 changed files
with
1,353 additions
and
684 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
git@[email protected] | ||
[email protected] |
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
Submodule forge-std
updated
13 files
+1 −1 | package.json | |
+10 −1 | src/StdChains.sol | |
+2 −2 | src/StdCheats.sol | |
+9 −0 | src/StdInvariant.sol | |
+1 −1 | src/StdStorage.sol | |
+188 −58 | src/Vm.sol | |
+401 −382 | src/console.sol | |
+1 −1,555 | src/console2.sol | |
+1 −5 | src/mocks/MockERC721.sol | |
+693 −4 | src/safeconsole.sol | |
+5 −0 | test/StdChains.t.sol | |
+8 −0 | test/StdStorage.t.sol | |
+2 −2 | test/Vm.t.sol |
Submodule openzeppelin-contracts
updated
445 files
Submodule openzeppelin-contracts-upgradeable
updated
718 files
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,3 +1,4 @@ | ||
forge-std/=lib/forge-std/src/ | ||
@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts | ||
@openzeppelin/contracts-upgradeable-v3.4.2/=lib/openzeppelin-contracts-upgradeable-v3.4.2/contracts | ||
solidity-bytes-utils/contracts=lib/solidity-bytes-utils/contracts |
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,12 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.17; | ||
|
||
interface IOwnable { | ||
event OwnershipTransferred( | ||
address indexed previousOwner, | ||
address indexed newOwner | ||
); | ||
function owner() external returns (address); | ||
function renounceOwnership() external; | ||
function transferOwnership(address newOwner) external; | ||
} |
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,41 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.4 <0.9.0; | ||
|
||
interface IPTokenV2 { | ||
/** | ||
* @notice Returns if this token is local or not | ||
*/ | ||
function isLocal() external returns (bool); | ||
|
||
/** | ||
* @notice Returns the fees manager address | ||
*/ | ||
function getLockbox() external returns (address); | ||
|
||
/** | ||
* @notice Returns the PAM address | ||
* | ||
* @param adapter the relative adapter | ||
*/ | ||
function getPAM(address adapter) external returns (address); | ||
|
||
/** | ||
* @notice Returns the fees manager address | ||
*/ | ||
function getFeesManager() external returns (address); | ||
|
||
/** | ||
* @notice Set the fees manager address | ||
* @param newAddress new fees manager address | ||
*/ | ||
function setFeesManager(address newAddress) external; | ||
|
||
/** | ||
* @notice Set the new PAM address | ||
* @dev Be sure the API called by the adapter is respected | ||
* | ||
* @param adapterAddress the adapter address | ||
* @param pamAddress the new PAM address | ||
*/ | ||
function setPAM(address adapterAddress, address pamAddress) external; | ||
} |
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
8 changes: 4 additions & 4 deletions
8
solidity/src/ptoken-v1/ERC777GSN.sol → ...ty/src/ptoken-v1/ERC777GSNUpgradeable.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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.