You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: the plugin references a single, static, nonchangeable smart contract address.
But each DF game is a new smart contract address, and our plugin depends on the respective DF contract addresses.
Potential solutions:
Create a Nightmarket global factory contract which spins out a new Nightmarket contract for each new DF game contract. Enable this feature in game. A bit frictioned since one player will have to deploy new nightmarket contracts for each game.
Rewrite Nightmarket contracts to work with all Darkforest games. It queries any address. The plugin instantiates the NightMarket contract with the DF contract address used for mappings/data lookups. Not super elegant, potential security issues.
Open to potential, better solutions, I haven't thought about this too deeply.
The text was updated successfully, but these errors were encountered:
freelerobot
changed the title
nice to have: factory pattern this contract
factory contract: users can use plugin to deploy contract for round
Apr 22, 2022
const Greeter = await ethers.getContractFactory("Greeter");
already providedd by ethers... so easy
freelerobot
changed the title
factory contract: users can use plugin to deploy contract for round
Production: Implement better factor contract pattern
Jun 10, 2022
Problem: the plugin references a single, static, nonchangeable smart contract address.
But each DF game is a new smart contract address, and our plugin depends on the respective DF contract addresses.
Potential solutions:
The text was updated successfully, but these errors were encountered: