-
Notifications
You must be signed in to change notification settings - Fork 2
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
66fbe94
commit 9276c26
Showing
8 changed files
with
175 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { makeProposal } from "../../../../src/utils"; | ||
|
||
const TREASURY = "0x5A1a12F47FA7007C9e23cf5e025F3f5d3aC7d755"; | ||
|
||
const vip000 = () => { | ||
return makeProposal([ | ||
{ | ||
target: TREASURY, | ||
signature: "acceptOwnership()", | ||
params: [], | ||
}, | ||
]); | ||
}; | ||
export default vip000; |
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,86 @@ | ||
[ | ||
{ "inputs": [], "name": "ZeroAddressNotAllowed", "type": "error" }, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, | ||
{ "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } | ||
], | ||
"name": "OwnershipTransferStarted", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, | ||
{ "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } | ||
], | ||
"name": "OwnershipTransferred", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": false, "internalType": "uint256", "name": "withdrawAmount", "type": "uint256" }, | ||
{ "indexed": true, "internalType": "address", "name": "withdrawAddress", "type": "address" } | ||
], | ||
"name": "WithdrawTreasuryNative", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "tokenAddress", "type": "address" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "withdrawAmount", "type": "uint256" }, | ||
{ "indexed": true, "internalType": "address", "name": "withdrawAddress", "type": "address" } | ||
], | ||
"name": "WithdrawTreasuryToken", | ||
"type": "event" | ||
}, | ||
{ "stateMutability": "payable", "type": "fallback" }, | ||
{ "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ | ||
"inputs": [], | ||
"name": "owner", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "pendingOwner", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], | ||
"name": "transferOwnership", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "uint256", "name": "withdrawAmount", "type": "uint256" }, | ||
{ "internalType": "address payable", "name": "withdrawAddress", "type": "address" } | ||
], | ||
"name": "withdrawTreasuryNative", | ||
"outputs": [], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "tokenAddress", "type": "address" }, | ||
{ "internalType": "uint256", "name": "withdrawAmount", "type": "uint256" }, | ||
{ "internalType": "address", "name": "withdrawAddress", "type": "address" } | ||
], | ||
"name": "withdrawTreasuryToken", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ "stateMutability": "payable", "type": "receive" } | ||
] |
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 @@ | ||
import { expect } from "chai"; | ||
import { Contract } from "ethers"; | ||
import { ethers } from "hardhat"; | ||
|
||
import { NETWORK_ADDRESSES } from "../../../../src/networkAddresses"; | ||
import { forking, pretendExecutingVip } from "../../../../src/vip-framework"; | ||
import vip000 from "../../../proposals/opsepolia/vip-000"; | ||
import TREASURY_ABI from "./abi/treasury.json"; | ||
|
||
const TREASURY = "0x5A1a12F47FA7007C9e23cf5e025F3f5d3aC7d755"; | ||
|
||
forking(14147950, () => { | ||
let treasury: Contract; | ||
|
||
before(async () => { | ||
treasury = await ethers.getContractAt(TREASURY_ABI, TREASURY); | ||
await pretendExecutingVip(vip000()); | ||
}); | ||
|
||
describe("Post tx checks", () => { | ||
it("Should set owner to multisig", async () => { | ||
const owner = await treasury.owner(); | ||
expect(owner).equals(NETWORK_ADDRESSES.opsepolia.NORMAL_TIMELOCK); | ||
}); | ||
}); | ||
}); |
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