Skip to content

Commit

Permalink
Add demo deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
hieronx committed Jul 30, 2024
1 parent 1f92ebd commit a5c534b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
32 changes: 32 additions & 0 deletions deployments/testnet/ethereum-sepolia-demo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"chainId": 11155111,
"rpcUrl": "https://sepolia.infura.io/v3/ed5e0e19bcbc427cbf8f661736d44516",
"config": {
"commitHash": "acc5fabfff7523edc5da96caccced2b50136bb5e",
"deployer": "0x423420Ae467df6e90291fd0252c0A8a637C1e03f",
"adapter": {
"name": "Axelar"
},
"admin": "0x423420Ae467df6e90291fd0252c0A8a637C1e03f",
"etherscanUrl": "https://api.etherscan.io/api/"
},
"contracts": {
"root": "0xCA5BDf5fa44D450662ea459090062E72d75EEa9e",
"investmentManager": "0x38329155b03564b54ab98406764E7932D390Ae3E",
"centrifugeRouter": "0xb0942233c3DB289020Cdc2fF997871B3DFe1c49e",
"poolManager": "0xF86F98E5650A3a6c63edc884C65EAa8fE4AcbAE5",
"gateway": "0xac21B4F899e61d66437ACf27039161AbbeC0A03e",
"gasService": "0x436ba59e58F849dCD49828999523646D1ED1C6F0",
"escrow": "0x72d87FDe812FC2E86EB782cFe21D307cFd5c64B0",
"routerEscrow": "0x4E3a393fBcf7C9A43B1EB6879C042E499c3E0B74",
"adapter": "0x54a03011c6413C6Edc04C956c57a354c9DFc70B0",
"trancheFactory": "0x52126928569edAF5B875e7767FC2e3435C575d04",
"erc7540VaultFactory": "0x50D49dd06CBB7EC650bC10b082E7fD2b6286F955",
"transferProxyFactory": "0x1cF4e2be580D8329D4507F02D2F8bf8C6bb76D50",
"restrictionManager": "0x2552452284a1982E0c47d3bfd0E92B236D800c9d",
"restrictionManagerFactory": "0x3293C3Aa8C3dC892d035b4101175141Ed2C00f8A",
"guardian": "0x4a3603D5287e0dC219fE70Bc03D701bc4378980c"
},
"deploymentBlock": 6403738,
"isTestnet": true
}
File renamed without changes.
6 changes: 4 additions & 2 deletions verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ display_help() {
echo
echo "This script verifies the vault contract and its associated tranche and restriction manager contracts."
echo
echo "Usage: $0 contract_address"
echo "Usage: $0 contract_address deployer"
echo
echo "Arguments:"
echo " contract_address The address of the vault to verify"
echo " deployer The address of the deployer"
echo
echo "Required Environment Variables:"
echo " RPC_URL The RPC URL"
Expand All @@ -30,6 +31,7 @@ if [ -z "$RPC_URL" ] || [ -z "$ETHERSCAN_KEY" ] || [ -z "$VERIFIER_URL" ] || [ -
fi

contract_address=$1
deployer=$2

if ! cast call $contract_address 'share()(address)' --rpc-url $RPC_URL &> /dev/null; then
echo "Error: Must pass a vault address."
Expand All @@ -56,6 +58,6 @@ echo "investmentManager: $investmentManager"
echo "poolManager: $poolManager"
echo "restrictionManager: $restrictionManager"
echo "token decimals: $decimals"
forge verify-contract --constructor-args $(cast abi-encode "constructor(address, address)" $root $share) --watch --etherscan-api-key $ETHERSCAN_KEY $contract_address src/token/RestrictionManager.sol:RestrictionManager --verifier-url $VERIFIER_URL --chain $CHAIN_ID
forge verify-contract --constructor-args $(cast abi-encode "constructor(address, address)" $root $deployer) --watch --etherscan-api-key $ETHERSCAN_KEY $contract_address src/token/RestrictionManager.sol:RestrictionManager --verifier-url $VERIFIER_URL --chain $CHAIN_ID
forge verify-contract --constructor-args $(cast abi-encode "constructor(uint8)" $decimals) --watch --etherscan-api-key $ETHERSCAN_KEY $contract_address src/token/Tranche.sol:Tranche --verifier-url $VERIFIER_URL --chain $CHAIN_ID
forge verify-contract --constructor-args $(cast abi-encode "constructor(uint64,bytes16,address,address,address,address,address)" $poolId $trancheId $asset $share $root $escrow $investmentManager) --watch --etherscan-api-key $ETHERSCAN_KEY $contract_address src/ERC7540Vault.sol:ERC7540Vault --verifier-url $VERIFIER_URL --chain $CHAIN_ID

0 comments on commit a5c534b

Please sign in to comment.