-
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.
* Audit part2 * clean * fix tests * deploy & verify * fix ci * add log and inf * fix loss of precision in votes * fmt * verify * deposit nft metadata * fix * fix * defined collator sorting order * redeploy * fix ci * fix tests
- Loading branch information
Showing
18 changed files
with
273 additions
and
131 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "Deposit NFT", | ||
"description": "Deposit NFT is generated through Deposit contract collateralized RING, It is a voucher for Deposited RING.", | ||
"image": "ipfs://bafybeih57kauz6npkbafh2x3cv3hyljcakdccuckb4huwnwxxxrtqr5pqe" | ||
} |
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,26 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {Script} from "forge-std/Script.sol"; | ||
import {safeconsole} from "forge-std/safeconsole.sol"; | ||
import {Upgrades} from "openzeppelin-foundry-upgrades/Upgrades.sol"; | ||
import {Core} from "openzeppelin-foundry-upgrades/internal/Core.sol"; | ||
|
||
import {CollatorStakingHub} from "../src/collator/CollatorStakingHub.sol"; | ||
import {Deposit} from "../src/deposit/Deposit.sol"; | ||
|
||
contract MigrateScript is Script { | ||
address proxy = 0xDeC9cD45e921F2AedE72f694743265af37d47Fa7; | ||
|
||
function run() public { | ||
vm.startBroadcast(); | ||
|
||
// address logic = address(new CollatorStakingHub()); | ||
address logic = address(new Deposit()); | ||
// Core.upgradeProxyTo(proxy, logic, ""); | ||
// require(logic == Upgrades.getImplementationAddress(proxy)); | ||
safeconsole.log("logic: ", logic); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
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
Oops, something went wrong.