generated from FraxFinance/frax-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Deprecate native bridging from Fraxtal #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pegahcarter
wants to merge
14
commits into
frxusd-upgrade
Choose a base branch
from
feat/v1.1.0
base: frxusd-upgrade
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c78e09a
feat: ERC20PermitPermissionedNonBridgeableMintable
pegahcarter c83b708
add: fpis
pegahcarter 0375b51
revert: 1.0.0
pegahcarter 805bb81
fix: compile
pegahcarter 5928133
Merge branch 'frxusd-upgrade' into feat/v1.1.0
pegahcarter 59a73c9
fix: zero-address owner
pegahcarter ed07ce3
feat: deploy script
pegahcarter 232daef
fix: enable deprecate call
pegahcarter 79758d5
test: deprecate native bridging
pegahcarter 3635812
Update src/script/fraxtal/2025-12-02-deprecate-nativing-bridging/Depr…
pegahcarter f3ff984
Update src/test/2025-12-02-deprecate-native-bridging/TestDeprecateNat…
pegahcarter b97cc2d
Initial plan
Copilot 8f2399a
Fix typo: rename nativing-bridging to native-bridging
Copilot 9d05cbd
Merge pull request #14 from FraxFinance/copilot/sub-pr-10
pegahcarter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,25 +1,7 @@ | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| import { ERC20PermitPermissionedOptiMintable } from "src/contracts/fraxtal/shared/ERC20PermitPermissionedOptiMintable.sol"; | ||
| import { ERC20PermitPermissionedNonBridgeableMintable } from "src/contracts/fraxtal/shared/ERC20PermitPermissionedNonBridgeableMintable.sol"; | ||
|
|
||
| contract FPI is ERC20PermitPermissionedOptiMintable { | ||
| /// @param _creator_address The contract creator | ||
| /// @param _timelock_address The timelock | ||
| /// @param _bridge Address of the L2 standard bridge | ||
| /// @param _remoteToken Address of the corresponding L1 token | ||
| constructor( | ||
| address _creator_address, | ||
| address _timelock_address, | ||
| address _bridge, | ||
| address _remoteToken | ||
| ) | ||
| ERC20PermitPermissionedOptiMintable( | ||
| _creator_address, | ||
| _timelock_address, | ||
| _bridge, | ||
| _remoteToken, | ||
| "Frax Price Index", | ||
| "FPI" | ||
| ) | ||
| {} | ||
| contract FPI is ERC20PermitPermissionedNonBridgeableMintable { | ||
| constructor() ERC20PermitPermissionedNonBridgeableMintable("Frax Price Index", "FPI") {} | ||
| } |
This file contains hidden or 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,25 @@ | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| import { ERC20PermitPermissionedOptiMintable } from "src/contracts/fraxtal/shared/ERC20PermitPermissionedOptiMintable.sol"; | ||
|
|
||
| contract FPIS is ERC20PermitPermissionedOptiMintable { | ||
| /// @param _creator_address Address of the contract creator | ||
| /// @param _timelock_address Address of the timelock | ||
| /// @param _bridge Address of the L2 standard bridge | ||
| /// @param _remoteToken Address of the corresponding L1 token | ||
| constructor( | ||
| address _creator_address, | ||
| address _timelock_address, | ||
| address _bridge, | ||
| address _remoteToken | ||
| ) | ||
| ERC20PermitPermissionedOptiMintable( | ||
| _creator_address, | ||
| _timelock_address, | ||
| _bridge, | ||
| _remoteToken, | ||
| "Frax Price Index Share", | ||
| "FPIS" | ||
| ) | ||
| {} | ||
| } |
This file contains hidden or 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,7 @@ | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| import { IERC20PermitPermissionedOptiMintable } from "src/contracts/fraxtal/shared/interfaces/IERC20PermitPermissionedOptiMintable.sol"; | ||
|
|
||
| /// @title IFPIS | ||
| /// @notice Interface for the FPIS contract | ||
| interface IFPIS is IERC20PermitPermissionedOptiMintable {} | ||
This file contains hidden or 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,25 +1,7 @@ | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| import { ERC20PermitPermissionedOptiMintable } from "src/contracts/fraxtal/shared/ERC20PermitPermissionedOptiMintable.sol"; | ||
| import { ERC20PermitPermissionedNonBridgeableMintable } from "src/contracts/fraxtal/shared/ERC20PermitPermissionedNonBridgeableMintable.sol"; | ||
|
|
||
| contract FrxBTC is ERC20PermitPermissionedOptiMintable { | ||
| /// @param _creator_address The contract creator | ||
| /// @param _timelock_address The timelock | ||
| /// @param _bridge Address of the L2 standard bridge | ||
| /// @param _remoteToken Address of the corresponding L1 token | ||
| constructor( | ||
| address _creator_address, | ||
| address _timelock_address, | ||
| address _bridge, | ||
| address _remoteToken | ||
| ) | ||
| ERC20PermitPermissionedOptiMintable( | ||
| _creator_address, | ||
| _timelock_address, | ||
| _bridge, | ||
| _remoteToken, | ||
| "Frax Bitcoin", | ||
| "frxBTC" | ||
| ) | ||
| {} | ||
| contract FrxBTC is ERC20PermitPermissionedNonBridgeableMintable { | ||
| constructor() ERC20PermitPermissionedNonBridgeableMintable("Frax Bitcoin", "frxBTC") {} | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,26 +1,8 @@ | ||
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
| pragma solidity >=0.8.0; | ||
|
|
||
| import { ERC20PermitPermissionedOptiMintable } from "src/contracts/fraxtal/shared/ERC20PermitPermissionedOptiMintable.sol"; | ||
| import { ERC20PermitPermissionedNonBridgeableMintable } from "src/contracts/fraxtal/shared/ERC20PermitPermissionedNonBridgeableMintable.sol"; | ||
|
|
||
| contract SfrxETH is ERC20PermitPermissionedOptiMintable { | ||
| /// @param _creator_address The contract creator | ||
| /// @param _timelock_address The timelock | ||
| /// @param _bridge Address of the L2 standard bridge | ||
| /// @param _remoteToken Address of the corresponding L1 token | ||
| constructor( | ||
| address _creator_address, | ||
| address _timelock_address, | ||
| address _bridge, | ||
| address _remoteToken | ||
| ) | ||
| ERC20PermitPermissionedOptiMintable( | ||
| _creator_address, | ||
| _timelock_address, | ||
| _bridge, | ||
| _remoteToken, | ||
| "Staked Frax Ether", | ||
| "sfrxETH" | ||
| ) | ||
| {} | ||
| contract SfrxETH is ERC20PermitPermissionedNonBridgeableMintable { | ||
| constructor() ERC20PermitPermissionedNonBridgeableMintable("Staked Frax Ether", "sfrxETH") {} | ||
| } |
This file contains hidden or 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 hidden or 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,29 +1,11 @@ | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| import { ERC20PermitPermissionedOptiMintable } from "src/contracts/fraxtal/shared/ERC20PermitPermissionedOptiMintable.sol"; | ||
| import { ERC20PermitPermissionedNonBridgeableMintable } from "src/contracts/fraxtal/shared/ERC20PermitPermissionedNonBridgeableMintable.sol"; | ||
|
|
||
| contract SfrxUSD is ERC20PermitPermissionedOptiMintable { | ||
| contract SfrxUSD is ERC20PermitPermissionedNonBridgeableMintable { | ||
| function version() public pure virtual override returns (string memory) { | ||
| return "1.0.0"; | ||
| return "1.1.0"; | ||
| } | ||
|
|
||
| /// @param _creator_address The contract creator | ||
| /// @param _timelock_address The timelock | ||
| /// @param _bridge Address of the L2 standard bridge | ||
| /// @param _remoteToken Address of the corresponding L1 token | ||
| constructor( | ||
| address _creator_address, | ||
| address _timelock_address, | ||
| address _bridge, | ||
| address _remoteToken | ||
| ) | ||
| ERC20PermitPermissionedOptiMintable( | ||
| _creator_address, | ||
| _timelock_address, | ||
| _bridge, | ||
| _remoteToken, | ||
| "Staked Frax USD", | ||
| "sfrxUSD" | ||
| ) | ||
| {} | ||
| constructor() ERC20PermitPermissionedNonBridgeableMintable("Staked Frax USD", "sfrxUSD") {} | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.