aufacicenta / pulsemarkets

pulsemarkets-v2-web.vercel.app
1 stars 3 forks source link

Implement Typescript interface for Market Solidity ABI #210

Open netpoe opened 1 year ago

netpoe commented 1 year ago

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

cd solidity/prompt-wars
npx hardhat compile

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:

the server (onlyOwner) should:

Basically, play the game as it is today.

netpoe commented 1 year ago

@Ktoxcon this one may interest you as well.

netpoe commented 11 months ago

@Udit-takkar let's continue with this issue in a new PR. Branch out from aufacicenta:EVM.