admin
What's here
This directory contains some helper tools for interaction with creature racer contracts.
Most "admin" functions need to be called either by contract deployer or by an operator.
Scripts in this directory usually assume testnet environment, i.e.
API endpoint: https://stacksapi-testnet.wannabe.games
deployer address, as defined in Devnet.toml
Setting the operator
Setting the operator happens by calling set-operator function of creature-racer-admin contract. This function needs to be called by a contract owner (deployer). You can use set-operator.js.
Example, to set wallet_1 as an operator:
node set-operator.js ST1SJ3DTE5DN7X54YDH5D64R3BCB6A2AG2ZQ8YPD5Last updated