Getting Started with Testing
The MMS API is deployed on testnet for testing and integration. For the chain ID, contract addresses, and subgraph URLs, please refer to the Addresses & Networks page.API Breaking Changes
Contract Parameter Changes
MakeOrderParams
LimitOrderParams
TakeOrderParams
SpendOrderParams
CancelOrderParams
Vault API Changes
Subgraph Schema Changes
- Added
referrerfield to:Order,OpenOrder,Take.
Migration Steps
- Remove all
providerparameters from order calls - Update
LimitOrderParamsto usetakeBookId,makeBookId, andlimitPrice - Remove
ownerparameter from cancel calls - Replace
vault.getLockedAssets(user)withvault.lockedBalances(user) limitOrderParamsgets singlereferrer, notmakeReferrerandtakeReferrer
Important Testing Information
Contract Verification
All contracts have been verified in the block explorer to facilitate testing. You can easily inspect contract code, read contract state, and verify transaction details directly in the explorer.USDC (Mock Token)
USDC is a mock ERC20 token with a public open mint function. You can freely mint USDC tokens for testing purposes without any restrictions. To mint USDC:- Navigate to the USDC contract in the explorer
- Connect your wallet
- Call the
mintfunction with your address and desired amount
Mirror Tokens
Mirror tokens work differently from USDC. Mirror tokens need to be issued by 1st and cannot be minted directly by users. To obtain mirror tokens for testing:- Contact 1st with your wallet address and the desired amount for each mirror token you need
- Mirror tokens will be issued to your specified address
Listed Trading Pairs
By default, there are 5 listed pairs available for testing, all starting with no trading activity.Each pair has 2 books - one for each side of the market. This means there
are 10 books total across the 5 pairs.
Token Decimals and Pricing
- mRTKN6: 6 decimals (same as typical USDC)
- Other mirror tokens: 18 decimals