From 78513852ef6ce643e8989841d7784c58af5ab017 Mon Sep 17 00:00:00 2001 From: Kingster Date: Thu, 16 Nov 2023 14:59:55 -0800 Subject: [PATCH] redeploy with latest change --- deployment-11155111.json | 26 +++++++++++++------------- script/foundry/deployment/Main.s.sol | 15 ++++++++++----- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/deployment-11155111.json b/deployment-11155111.json index 4205ae4e..68c968e7 100644 --- a/deployment-11155111.json +++ b/deployment-11155111.json @@ -1,17 +1,17 @@ { "main": { - "AccessControlSingleton-Impl": "0xF19bde1c961a88cBaaA506E9F9355c605997193A", - "AccessControlSingleton-Proxy": "0x517d920c9a3889f620c48965788C576f1504894F", - "IPAssetRegistry": "0x398DA4b4a45C43d8B9530A948B549323bEb8323e", - "IPOrgController-Impl": "0xDc73A45336444a498129970C8811e39D5fEc2bBf", - "IPOrgController-Proxy": "0x971836EE58DA68a38A2a567b4D313A6e5B9a7c72", - "LicenseCreatorModule": "0x75dD702C1d8325CaAd47b8698645B8C0C0417557", - "LicenseRegistry": "0x15eA336C219A33CFE4Ba53C816A4E0B267d19908", - "MockERC721": "0x4098d9f937F7537fB9147315E4845Fc2098AA00E", - "ModuleRegistry": "0x4600029b3b2426d627dFde7d57AbCFdC96aEC147", - "RegistrationModule": "0x1a880B69077A440BE6100343bA6e0D189cdBE9Ff", - "RelationshipModule": "0xEda86EB15dac456DDc5E432781Bb40B4e467920D", - "StoryProtocol": "0x65C37A300A6fbDB2bf0C1685813c89a059A41296", - "TokenGatedHook": "0x51e590be99756c6FC6A61B6F8B465fb62a7212be" + "AccessControlSingleton-Impl": "0xE10D9Ed03c592810c90F6121Db936202b07E2958", + "AccessControlSingleton-Proxy": "0x45A9b0f5503bAC89071F50786EE014f37C9ECE4B", + "IPAssetRegistry": "0x4A6c5EBb7493904f9bDC859614400de83F9DCc94", + "IPOrgController-Impl": "0xA080B6033Da3d7421EF7C09C6fcEFC9c2D9C8b2E", + "IPOrgController-Proxy": "0x5b6c5c236Aec2efD117FFB00A2006Cd21504Cf65", + "LicenseCreatorModule": "0x6500C00dF18D5158Df8aaCDc5fB362284E8496A9", + "LicenseRegistry": "0x01B32f2E9D62adBB2CB508dEf2516039802BCb8b", + "MockERC721": "0x89E890Ca05FEF40E47CE5c11b1e4c3a9bb5565F6", + "ModuleRegistry": "0x47A8de2d3Be86E60D7C650eBE1a89f5Dc7A55854", + "RegistrationModule": "0x64d6Eb95878cC28A20443bA7D0F85eC13a9dC88a", + "RelationshipModule": "0x25Ce8Bc01e460B158d14613a249C3Dd70Fe6dE2a", + "StoryProtocol": "0x1c010EE1a1814AdDBD4D0105D0d2Bd03466887C8", + "TokenGatedHook": "0xAa75f2383350be003a2d5405819DCaEF89cc0BF9" } } \ No newline at end of file diff --git a/script/foundry/deployment/Main.s.sol b/script/foundry/deployment/Main.s.sol index 3c1fcf57..0ef68b14 100644 --- a/script/foundry/deployment/Main.s.sol +++ b/script/foundry/deployment/Main.s.sol @@ -156,7 +156,8 @@ import "test/foundry/mocks/MockERC721.sol"; newAddress = address(new RegistrationModule(BaseModule.ModuleConstruction({ ipaRegistry: IPAssetRegistry(ipAssetRegistry), moduleRegistry: ModuleRegistry(moduleRegistry), - licenseRegistry: LicenseRegistry(licenseRegistry) + licenseRegistry: LicenseRegistry(licenseRegistry), + ipOrgController: IPOrgController(ipOrgController) }), accessControl)); _writeAddress(contractKey, newAddress); console.log(string.concat(contractKey, " deployed to:"), newAddress); @@ -171,7 +172,8 @@ import "test/foundry/mocks/MockERC721.sol"; newAddress = address(new RelationshipModule(BaseModule.ModuleConstruction({ ipaRegistry: IPAssetRegistry(ipAssetRegistry), moduleRegistry: ModuleRegistry(moduleRegistry), - licenseRegistry: LicenseRegistry(licenseRegistry) + licenseRegistry: LicenseRegistry(licenseRegistry), + ipOrgController: IPOrgController(ipOrgController) }), accessControl)); _writeAddress(contractKey, newAddress); console.log(string.concat(contractKey, " deployed to:"), newAddress); @@ -186,7 +188,8 @@ import "test/foundry/mocks/MockERC721.sol"; newAddress = address(new LicenseCreatorModule(BaseModule.ModuleConstruction({ ipaRegistry: IPAssetRegistry(ipAssetRegistry), moduleRegistry: ModuleRegistry(moduleRegistry), - licenseRegistry: LicenseRegistry(licenseRegistry) + licenseRegistry: LicenseRegistry(licenseRegistry), + ipOrgController: IPOrgController(ipOrgController) }))); _writeAddress(contractKey, newAddress); console.log(string.concat(contractKey, " deployed to:"), newAddress); @@ -235,8 +238,10 @@ import "test/foundry/mocks/MockERC721.sol"; ModuleRegistryKeys.RELATIONSHIP_MODULE, BaseModule(relationshipModule)); ModuleRegistry(moduleRegistry).registerProtocolModule( ModuleRegistryKeys.LICENSING_MODULE, BaseModule(licenseCreatorModule)); - - address ipOrg = StoryProtocol(spg).registerIpOrg(admin, "Sample IP Org", "SIPO"); + string[] memory ipAssetTypes = new string[](2); + ipAssetTypes[0] = "STORY"; + ipAssetTypes[1] = "CHARACTER"; + address ipOrg = StoryProtocol(spg).registerIpOrg(admin, "Sample IP Org", "SIPO", ipAssetTypes); // REGISTER TOKEN_GATED_HOOK address[] memory hooks = new address[](1);