Skip to content

Commit

Permalink
deployed to other chains
Browse files Browse the repository at this point in the history
  • Loading branch information
dan13ram committed Apr 15, 2024
1 parent a39a0b6 commit d9c4d02
Show file tree
Hide file tree
Showing 8 changed files with 234 additions and 203 deletions.
174 changes: 87 additions & 87 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,95 +1,95 @@
CharacterAccountTest:testEquipAndUnequipViaMultiSendDelegateCall() (gas: 863829)
CharacterAccountTest:testEquipItemToCharacter() (gas: 876711)
CharacterAccountTest:testEquipViaMultiSendDelegateCall() (gas: 884134)
CharacterAccountTest:testUnequipItemToCharacter() (gas: 871463)
CharacterAccountTest:test_Owner() (gas: 592206)
CharacterEligibilityAdaptorTest:testIsEligible() (gas: 53505)
CharacterAccountTest:testEquipAndUnequipViaMultiSendDelegateCall() (gas: 854002)
CharacterAccountTest:testEquipItemToCharacter() (gas: 869843)
CharacterAccountTest:testEquipViaMultiSendDelegateCall() (gas: 876374)
CharacterAccountTest:testUnequipItemToCharacter() (gas: 863514)
CharacterAccountTest:test_Owner() (gas: 588641)
CharacterEligibilityAdaptorTest:testIsEligible() (gas: 53339)
CharacterEligibilityAdaptorTest:testSupportsInterface() (gas: 13415)
CharacterSheetsFactoryTest:testCreateAndInitialize() (gas: 3883681)
CharacterSheetsFactoryTest:testCreateAndInitializeWithZeroDao() (gas: 3680766)
CharacterSheetsFactoryTest:testCreateCharacterEligibilityAdaptor() (gas: 110677)
CharacterSheetsFactoryTest:testCreateCharacterSheets() (gas: 108660)
CharacterSheetsFactoryTest:testCreateClassLevelAdaptor() (gas: 111294)
CharacterSheetsFactoryTest:testCreateClasses() (gas: 110538)
CharacterSheetsFactoryTest:testCreateExperience() (gas: 108715)
CharacterSheetsFactoryTest:testCreateItems() (gas: 110556)
CharacterSheetsFactoryTest:testDeployment() (gas: 13097)
CharacterSheetsFactoryTest:testDeploymentRevert() (gas: 16680)
CharacterSheetsFactoryTest:testInitializeContracts() (gas: 3836586)
CharacterSheetsFactoryTest:testCreateAndInitialize() (gas: 3856606)
CharacterSheetsFactoryTest:testCreateAndInitializeWithZeroDao() (gas: 3654053)
CharacterSheetsFactoryTest:testCreateCharacterEligibilityAdaptor() (gas: 110455)
CharacterSheetsFactoryTest:testCreateCharacterSheets() (gas: 108501)
CharacterSheetsFactoryTest:testCreateClassLevelAdaptor() (gas: 111072)
CharacterSheetsFactoryTest:testCreateClasses() (gas: 110379)
CharacterSheetsFactoryTest:testCreateExperience() (gas: 108556)
CharacterSheetsFactoryTest:testCreateItems() (gas: 110397)
CharacterSheetsFactoryTest:testDeployment() (gas: 12992)
CharacterSheetsFactoryTest:testDeploymentRevert() (gas: 16575)
CharacterSheetsFactoryTest:testInitializeContracts() (gas: 3812465)
CharacterSheetsFactoryTest:testUpdateImplementationAddressStorage() (gas: 21525)
CharacterSheetsTest:testChangeBaseUri() (gas: 71847)
CharacterSheetsTest:testChangeBaseUriRevertNotAdmin() (gas: 71773)
CharacterSheetsTest:testEquipItemToCharacter() (gas: 333754)
CharacterSheetsTest:testEquipItemToCharacterReverts() (gas: 218278)
CharacterSheetsTest:testChangeBaseUri() (gas: 70874)
CharacterSheetsTest:testChangeBaseUriRevertNotAdmin() (gas: 70905)
CharacterSheetsTest:testEquipItemToCharacter() (gas: 331497)
CharacterSheetsTest:testEquipItemToCharacterReverts() (gas: 216303)
CharacterSheetsTest:testGetCharacterSheetByCharacterId() (gas: 25401)
CharacterSheetsTest:testGetPlayerIdFromAccountAddress() (gas: 30169)
CharacterSheetsTest:testRemovePlayer() (gas: 950076)
CharacterSheetsTest:testRenounceSheet() (gas: 73077)
CharacterSheetsTest:testRenounceSheetReverts() (gas: 72763)
CharacterSheetsTest:testRestoreSheetAfterRemove() (gas: 789823)
CharacterSheetsTest:testRestoreSheetAfterRenounce() (gas: 745521)
CharacterSheetsTest:testRollCharacterSheet() (gas: 590551)
CharacterSheetsTest:testRollCharacterSheetAsGameMaster() (gas: 608454)
CharacterSheetsTest:testGetPlayerIdFromAccountAddress() (gas: 29959)
CharacterSheetsTest:testRemovePlayer() (gas: 943533)
CharacterSheetsTest:testRenounceSheet() (gas: 72626)
CharacterSheetsTest:testRenounceSheetReverts() (gas: 72312)
CharacterSheetsTest:testRestoreSheetAfterRemove() (gas: 783035)
CharacterSheetsTest:testRestoreSheetAfterRenounce() (gas: 738840)
CharacterSheetsTest:testRollCharacterSheet() (gas: 586266)
CharacterSheetsTest:testRollCharacterSheetAsGameMaster() (gas: 603823)
CharacterSheetsTest:testRollCharacterSheetFailNonMember() (gas: 61327)
CharacterSheetsTest:testRollCharacterSheetRevertAlreadyACharacter() (gas: 68064)
CharacterSheetsTest:testRollFailsForRenouncedSheet() (gas: 116583)
CharacterSheetsTest:testSafeTransferFrom() (gas: 469420)
CharacterSheetsTest:testSafeTransferFromBackAndForth() (gas: 268713)
CharacterSheetsTest:testTransferFrom() (gas: 480370)
CharacterSheetsTest:testUnequipItemFromCharacter() (gas: 316904)
CharacterSheetsTest:testUpdateCharacterMetadata() (gas: 98745)
CharacterSheetsTest:testUpdateContractImplementation() (gas: 5140268)
ClassLevelAdaptorTest:testFuzz_GetCurrentLevel(uint256) (runs: 256, μ: 36977, ~: 32811)
CharacterSheetsTest:testRollFailsForRenouncedSheet() (gas: 116132)
CharacterSheetsTest:testSafeTransferFrom() (gas: 460478)
CharacterSheetsTest:testSafeTransferFromBackAndForth() (gas: 265721)
CharacterSheetsTest:testTransferFrom() (gas: 472120)
CharacterSheetsTest:testUnequipItemFromCharacter() (gas: 313885)
CharacterSheetsTest:testUpdateCharacterMetadata() (gas: 97123)
CharacterSheetsTest:testUpdateContractImplementation() (gas: 5127701)
ClassLevelAdaptorTest:testFuzz_GetCurrentLevel(uint256) (runs: 256, μ: 36834, ~: 31396)
ClassLevelAdaptorTest:testSupportsInterface() (gas: 13415)
ClassesTest:testAssignClass() (gas: 282119)
ClassesTest:testClaimClass() (gas: 156632)
ClassesTest:testClassExp() (gas: 257055)
ClassesTest:testCreateClass() (gas: 134722)
ClassesTest:testFuzz_BalanceOf(uint256) (runs: 256, μ: 297240, ~: 306438)
ClassesTest:testRenounceClass() (gas: 240969)
ClassesTest:testRevokeClass() (gas: 213393)
ClassesTest:testTransferClass() (gas: 763240)
ExperienceTest:testBurnExp() (gas: 195606)
ExperienceTest:testDropExp() (gas: 252084)
ClassesTest:testAssignClass() (gas: 280150)
ClassesTest:testClaimClass() (gas: 155829)
ClassesTest:testClassExp() (gas: 253585)
ClassesTest:testCreateClass() (gas: 132681)
ClassesTest:testFuzz_BalanceOf(uint256) (runs: 256, μ: 294846, ~: 304286)
ClassesTest:testRenounceClass() (gas: 238835)
ClassesTest:testRevokeClass() (gas: 211570)
ClassesTest:testTransferClass() (gas: 757342)
ExperienceTest:testBurnExp() (gas: 194091)
ExperienceTest:testDropExp() (gas: 249912)
ExperienceTest:testExperienceDeployment() (gas: 18154)
HatsAdaptorTest:testAddGameMaster() (gas: 148299)
HatsAdaptorTest:testHatsAdaptorDeployment() (gas: 115416)
HatsAdaptorTest:testIsCharacter() (gas: 87091)
HatsAdaptorTest:testIsGameMaster() (gas: 64484)
HatsAdaptorTest:testIsPlayer() (gas: 86641)
HatsAdaptorTest:testMintCharacterHat() (gas: 213533)
HatsAdaptorTest:testMintPlayerHat() (gas: 699074)
HatsAdaptorTest:test_CheckCharacterHatEligibility() (gas: 93052)
HatsAdaptorTest:testAddGameMaster() (gas: 135267)
HatsAdaptorTest:testHatsAdaptorDeployment() (gas: 111369)
HatsAdaptorTest:testIsCharacter() (gas: 85417)
HatsAdaptorTest:testIsGameMaster() (gas: 63121)
HatsAdaptorTest:testIsPlayer() (gas: 84849)
HatsAdaptorTest:testMintCharacterHat() (gas: 210898)
HatsAdaptorTest:testMintPlayerHat() (gas: 694017)
HatsAdaptorTest:test_CheckCharacterHatEligibility() (gas: 92575)
HatsAdaptorTest:test_addValidGame() (gas: 210)
ItemsTest:testClaimItem() (gas: 877241)
ItemsTest:testClaimItemRevert() (gas: 1269731)
ItemsTest:testComplexRequirementsClaimRevert() (gas: 1255162)
ItemsTest:testComplexRequirementsClaimRevertWithTooMuchExp() (gas: 1284692)
ItemsTest:testComplexRequirementsClaimWithItem1() (gas: 1331550)
ItemsTest:testComplexRequirementsClaimWithItem1ForShallowNot() (gas: 1285853)
ItemsTest:testComplexRequirementsClaimWithItem2() (gas: 1336408)
ItemsTest:testCraftItem() (gas: 703549)
ItemsTest:testCraftItemRevert() (gas: 433785)
ItemsTest:testCreateClaimableItem() (gas: 77587)
ItemsTest:testCreateCraftableItem() (gas: 69379)
ItemsTest:testCreateItemTypeRevert() (gas: 64124)
ItemsTest:testDeleteItem() (gas: 240296)
ItemsTest:testDismantleItems() (gas: 1171490)
ItemsTest:testDismantleItemsRevert() (gas: 1229586)
ItemsTest:testDropLoot() (gas: 1247865)
ItemsTest:testDropLootRevert() (gas: 258449)
ItemsTest:testInvalidTreeAnd() (gas: 632503)
ItemsTest:testInvalidTreeNot() (gas: 849700)
ItemsTest:testInvalidTreeOr() (gas: 866734)
ItemsTest:testSimpleRequirementsClaimWithItem1() (gas: 627818)
ItemsTest:testURI() (gas: 20896)
ItemsTest:testUpdateClaimableItemRequirements() (gas: 337268)
ItemsTest:testUpdateCraftableItemRequirements() (gas: 196644)
Test_AdminEligibilityModule:testAddNewAdmin() (gas: 144310)
Test_AdminEligibilityModule:testRemoveAdmin() (gas: 124992)
Test_ElderEligibilityModule:testAddClassToElderModule() (gas: 466146)
Test_ElderEligibilityModule:testCharacterSheetsLevelEligibilityModule() (gas: 659917)
Test_ElderEligibilityModule:testElderModuleNoCharacter() (gas: 472720)
Test_GameMasterEligibilityModule:testAddNewGameMaster() (gas: 157618)
Test_GameMasterEligibilityModule:testNewModuleSetup() (gas: 135955)
Test_GameMasterEligibilityModule:testRemoveGameMaster() (gas: 92316)
ItemsTest:testClaimItem() (gas: 867826)
ItemsTest:testClaimItemRevert() (gas: 1254250)
ItemsTest:testComplexRequirementsClaimRevert() (gas: 1216332)
ItemsTest:testComplexRequirementsClaimRevertWithTooMuchExp() (gas: 1245922)
ItemsTest:testComplexRequirementsClaimWithItem1() (gas: 1292634)
ItemsTest:testComplexRequirementsClaimWithItem1ForShallowNot() (gas: 1252520)
ItemsTest:testComplexRequirementsClaimWithItem2() (gas: 1297492)
ItemsTest:testCraftItem() (gas: 697382)
ItemsTest:testCraftItemRevert() (gas: 429801)
ItemsTest:testCreateClaimableItem() (gas: 74702)
ItemsTest:testCreateCraftableItem() (gas: 67129)
ItemsTest:testCreateItemTypeRevert() (gas: 62951)
ItemsTest:testDeleteItem() (gas: 237185)
ItemsTest:testDismantleItems() (gas: 1156518)
ItemsTest:testDismantleItemsRevert() (gas: 1215030)
ItemsTest:testDropLoot() (gas: 1238154)
ItemsTest:testDropLootRevert() (gas: 256152)
ItemsTest:testInvalidTreeAnd() (gas: 607887)
ItemsTest:testInvalidTreeNot() (gas: 819048)
ItemsTest:testInvalidTreeOr() (gas: 836082)
ItemsTest:testSimpleRequirementsClaimWithItem1() (gas: 620886)
ItemsTest:testURI() (gas: 20043)
ItemsTest:testUpdateClaimableItemRequirements() (gas: 322833)
ItemsTest:testUpdateCraftableItemRequirements() (gas: 191727)
Test_AdminEligibilityModule:testAddNewAdmin() (gas: 142497)
Test_AdminEligibilityModule:testRemoveAdmin() (gas: 122833)
Test_ElderEligibilityModule:testAddClassToElderModule() (gas: 462184)
Test_ElderEligibilityModule:testCharacterSheetsLevelEligibilityModule() (gas: 655299)
Test_ElderEligibilityModule:testElderModuleNoCharacter() (gas: 469090)
Test_GameMasterEligibilityModule:testAddNewGameMaster() (gas: 155805)
Test_GameMasterEligibilityModule:testNewModuleSetup() (gas: 133928)
Test_GameMasterEligibilityModule:testRemoveGameMaster() (gas: 90849)
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ deploy :;
verify :; ./scripts/verify.sh ${network} ${contract}

CONTRACTS = \
CharacterAccount \
CharacterSheetsImplementation \
ExperienceImplementation \
ItemsImplementation \
ItemsManagerImplementation \
ClassesImplementation \
MolochV2EligibilityAdaptor \
MolochV3EligibilityAdaptor \
ClassLevelAdaptor \
HatsAdaptor \
CharacterSheetsLevelEligibilityModule \
ERC6551HatsEligibilityModule \
Expand All @@ -52,7 +61,6 @@ ClonesAddressStorageImplementation \
ImplementationAddressStorage \
CharacterSheetsFactory


deploy-contracts :;
@for contract in ${CONTRACTS}; do \
make deploy network=${network} force=${force} contract=$$contract; \
Expand Down
Loading

0 comments on commit d9c4d02

Please sign in to comment.