Skip to content

Commit

Permalink
deployed balance tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-wang-cb committed Jan 25, 2024
1 parent bb37a30 commit 405e0df
Show file tree
Hide file tree
Showing 7 changed files with 629 additions and 9 deletions.
11 changes: 6 additions & 5 deletions sepolia/2024-01-22-deploy-revshare/.env
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ FEE_DISBURSER_SALT=FeeDisburserProxy
FEE_DISBUSER_CHAIN_ID=84532

# # Contract Addresses
BALANCE_TRACKER_PROXY=<> # TODO: To be filled during deploy
FEE_DISBURSER_PROXY=<> # TODO: To be filled during deploy
BALANCE_TRACKER_IMPL=<> # TODO: To be filled during deploy
FEE_DISBURSER_IMPL=<> # TODO: To be filled during deploy
BALANCE_TRACKER_PROXY=0x8D1b5e5614300F5c7ADA01fFA4ccF8F1752D9A57
FEE_DISBURSER_PROXY=0x76355A67fCBCDE6F9a69409A8EAd5EaA9D8d875d
BALANCE_TRACKER_IMPL=0x3A92D1B1dF54870245efF0C8B1a2EBF16d997cAA
FEE_DISBURSER_IMPL=0xCA9be02F8e417D20f33551BA22ddf3f7623FB345

# Verification
VERIFIER=etherscan
VERIFIER_URL=https://api-sepolia.basescan.org/api
L1_VERIFIER_URL=https://api-sepolia.etherscan.io/api
L2_VERIFIER_URL=https://api-sepolia.basescan.org/api
8 changes: 4 additions & 4 deletions sepolia/2024-01-22-deploy-revshare/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ deploy-fee-disburser:

.PHONY: verify-balance-tracker
verify-balance-tracker:
@forge verify-contract ${BALANCE_TRACKER_IMPL} ./lib/base-contracts/src/revenue-share/BalanceTracker.sol:BalanceTracker --verifier ${VERIFIER} --verifier-url ${VERIFIER_URL} --chain-id ${BALANCE_TRACKER_CHAIN_ID} --retries=1 --etherscan-api-key ${ETHERSCAN_API_KEY} --watch
@forge verify-contract ${BALANCE_TRACKER_PROXY} Proxy --constructor-args $(shell cast abi-encode "constructor(address)" ${BALANCE_TRACKER_DEPLOYER}) --verifier ${VERIFIER} --verifier-url ${VERIFIER_URL} --chain-id ${BALANCE_TRACKER_CHAIN_ID} --retries=1 --etherscan-api-key ${ETHERSCAN_API_KEY} --watch
forge verify-contract ${BALANCE_TRACKER_IMPL} ./lib/base-contracts/src/revenue-share/BalanceTracker.sol:BalanceTracker --constructor-args $(shell cast abi-encode "constructor(address)" ${PROFIT_WALLET}) --verifier ${VERIFIER} --verifier-url ${L1_VERIFIER_URL} --chain-id ${BALANCE_TRACKER_CHAIN_ID} --retries=1 --etherscan-api-key ${L1_ETHERSCAN_API_KEY} --optimizer-runs=999999 --watch
forge verify-contract ${BALANCE_TRACKER_PROXY} ./script/Proxy.sol:Proxy --constructor-args $(shell cast abi-encode "constructor(address)" ${BALANCE_TRACKER_DEPLOYER}) --verifier ${VERIFIER} --verifier-url ${L1_VERIFIER_URL} --chain-id ${BALANCE_TRACKER_CHAIN_ID} --retries=1 --etherscan-api-key ${L1_ETHERSCAN_API_KEY} --optimizer-runs=999999 --watch

.PHONY: verify-fee-disburser
verify-fee-disburser:
ETHERSCAN_API_KEY=PLACEHOLDER_STRING forge verify-contract ${FEE_DISBURSER_IMPL} ./lib/base-contracts/src/revenue-share/FeeDisburser.sol:FeeDisburser --constructor-args $(shell cast abi-encode "constructor(address,address,uint256)" ${OPTIMISM_WALLET} ${BALANCE_TRACKER_PROXY} ${FEE_DISBURSEMENT_INTERVAL}) --verifier ${VERIFIER} --verifier-url ${VERIFIER_URL} --chain-id ${L2_CHAIN_ID} --num-of-optimizations=99999 --retries=1 --compiler-version v0.8.15+commit.e14f2714 --watch
ETHERSCAN_API_KEY=PLACEHOLDER_STRING forge verify-contract ${FEE_DISBURSER_PROXY} Proxy --constructor-args $(shell cast abi-encode "constructor(address)" ${FEE_DISBURSER_DEPLOYER}) --verifier ${VERIFIER} --verifier-url ${VERIFIER_URL} --chain-id ${L2_CHAIN_ID} --num-of-optimizations=99999 --retries=1 --compiler-version v0.8.15+commit.e14f2714 --watch
ETHERSCAN_API_KEY=$(L2_ETHERSCAN_API_KEY) forge verify-contract ${FEE_DISBURSER_IMPL} ./lib/base-contracts/src/revenue-share/FeeDisburser.sol:FeeDisburser --constructor-args $(shell cast abi-encode "constructor(address,address,uint256)" ${OPTIMISM_WALLET} ${BALANCE_TRACKER_PROXY} ${FEE_DISBURSEMENT_INTERVAL}) --verifier ${VERIFIER} --verifier-url ${L2_VERIFIER_URL} --chain-id ${L2_CHAIN_ID} --optimizer-runs=999999 --retries=1 --compiler-version v0.8.15+commit.e14f2714 --watch
ETHERSCAN_API_KEY=$(L2_ETHERSCAN_API_KEY) forge verify-contract ${FEE_DISBURSER_PROXY} Proxy --constructor-args $(shell cast abi-encode "constructor(address)" ${FEE_DISBURSER_DEPLOYER}) --verifier ${VERIFIER} --verifier-url ${L2_VERIFIER_URL} --chain-id ${L2_CHAIN_ID} --num-of-optimizations=99999 --retries=1 --compiler-version v0.8.15+commit.e14f2714 --watch
Loading

0 comments on commit 405e0df

Please sign in to comment.