The generated files will be used to instantiate the new src/providers/evm/contracts/market/contract.ts as stated above.
Acceptance Criteria
A user should be able to transact with the Market.sol public methods having connected their EVM compatible wallet. Using the current UI at PromptWars.tsx,
a user should:
Submit a prompt when a market game match is open
-- Submitting a prompt means approving an ERC20 transfer by allowance of the minimum price as defined in Market.sol
-- Then call the register method of Market.sol to store the string prompt and create a Player record
Currently, there exists contract.ts which is a TS class to interface with the legacy Rust contracts.
We need a similar TS class, but to be used with the new Market.sol Solidity contract.
This TS class will interface with MarketContractContextController.tsx.
Generating the Market.sol ABI
The generated files will be used to instantiate the new
src/providers/evm/contracts/market/contract.ts
as stated above.Acceptance Criteria
A user should be able to transact with the
Market.sol
public methods having connected their EVM compatible wallet. Using the current UI atPromptWars.tsx
,a user should:
allowance
of the minimumprice
as defined inMarket.sol
-- Then call theregister
method of Market.sol to store thestring prompt
and create aPlayer
recordthe server (
onlyOwner
) should:reveal
the game resultsresolve
the game and set the winnerBasically, play the game as it is today.