Skip to content

How‐Tos‐Developing‐with‐Testnet

Michael Collins edited this page Jan 11, 2024 · 1 revision

Developing with Testnet

Prepare Wallet

When using Carbonmark locally with Testnet, you will need to get the corresponding tokens which work with the carbonmark contract on Mumbai.

C3 tokens

  • "0xa1c1cCD8C61FeC141AAed6B279Fa4400b68101d4" See on Mumbai
  • "0xE5d7FEbFf7d73C5a5AfA97047C7863Cd1f6D0748" See on Mumbai
  • => Ask a backend dev to get those tokens!

Matics

Get Matic on Mumbai:

USDCs

Get the correct USDCs on Mumbai which work with Carbonmark Testnet:

Prepare Localhost

✅ With your prepared tokens you can now run localhost with npm run dev-carbonmark and connect your wallet with Mumbai during development.

Change localhost to Mainnet:

In case you want to develop with Mainnet: In the file carbonmark/lib/constants.ts change the DEFAULT_NETWORK to "mainnet" => see the lines here