-
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.
Merge pull request #425 from VenusProtocol/feat/ven-2877
[VEN-2877] Deploy XVS Vault and XVS Store on Base Sepolia
- Loading branch information
Showing
73 changed files
with
41,207 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import { NETWORK_ADDRESSES } from "src/networkAddresses"; | ||
import { makeProposal } from "src/utils"; | ||
|
||
const { basemainnet } = NETWORK_ADDRESSES; | ||
|
||
export const XVS_STORE = "0x11b084Cfa559a82AAC0CcD159dBea27899c7955A"; | ||
export const ACM = "0x9E6CeEfDC6183e4D0DF8092A9B90cDF659687daB"; | ||
|
||
const vip002 = () => { | ||
return makeProposal([ | ||
{ | ||
target: basemainnet.XVS_VAULT_PROXY, | ||
signature: "_acceptAdmin()", | ||
params: [], | ||
}, | ||
|
||
{ | ||
target: XVS_STORE, | ||
signature: "acceptAdmin()", | ||
params: [], | ||
}, | ||
|
||
{ | ||
target: ACM, | ||
signature: "giveCallPermission(address,string,address)", | ||
params: [basemainnet.XVS_VAULT_PROXY, "pause()", basemainnet.GUARDIAN], | ||
}, | ||
|
||
{ | ||
target: ACM, | ||
signature: "giveCallPermission(address,string,address)", | ||
params: [basemainnet.XVS_VAULT_PROXY, "resume()", basemainnet.GUARDIAN], | ||
}, | ||
|
||
{ | ||
target: ACM, | ||
signature: "giveCallPermission(address,string,address)", | ||
params: [basemainnet.XVS_VAULT_PROXY, "add(address,uint256,address,uint256,uint256)", basemainnet.GUARDIAN], | ||
}, | ||
|
||
{ | ||
target: ACM, | ||
signature: "giveCallPermission(address,string,address)", | ||
params: [basemainnet.XVS_VAULT_PROXY, "set(address,uint256,uint256)", basemainnet.GUARDIAN], | ||
}, | ||
|
||
{ | ||
target: ACM, | ||
signature: "giveCallPermission(address,string,address)", | ||
params: [basemainnet.XVS_VAULT_PROXY, "setRewardAmountPerBlockOrSecond(address,uint256)", basemainnet.GUARDIAN], // func name changed from setRewardAmountPerBlock to setRewardAmountPerBlockOrSecond | ||
}, | ||
|
||
{ | ||
target: ACM, | ||
signature: "giveCallPermission(address,string,address)", | ||
params: [ | ||
basemainnet.XVS_VAULT_PROXY, | ||
"setWithdrawalLockingPeriod(address,uint256,uint256)", | ||
basemainnet.GUARDIAN, | ||
], | ||
}, | ||
|
||
{ | ||
target: basemainnet.XVS_VAULT_PROXY, | ||
signature: "add(address,uint256,address,uint256,uint256)", | ||
params: [basemainnet.XVS, 100, basemainnet.XVS, "0", 604800], | ||
}, | ||
{ | ||
target: basemainnet.XVS_VAULT_PROXY, | ||
signature: "pause()", | ||
params: [], | ||
}, | ||
]); | ||
}; | ||
|
||
export default vip002; |
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,50 @@ | ||
import { NETWORK_ADDRESSES } from "src/networkAddresses"; | ||
import { makeProposal } from "src/utils"; | ||
|
||
const { basemainnet } = NETWORK_ADDRESSES; | ||
|
||
export const ACM = "0x9E6CeEfDC6183e4D0DF8092A9B90cDF659687daB"; | ||
export const PSR = "0x3565001d57c91062367C3792B74458e3c6eD910a"; | ||
export const NATIVE_TOKEN_GATEWAY_CORE_POOL = "0x8e890ca3829c740895cdEACd4a3BE36ff9343643"; | ||
|
||
const vip003 = () => { | ||
return makeProposal([ | ||
{ | ||
target: PSR, | ||
signature: "acceptOwnership()", | ||
params: [], | ||
}, | ||
{ | ||
target: ACM, | ||
signature: "giveCallPermission(address,string,address)", | ||
params: [PSR, "addOrUpdateDistributionConfigs(DistributionConfig[])", basemainnet.GUARDIAN], | ||
}, | ||
{ | ||
target: ACM, | ||
signature: "giveCallPermission(address,string,address)", | ||
params: [PSR, "removeDistributionConfig(Schema,address)", basemainnet.GUARDIAN], | ||
}, | ||
{ | ||
target: PSR, | ||
signature: "addOrUpdateDistributionConfigs((uint8,uint16,address)[])", | ||
params: [ | ||
[ | ||
[0, 10000, basemainnet.VTREASURY], | ||
[1, 10000, basemainnet.VTREASURY], | ||
], | ||
], | ||
}, | ||
{ | ||
target: PSR, | ||
signature: "setPoolRegistry(address)", | ||
params: [basemainnet.POOL_REGISTRY], | ||
}, | ||
{ | ||
target: NATIVE_TOKEN_GATEWAY_CORE_POOL, | ||
signature: "acceptOwnership()", | ||
params: [], | ||
}, | ||
]); | ||
}; | ||
|
||
export default vip003; |
Oops, something went wrong.