Skip to content

Commit

Permalink
Merge pull request #441 from VenusProtocol/feat/VEN-2882-ownership-main
Browse files Browse the repository at this point in the history
[VEN-2882]: VIP to transfer the ownership of the contracts to Governance
  • Loading branch information
web3rover authored Dec 23, 2024
2 parents 88b77e7 + d68b324 commit 2395e37
Show file tree
Hide file tree
Showing 88 changed files with 32,139 additions and 0 deletions.
131 changes: 131 additions & 0 deletions multisig/proposals/basemainnet/vip-007/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
import { NETWORK_ADDRESSES } from "src/networkAddresses";
import { makeProposal } from "src/utils";

const { basemainnet } = NETWORK_ADDRESSES;
export const DEFAULT_PROXY_ADMIN = "0x7B06EF6b68648C61aFE0f715740fE3950B90746B";
export const PRIME = "0xD2e84244f1e9Fca03Ff024af35b8f9612D5d7a30";
export const PLP = "0xcB293EB385dEFF2CdeDa4E7060974BB90ee0B208";
export const PSR = "0x3565001d57c91062367C3792B74458e3c6eD910a";
export const COMPTROLLER_BEACON = "0x1b6dE1C670db291bcbF793320a42dbBD858E67aC";
export const VTOKEN_BEACON = "0x87a6476510368c4Bfb70d04A3B0e5a881eC7f0d1";
export const ACM = "0x9E6CeEfDC6183e4D0DF8092A9B90cDF659687daB";
export const POOL_REGISTRY = "0xeef902918DdeCD773D4B422aa1C6e1673EB9136F";
export const NATIVE_TOKEN_GATEWAY = "0x8e890ca3829c740895cdEACd4a3BE36ff9343643";

export const COMPTROLLERS = ["0x0C7973F9598AA62f9e03B94E92C967fD5437426C"];
export const XVS_STORE = "0x11b084Cfa559a82AAC0CcD159dBea27899c7955A";
export const XVS_BRIDGE_ADMIN_PROXY = "0x6303FEcee7161bF959d65df4Afb9e1ba5701f78e";
export const XVS = "0xebB7873213c8d1d9913D8eA39Aa12d74cB107995";

export const VTOKENS = [
"0x3cb752d175740043Ec463673094e06ACDa2F9a2e",
"0xEB8A79bD44cF4500943bf94a2b4434c95C008599",
"0x7bBd1005bB24Ec84705b04e1f2DfcCad533b6D72",
];
export const BOUND_VALIDATOR = "0x66dDE062D3DC1BB5223A0096EbB89395d1f11DB0";

const vip007 = () => {
return makeProposal([
{
target: DEFAULT_PROXY_ADMIN,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
{
target: PRIME,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
{
target: PLP,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
{
target: PSR,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
{
target: COMPTROLLER_BEACON,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
{
target: VTOKEN_BEACON,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
{
target: POOL_REGISTRY,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
...COMPTROLLERS.map(comptroller => {
return {
target: comptroller,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
};
}),
...VTOKENS.map(vToken => {
return {
target: vToken,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
};
}),
{
target: basemainnet.XVS_VAULT_PROXY,
signature: "_setPendingAdmin(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
{
target: XVS_STORE,
signature: "setPendingAdmin(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
{
target: XVS_BRIDGE_ADMIN_PROXY,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
{
target: XVS,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
{
target: basemainnet.RESILIENT_ORACLE,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
{
target: basemainnet.CHAINLINK_ORACLE,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
{
target: basemainnet.REDSTONE_ORACLE,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
{
target: BOUND_VALIDATOR,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
{
target: basemainnet.VTREASURY,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
{
target: NATIVE_TOKEN_GATEWAY,
signature: "transferOwnership(address)",
params: [basemainnet.NORMAL_TIMELOCK],
},
]);
};

export default vip007;
125 changes: 125 additions & 0 deletions multisig/proposals/basesepolia/vip-007/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
import { NETWORK_ADDRESSES } from "src/networkAddresses";
import { makeProposal } from "src/utils";

const { basesepolia } = NETWORK_ADDRESSES;
export const DEFAULT_PROXY_ADMIN = "0xB85dD19112c4BF1240FeD0f26E8D0b0576a82546";
export const PRIME = "0x15A1AC7fA14C5900Ba93853375d66b6bB6A83B50";
export const PLP = "0xb5BA66311C5f9A5C9d3CeE0183F5426DD694dE37";
export const PSR = "0x4Ae3D77Ece08Ec3E5f5842B195f746bd3bCb8d73";
export const COMPTROLLER_BEACON = "0x5c06f1FBCE587f64752c037cA83262F08d9Cb648";
export const VTOKEN_BEACON = "0x72F924aeE730395576764422C277c964f558351D";
export const ACM = "0x724138223D8F76b519fdE715f60124E7Ce51e051";
export const POOL_REGISTRY = "0xCa330282BEeb07a81963336d0bf8f5f34317916c";

export const COMPTROLLERS = ["0x272795dd6c5355CF25765F36043F34014454Eb5b"];
export const XVS_STORE = "0x059f1eA3973738C649d63bF4dA18221ecA418cDC";
export const XVS_BRIDGE_ADMIN_PROXY = "0xE431E82d8fFfd81E7c082BeC7Fe2C306f5c988aD";
export const XVS = "0xE657EDb5579B82135a274E85187927C42E38C021";

export const VTOKENS = [
"0xA31D67c056Aadc2501535f2776bF1157904f810e",
"0x436E5A07F58AAA86277e8b992bC3e596eC423d09",
"0x776f14D624aBdAfa912d6Cd0864976DdaF5Ca4a7",
];
export const BOUND_VALIDATOR = "0xC76284488E57554A457A75a8b166fB2ADAB430dB";

const vip007 = () => {
return makeProposal([
{
target: DEFAULT_PROXY_ADMIN,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
{
target: PRIME,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
{
target: PLP,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
{
target: PSR,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
{
target: COMPTROLLER_BEACON,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
{
target: VTOKEN_BEACON,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
{
target: POOL_REGISTRY,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
...COMPTROLLERS.map(comptroller => {
return {
target: comptroller,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
};
}),
...VTOKENS.map(comptroller => {
return {
target: comptroller,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
};
}),
{
target: basesepolia.XVS_VAULT_PROXY,
signature: "_setPendingAdmin(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
{
target: XVS_STORE,
signature: "setPendingAdmin(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
{
target: XVS_BRIDGE_ADMIN_PROXY,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
{
target: XVS,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
{
target: basesepolia.RESILIENT_ORACLE,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
{
target: basesepolia.CHAINLINK_ORACLE,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
{
target: basesepolia.REDSTONE_ORACLE,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
{
target: BOUND_VALIDATOR,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
{
target: basesepolia.VTREASURY,
signature: "transferOwnership(address)",
params: [basesepolia.NORMAL_TIMELOCK],
},
]);
};

export default vip007;
Loading

0 comments on commit 2395e37

Please sign in to comment.