Deploy Script (P1)
Closed this issue · 0 comments
MaciejIwan commented
Add .js script which deploy all contracts and move abi and addresses to frontend catalog.
Abi files and address are needed to map contract methods on frontend side.
For better understanding check deploy Token file and see which .json files are being moved and handling basic token operations in frontend files. Ethers docs could be useful https://docs.ethers.org/v5/api/contract/example/
I prepare some steps how it could look
- addrTTPSC = new Token()
- addrPay = new Payments(addrTTPSC)
- Then you have to transfer funds (tokens) from the original token address to the manager address - addrPay
- You create a contract addrRew = RewardsManager(addrPay)
- Then move the built files to the appropriate path in the frontend subfolder