-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
…to feat-mvp
- Loading branch information
Showing
18 changed files
with
1,189 additions
and
1,271 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 |
---|---|---|
|
@@ -6,6 +6,6 @@ artifacts/ | |
abi/ | ||
types/ | ||
broadcast/ | ||
|
||
.env | ||
# Ignore MUD deploy artifacts | ||
deploys/**/*.json |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
ds-test/=./node_modules/ds-test/src/ | ||
forge-std/=./node_modules/forge-std/src/ | ||
@latticexyz/=./node_modules/@latticexyz/ | ||
ds-test/=node_modules/ds-test/src/ | ||
forge-std/=node_modules/forge-std/src/ | ||
@latticexyz/=node_modules/@latticexyz/ | ||
@src/=src/ | ||
@systems/=src/systems/ | ||
@codegen/=src/codegen/ | ||
@library/=src/systems/library/ |
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,29 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.0; | ||
|
||
import { Script } from "forge-std/Script.sol"; | ||
import { console } from "forge-std/console.sol"; | ||
import { IWorld } from "../src/codegen/world/IWorld.sol"; | ||
import { GameConfigInit } from "./GameConfigInit.sol"; | ||
|
||
contract TempRun is Script { | ||
function run(address worldAddress) external { | ||
// Load the private key from the `PRIVATE_KEY` environment variable (in .env) | ||
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); | ||
|
||
// Start broadcasting transactions from the deployer account | ||
vm.startBroadcast(deployerPrivateKey); | ||
|
||
// address w = address(0x2Bc1034975c3df48D6f3026802f372677844b85d); | ||
|
||
// ------------------ INIT ------------------ | ||
// GameConfigInit.setInitPosition(IWorld(0x2Bc1034975c3df48D6f3026802f372677844b85d)); | ||
(uint256 x, uint256 y) = GameConfigInit.getPosition(IWorld(worldAddress)); | ||
console.log("======= result ======="); | ||
console.log(x); | ||
console.log(y); | ||
|
||
vm.stopBroadcast(); | ||
|
||
} | ||
} |
Oops, something went wrong.