-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade all world-chain-contracts v1 packages to MUD version 2…
….2.3 (#181) A large overhaul for all V1 contracts to catch-up to the latest version of MUD: - all @latticexyz packages upgraded to version `2.2.3` - implemented` intialMsgSender()` context capture as a customWorld contract named `WorldWithEntryContext.sol` - all relevant contract/test/config changes to accommodate the above updates - adding the term `System` to the end of all systems - `mud.config `updates for table declarations and custom world - deploying `/core` `DelegationControlSystem` and `ForwarderSystem` into a non-root namespace - updating unit tests to use `MudTest.sol` instead of the basic forge `Test.sol` - cleanup and standardise unit tests - removed `tableId` parameters from Table calls - adjusted System-to-System APPROVED access logic to be configurable per System - update the `InventoryAccess.s.sol` script to accommodate access logic changes --------- Co-authored-by: CCP Legolas <[email protected]>
- Loading branch information
1 parent
cd5efa2
commit eb7eb3d
Showing
217 changed files
with
9,022 additions
and
11,972 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
**/dist | ||
# Worlds.json | ||
**/worlds.json | ||
.mud | ||
|
||
.nx/cache | ||
.DS_Store | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/src/WorldWithEntryContext.sol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,38 @@ | ||
import { mudConfig } from "@latticexyz/world/register"; | ||
import { defineWorld } from "@latticexyz/world"; | ||
import constants = require("./node_modules/@eveworld/common-constants/src/constants.json"); | ||
|
||
export default mudConfig({ | ||
export default defineWorld({ | ||
namespace: constants.namespace.FRONTIER_WORLD_DEPLOYMENT, | ||
deploy: { | ||
customWorld: { | ||
sourcePath: "src/WorldWithEntryContext.sol", | ||
name: "WorldWithEntryContext", | ||
}, | ||
}, | ||
systems: { | ||
DelegationControlSystem: { | ||
name: "DelegationContro", | ||
openAccess: true, | ||
}, | ||
ForwarderSystem: { | ||
name: "ForwarderSystem", | ||
openAccess: true, | ||
}, | ||
}, | ||
tables: { | ||
GlobalStaticData: { | ||
keySchema: { | ||
schema: { | ||
trustedForwarder: "address", | ||
value: "bool", | ||
}, | ||
valueSchema: "bool", | ||
key: ["trustedForwarder"], | ||
}, | ||
Role: { | ||
keySchema: { | ||
schema: { | ||
role: "bytes32", | ||
value: "address", | ||
}, | ||
valueSchema: "address", | ||
key: ["role"], | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.