From 28f9b21784d405de748aea574a0af18467a0f7b3 Mon Sep 17 00:00:00 2001 From: Volodymyr Lykhonis Date: Wed, 26 Jun 2024 14:38:04 +0200 Subject: [PATCH] Deploy marketplace on base --- README.md | 9 +++++ scripts/marketplace/Participant.s.sol | 5 +-- tools/verify.sh | 47 +++++++++++++++++---------- 3 files changed, 41 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 5042192..ef8add5 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,15 @@ | base-sepolia | Points | 0xa29aeaabb5DA0CC3635576933a66c1B714f058C1 | | base-sepolia | Royalties | 0x7D6DA08a9d13cEC8649215F8bbD9dcA101c22659 | | base-sepolia | ProfilesReverseLookup | 0x3582f474f6e9fb087651b135d6224500a89e6f44 | +| base-sepolia | Participant | 0x59e468e64c23a44d6340cb2da6a701e9a8dcdc2b | +| base-sepolia | LSP7Listings | 0x08e187a4adbe87e411917e0abe6d283461ca96c0 | +| base-sepolia | LSP7Offers | 0x44cd7d06ceb509370b75e426ea3c12824a665e36 | +| base-sepolia | LSP7Orders | 0xdf9defd55365b7b073cae009cf53dd830902c5a7 | +| base-sepolia | LSP7Marketplace | 0xc9c940a35fc8d3522085b991ce3e1a920354f19a | +| base-sepolia | LSP8Listings | 0xf069f9b8e0f96d742c6dfd3d78b0e382f3411207 | +| base-sepolia | LSP8Offers | 0xaebcc2c80abacb7e4d928d4c0a52c7bbeba4c4be | +| base-sepolia | LSP8Auctions | 0x39456bcd4d450e55f851f97c30df828a4e1f6c66 | +| base-sepolia | LSP8Marketplace | 0xe9f0feab3d50ccbe40d99f669fe1e89172908cdf | | lukso | PageName | 0x39456bcd4d450e55f851f97c30df828a4e1f6c66 | | lukso | GenesisDigitalAsset | 0x8da488c29fb873c9561ccf5ff44dda6c1deddc37 | | lukso | CollectorDigitalAsset | 0x5599d0ae8576250db2b9a9975fd3db1f6399b4fd | diff --git a/scripts/marketplace/Participant.s.sol b/scripts/marketplace/Participant.s.sol index 8a4df90..5b3ca63 100644 --- a/scripts/marketplace/Participant.s.sol +++ b/scripts/marketplace/Participant.s.sol @@ -44,8 +44,9 @@ contract Configure is Script { function run() external { address owner = vm.envAddress("OWNER_ADDRESS"); ICollectorIdentifiableDigitalAsset collectorAsset = - ICollectorIdentifiableDigitalAsset(vm.envAddress("CONTRACT_COLLECTOR_DIGITAL_ASSET_ADDRESS")); - ILSP7DigitalAsset genesisAsset = ILSP7DigitalAsset(vm.envAddress("CONTRACT_GENESIS_DIGITAL_ASSET_ADDRESS")); + ICollectorIdentifiableDigitalAsset(vm.envOr("CONTRACT_COLLECTOR_DIGITAL_ASSET_ADDRESS", address(0))); + ILSP7DigitalAsset genesisAsset = + ILSP7DigitalAsset(vm.envOr("CONTRACT_GENESIS_DIGITAL_ASSET_ADDRESS", address(0))); Participant participant = Participant(vm.envAddress("CONTRACT_PARTICIPANT_ADDRESS")); if (address(participant.collectorAsset()) != address(collectorAsset)) { diff --git a/tools/verify.sh b/tools/verify.sh index 536fb56..5ef2aa4 100755 --- a/tools/verify.sh +++ b/tools/verify.sh @@ -87,32 +87,43 @@ verifyProxy() { verify ${name} ${implementationAddress} } -# verify LSP8DropsDigitalAsset 0x86e817172b5c07f7036bf8aa46e2db9063743a83 -# verify LSP7DropsDigitalAsset 0x1d5166e8247e70a2cf01881924a1ac6fc1b91128 - -# verify LSP7DropsLightAsset 0x6A938ff85df044772cbc358ACE7BeD2F7798fb98 +forge build verify Points ${LIBRARY_POINTS_ADDRESS} verify Royalties ${LIBRARY_ROYALTIES_ADDRESS} -# verify CollectorIdentifiableDigitalAsset ${CONTRACT_COLLECTOR_DIGITAL_ASSET_ADDRESS} -# verify GenesisDigitalAsset ${CONTRACT_GENESIS_DIGITAL_ASSET_ADDRESS} +if [ -n "${CONTRACT_COLLECTOR_DIGITAL_ASSET_ADDRESS}" ]; then + verify CollectorIdentifiableDigitalAsset ${CONTRACT_COLLECTOR_DIGITAL_ASSET_ADDRESS} +fi -# verifyProxy Participant ${CONTRACT_PARTICIPANT_ADDRESS} +if [ -n "${CONTRACT_GENESIS_DIGITAL_ASSET_ADDRESS}" ]; then + verify GenesisDigitalAsset ${CONTRACT_GENESIS_DIGITAL_ASSET_ADDRESS} +fi -# verifyProxy LSP7Listings ${CONTRACT_LSP7_LISTINGS_ADDRESS} -# verifyProxy LSP7Offers ${CONTRACT_LSP7_OFFERS_ADDRESS} -# verifyProxy LSP7Marketplace ${CONTRACT_LSP7_MARKETPLACE_ADDRESS} +verifyProxy Participant ${CONTRACT_PARTICIPANT_ADDRESS} -# verifyProxy LSP8Listings ${CONTRACT_LSP8_LISTINGS_ADDRESS} -# verifyProxy LSP8Offers ${CONTRACT_LSP8_OFFERS_ADDRESS} -# verifyProxy LSP8Auctions ${CONTRACT_LSP8_AUCTIONS_ADDRESS} -# verifyProxy LSP8Marketplace ${CONTRACT_LSP8_MARKETPLACE_ADDRESS} +verifyProxy LSP7Listings ${CONTRACT_LSP7_LISTINGS_ADDRESS} +verifyProxy LSP7Offers ${CONTRACT_LSP7_OFFERS_ADDRESS} +verifyProxy LSP7Orders ${CONTRACT_LSP7_ORDERS_ADDRESS} +verifyProxy LSP7Marketplace ${CONTRACT_LSP7_MARKETPLACE_ADDRESS} -# verifyProxy PageName ${CONTRACT_PAGE_NAME_ADDRESS} +verifyProxy LSP8Listings ${CONTRACT_LSP8_LISTINGS_ADDRESS} +verifyProxy LSP8Offers ${CONTRACT_LSP8_OFFERS_ADDRESS} +verifyProxy LSP8Auctions ${CONTRACT_LSP8_AUCTIONS_ADDRESS} +verifyProxy LSP8Marketplace ${CONTRACT_LSP8_MARKETPLACE_ADDRESS} -# verifyProxy Vault ${CONTRACT_POOL_VAULT} -# verifyProxy Elections ${CONTRACT_ELECTIONS} +verifyProxy PageName ${CONTRACT_PAGE_NAME_ADDRESS} + +if [ -n "${CONTRACT_POOL_VAULT}" ]; then + verifyProxy Vault ${CONTRACT_POOL_VAULT} +fi + +if [ -n "${CONTRACT_ELECTIONS}" ]; then + verifyProxy Elections ${CONTRACT_ELECTIONS} +fi + +if [ -n "${CONTRACT_PROFILES_ORACLE}" ]; then + verifyProxy ProfilesOracle ${CONTRACT_PROFILES_ORACLE} +fi -# verifyProxy ProfilesOracle ${CONTRACT_PROFILES_ORACLE} verify ProfilesReverseLookup ${CONTRACT_PROFILES_REVERSE_LOOKUP}