Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/contracts/.env.pyrope
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
DEBUG=mud:*

# MUD Pyrope Configuration
WORLD_ADDRESS=0xcdb380e0cd3949caf70c45c67079f2e27a77fc47
WORLD_ADDRESS=0x7085f3e652987f656fb8dee5aa6592197bb75de8
CHAIN_ID=695569
PRIVATE_KEY=
RPC_URL=https://pyrope-external-sync-node-rpc.live.tech.evefrontier.com
Expand Down
16 changes: 0 additions & 16 deletions packages/contracts/mud.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,6 @@ export default defineWorld({
ResourceId: { filePath: "@latticexyz/store/src/ResourceId.sol", type: "bytes32" },
},
tables: {
// Tasklist: {
// schema: {
// id: "uint256",
// creator: "address",
// assignee: "address",
// deadline: "uint256",
// timestamp: "uint256",
// status: "TaskStatus",
// description: "string",
// },
// key: ["id"],
// },
BucketedInventoryItem: {
schema: {
bucketId: "bytes32",
Expand Down Expand Up @@ -115,8 +103,4 @@ export default defineWorld({
key: ["smartObjectId", "bucketId"],
},
},

// enums: {
// TaskStatus: ["OPEN", "CLOSED"],
// },
});
4 changes: 2 additions & 2 deletions packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "blurpesec",
"email": "hahn.michael.f@gmail.com"
},
"version": "0.2.2",
"version": "0.2.3",
"private": false,
"license": "MIT",
"scripts": {
Expand All @@ -26,7 +26,7 @@
"configure-ssu": ". ./.env && pnpm forge script ./script/ConfigureSSU.s.sol:ConfigureSSU --broadcast --rpc-url $RPC_URL --chain-id $CHAIN_ID --sig \"run()\" $WORLD_ADDRESS",
"create-nested-bucket": ". ./.env && pnpm forge script ./script/CreateNestedBucket.s.sol:CreateNestedBucket --broadcast --rpc-url $RPC_URL --chain-id $CHAIN_ID --sig \"run(string)\" $WORLD_ADDRESS",
"install:storage-manager": ". ./.env.local && pnpm forge script ./scripts/InstallStorageManager.s.sol:InstallStorageManager --broadcast --rpc-url $RPC_URL --chain-id $CHAIN_ID -vvvv"
},
},
"publishConfig": {
"access": "public"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/scripts/ConfigureSSU.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ contract ConfigureSSU is Script {
address worldAddress = vm.envAddress("WORLD_ADDRESS");
bool configureAsImmutable = vm.envBool("CONFIGURE_AS_IMMUTABLE");
IWorld world = IWorld(worldAddress);
address storeProxySystemAddress = world.sm_v0_2_0sm__getStoreProxyAddress();
address storeProxySystemAddress = world.sm_v0_2_0__getStoreProxyAddress();
if (storeProxySystemAddress == address(0)) {
revert("StoreProxySystem not registered to the World");
}
Expand Down
31 changes: 31 additions & 0 deletions packages/contracts/scripts/DeployStorageManagerModule.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.24;

import { Script } from "forge-std/Script.sol";
import { console } from "forge-std/console.sol";
import { IWorld } from "../src/codegen/world/IWorld.sol";
import { StorageManagerModule } from "../src/StorageManagerModule.sol";

contract DeployStorageManagerModule is Script {
function run() external {
address worldAddress = vm.envAddress("WORLD_ADDRESS");
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");

vm.startBroadcast(deployerPrivateKey);

console.log("Deploying StorageManagerModule...");
StorageManagerModule module = new StorageManagerModule();
console.log("StorageManagerModule deployed at:", address(module));

console.log("Installing module into World (root)...");
IWorld(worldAddress).installRootModule(module, bytes(""));
console.log("Module installed.");

vm.stopBroadcast();

// Verify installation
address installedModule = IWorld(worldAddress).getModuleAddress(keccak256(abi.encodePacked("StorageManagerModule")));
require(installedModule == address(module), "Module installation failed");
console.log("Verified module installation at:", installedModule);
}
}
Loading