Skip to content

Commit

Permalink
Merge pull request #46 from raid-guild/multichain-deployment
Browse files Browse the repository at this point in the history
Multichain deployment
  • Loading branch information
dan13ram authored Apr 15, 2024
2 parents a34b233 + d9c4d02 commit d70c3ff
Show file tree
Hide file tree
Showing 35 changed files with 1,363 additions and 883 deletions.
190 changes: 95 additions & 95 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,95 +1,95 @@
CharacterAccountTest:testEquipAndUnequipViaMultiSendDelegateCall() (gas: 863921)
CharacterAccountTest:testEquipItemToCharacter() (gas: 876608)
CharacterAccountTest:testEquipViaMultiSendDelegateCall() (gas: 884045)
CharacterAccountTest:testUnequipItemToCharacter() (gas: 871603)
CharacterAccountTest:test_Owner() (gas: 591813)
CharacterEligibilityAdaptorTest:testIsEligible() (gas: 53561)
CharacterEligibilityAdaptorTest:testSupportsInterface() (gas: 13427)
CharacterSheetsFactoryTest:testCreateAndInitialize() (gas: 3886107)
CharacterSheetsFactoryTest:testCreateAndInitializeWithZeroDao() (gas: 3681791)
CharacterSheetsFactoryTest:testCreateCharacterEligibilityAdaptor() (gas: 112049)
CharacterSheetsFactoryTest:testCreateCharacterSheets() (gas: 110033)
CharacterSheetsFactoryTest:testCreateClassLevelAdaptor() (gas: 112667)
CharacterSheetsFactoryTest:testCreateClasses() (gas: 111906)
CharacterSheetsFactoryTest:testCreateExperience() (gas: 110086)
CharacterSheetsFactoryTest:testCreateItems() (gas: 111924)
CharacterSheetsFactoryTest:testDeployment() (gas: 13107)
CharacterSheetsFactoryTest:testDeploymentRevert() (gas: 16700)
CharacterSheetsFactoryTest:testInitializeContracts() (gas: 3839130)
CharacterSheetsFactoryTest:testUpdateImplementationAddressStorage() (gas: 21541)
CharacterSheetsTest:testChangeBaseUri() (gas: 71664)
CharacterSheetsTest:testChangeBaseUriRevertNotAdmin() (gas: 71586)
CharacterSheetsTest:testEquipItemToCharacter() (gas: 333990)
CharacterSheetsTest:testEquipItemToCharacterReverts() (gas: 218588)
CharacterSheetsTest:testGetCharacterSheetByCharacterId() (gas: 25419)
CharacterSheetsTest:testGetPlayerIdFromAccountAddress() (gas: 30207)
CharacterSheetsTest:testRemovePlayer() (gas: 948786)
CharacterSheetsTest:testRenounceSheet() (gas: 73170)
CharacterSheetsTest:testRenounceSheetReverts() (gas: 72846)
CharacterSheetsTest:testRestoreSheetAfterRemove() (gas: 788817)
CharacterSheetsTest:testRestoreSheetAfterRenounce() (gas: 745654)
CharacterSheetsTest:testRollCharacterSheet() (gas: 590154)
CharacterSheetsTest:testRollCharacterSheetAsGameMaster() (gas: 607867)
CharacterSheetsTest:testRollCharacterSheetFailNonMember() (gas: 61384)
CharacterSheetsTest:testRollCharacterSheetRevertAlreadyACharacter() (gas: 68125)
CharacterSheetsTest:testRollFailsForRenouncedSheet() (gas: 116738)
CharacterSheetsTest:testSafeTransferFrom() (gas: 469024)
CharacterSheetsTest:testSafeTransferFromBackAndForth() (gas: 268404)
CharacterSheetsTest:testTransferFrom() (gas: 480062)
CharacterSheetsTest:testUnequipItemFromCharacter() (gas: 317339)
CharacterSheetsTest:testUpdateCharacterMetadata() (gas: 98927)
CharacterSheetsTest:testUpdateContractImplementation() (gas: 5233610)
ClassLevelAdaptorTest:testFuzz_GetCurrentLevel(uint256) (runs: 256, μ: 36877, ~: 31620)
ClassLevelAdaptorTest:testSupportsInterface() (gas: 13427)
ClassesTest:testAssignClass() (gas: 281864)
ClassesTest:testClaimClass() (gas: 156835)
ClassesTest:testClassExp() (gas: 256984)
ClassesTest:testCreateClass() (gas: 134641)
ClassesTest:testFuzz_BalanceOf(uint256) (runs: 256, μ: 297066, ~: 306426)
ClassesTest:testRenounceClass() (gas: 240954)
ClassesTest:testRevokeClass() (gas: 213123)
ClassesTest:testTransferClass() (gas: 762464)
ExperienceTest:testBurnExp() (gas: 195494)
ExperienceTest:testDropExp() (gas: 252018)
ExperienceTest:testExperienceDeployment() (gas: 18173)
HatsAdaptorTest:testAddGameMaster() (gas: 147549)
HatsAdaptorTest:testHatsAdaptorDeployment() (gas: 116819)
HatsAdaptorTest:testIsCharacter() (gas: 87252)
HatsAdaptorTest:testIsGameMaster() (gas: 63906)
HatsAdaptorTest:testIsPlayer() (gas: 86846)
HatsAdaptorTest:testMintCharacterHat() (gas: 213375)
HatsAdaptorTest:testMintPlayerHat() (gas: 698384)
HatsAdaptorTest:test_CheckCharacterHatEligibility() (gas: 93138)
HatsAdaptorTest:test_addValidGame() (gas: 211)
ItemsTest:testClaimItem() (gas: 877546)
ItemsTest:testClaimItemRevert() (gas: 1270719)
ItemsTest:testComplexRequirementsClaimRevert() (gas: 1257535)
ItemsTest:testComplexRequirementsClaimRevertWithTooMuchExp() (gas: 1287018)
ItemsTest:testComplexRequirementsClaimWithItem1() (gas: 1334047)
ItemsTest:testComplexRequirementsClaimWithItem1ForShallowNot() (gas: 1288111)
ItemsTest:testComplexRequirementsClaimWithItem2() (gas: 1338921)
ItemsTest:testCraftItem() (gas: 704431)
ItemsTest:testCraftItemRevert() (gas: 434092)
ItemsTest:testCreateClaimableItem() (gas: 77741)
ItemsTest:testCreateCraftableItem() (gas: 69511)
ItemsTest:testCreateItemTypeRevert() (gas: 63965)
ItemsTest:testDeleteItem() (gas: 240249)
ItemsTest:testDismantleItems() (gas: 1175062)
ItemsTest:testDismantleItemsRevert() (gas: 1233012)
ItemsTest:testDropLoot() (gas: 1248310)
ItemsTest:testDropLootRevert() (gas: 258077)
ItemsTest:testInvalidTreeAnd() (gas: 633183)
ItemsTest:testInvalidTreeNot() (gas: 850493)
ItemsTest:testInvalidTreeOr() (gas: 867837)
ItemsTest:testSimpleRequirementsClaimWithItem1() (gas: 628330)
ItemsTest:testURI() (gas: 20934)
ItemsTest:testUpdateClaimableItemRequirements() (gas: 338153)
ItemsTest:testUpdateCraftableItemRequirements() (gas: 196725)
Test_AdminEligibilityModule:testAddNewAdmin() (gas: 165759)
Test_AdminEligibilityModule:testRemoveAdmin() (gas: 154477)
Test_ElderEligibilityModule:testAddClassToElderModule() (gas: 465413)
Test_ElderEligibilityModule:testCharacterSheetsLevelEligibilityModule() (gas: 659711)
Test_ElderEligibilityModule:testElderModuleNoCharacter() (gas: 471970)
Test_GameMasterEligibilityModule:testAddNewGameMaster() (gas: 206808)
Test_GameMasterEligibilityModule:testNewModuleSetup() (gas: 135639)
Test_GameMasterEligibilityModule:testRemoveGameMaster() (gas: 192932)
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: 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: 70874)
CharacterSheetsTest:testChangeBaseUriRevertNotAdmin() (gas: 70905)
CharacterSheetsTest:testEquipItemToCharacter() (gas: 331497)
CharacterSheetsTest:testEquipItemToCharacterReverts() (gas: 216303)
CharacterSheetsTest:testGetCharacterSheetByCharacterId() (gas: 25401)
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: 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: 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: 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: 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)
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ snapshot :; forge snapshot

slither :; slither --config-file slither.config.json src/.

format :; forge fmt
format :; forge fmt src/**/*.sol && forge fmt scripts/**/*.sol && forge fmt test/**/*.sol

# solhint should be installed globally
lint :; solhint "src/**/*.sol"
Expand Down
Loading

0 comments on commit d70c3ff

Please sign in to comment.