Skip to content

Add owner controls readme #1396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 10, 2024
Merged
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
16 changes: 16 additions & 0 deletions contracts/owner-controls.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Game Owner Controls

### Set featured zone
`cast send --rpc-url <URL> --private-key <private-key> <contract-address> "setZoneIsFeatured(uint64,bool)" <zone-number> true`

### Remove featured zone
`cast send --rpc-url <URL> --private-key <private-key> <contract-address> "setZoneIsFeatured(uint64,bool)" <zone-number> false`

### Change maximum active units per zone
`cast send --rpc-url <URL> --private-key <private-key> <contract-address> "setZoneUnitLimit(uint64)" <number>`

### Change Unit time out blocks
`cast send --rpc-url <URL --private-key <private-key> <contract-address> "setUnitTimeoutBlocks(uint64)" <number-of-blocks>`

### Set Mint price
`cast send --rpc-url <URL> --ledger --mnemonic-index 0 <contract-address> "setMintPrice(uint256)" <mint-value>ether`
Loading