Skip to content

Commit

Permalink
repo restructure (#26)
Browse files Browse the repository at this point in the history
* refactoring the folder structure

* removing mudConfigObject.ts to fix ts errors. We can add it back later if its required

* adding lint to .ts files

* adding non mud standard contracts

* removing lib dependancies

* forge install: openzeppelin-contracts

v5.0.2

* forge install: forge-std

v1.8.1

* updating the path for external dependancy

* adding the unbaked deploy script whcih can be sorted later

* decoupling forwarder from the rest of the contracts as it will be in root namespace
renaming to core as
1. it has a GlobalStatic table which could store global values
2. contracts with root namespace can live here

* modifying the frontier-world directory structure

* name change to stick the standard

* console.log name change

* updating package.json

* cleanup package.json commands

* fixing build issues

* reanming and creating test deploy scripts to validate

* adding .env file to standard contracts

* adding build command

* updating  `--fork-url` to `rpc-url`
  • Loading branch information
0xxlegolas authored Mar 26, 2024
1 parent ff617df commit 8e00c6d
Show file tree
Hide file tree
Showing 117 changed files with 14,887 additions and 492 deletions.
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@
**/worlds.json

.nx/cache
modules/smart-character/broadcast/
world/base-world/broadcast/
world/forwarder/broadcast/
modules/.DS_Store
.DS_Store
**/**/broadcast/
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "standard-contracts/lib/openzeppelin-contracts"]
path = standard-contracts/lib/openzeppelin-contracts
url = https://github.com/openzeppelin/openzeppelin-contracts
[submodule "standard-contracts/lib/forge-std"]
path = standard-contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"solidity.compileUsingRemoteVersion": "v0.8.25+commit.b61c2a91"
}
4 changes: 0 additions & 4 deletions core/smart-object-framework/mud.config.ts

This file was deleted.

13 changes: 0 additions & 13 deletions modules/smart-character/.solhint.json

This file was deleted.

4 changes: 0 additions & 4 deletions modules/smart-character/mud.config.ts

This file was deleted.

23 changes: 0 additions & 23 deletions modules/smart-character/mudConfigObject.ts

This file was deleted.

11 changes: 0 additions & 11 deletions modules/smart-storage-unit/.env

This file was deleted.

10 changes: 0 additions & 10 deletions modules/smart-storage-unit/.prettierrc

This file was deleted.

26 changes: 0 additions & 26 deletions modules/smart-storage-unit/.solhint.json

This file was deleted.

4 changes: 0 additions & 4 deletions modules/smart-storage-unit/mud.config.ts

This file was deleted.

37 changes: 0 additions & 37 deletions modules/smart-storage-unit/package.json

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions world/forwarder/.env → mud-contracts/core/.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ DEBUG=mud:*
#
# Anvil default private key:
PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
FORWARDER_CONTRACT_ADDRESS=0x5FbDB2315678afecb367f032d93F642f64180aa3
FORWARDER_ADDRESS=0x2f8D338360D095a72680A943A22fE6a0d398a0B4
RPC_URL=http://127.0.0.1:8545
WORLD_ADDRESS=0x0c5cd7c367a897786934581bc04ff8c299966c28
WORLD_ADDRESS=0xd3c65837f8950dcfe67901f8037c9a4c6e1fbad8
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default {
namespace: "frontier",
import { mudConfig } from "@latticexyz/world/register";

export default mudConfig({
tables: {
GlobalStaticData: {
keySchema: {
Expand All @@ -8,4 +9,4 @@ export default {
valueSchema: "bool",
},
},
};
});
Loading

0 comments on commit 8e00c6d

Please sign in to comment.