0.3.0 • Published 9 months ago
@peaze-labs/react v0.3.0
Getting started
- Run
npm install
. - Run
npm run dev
.
Testing
- Open
localhost:6006
in your browser. - In the left-hand menu you'll see the path
Tests
>wagmi
>App
>Default
. Open this and you'll be able to use the test application.
Third party testing
- For testing Ratio, you'll need specific info and setup. Please contact the team.
Demo
On Goerli, we use MockUSDC contract. To mint this token, go to Etherscan, and use mint()
function to mint any amount of tokens as you need.
To test the Deposit ERC20 flow, you should Approve your USDC
first, and then Deposit USDC
into the contract.
Each on-chain interaction will show our checkout widget.
Currently, Deposit Native Token
flow is using viem
's writeContract
method directly, so we don't get a simulate error in advance (as ticked in PZ-388, e.g. when the wallet doesn't have enough ETH balance), but Alchemy simulation API is still blocking it.
How to use changesets
Check out documentation: https://github.com/changesets/changesets/blob/main/docs/intro-to-using-changesets.md#adding-changesets
Adding changesets
npx changeset
Versioning and publishing
npx changeset version