Skip to content

Web3bazaar/testnet-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

Testnet Contracts

👋 About this repo

This repo contains the solidity code used in the Bazaar smart contracts hosted on the compatible EVM testnets.

📝 About the Smart contracts

The Web3 Bazaar dApp is supported by non-custodial escrow contracts that enable peer-to-peer swaps of ERC-20, ERC-721 or ERC-1155 tokens. Contracts' only purpose is to switch asset ownership from one wallet address to another under the trades pre-established in it.

Bazaar smart contracts are:

  • fully permisionless: every token from a supported standard can be traded by every wallet withouth censorship.
  • non-custodial: Your assets never leave your wallet until the trade is complete.
  • free to use: no fees are charged to access or swap assets within the Bazaar (apart from gas fees)
  • bundle transaction enabled: asset owners can do 1:1 trades or mix assets in a bundle to trade for another set of assets owned by the counter-party.

Testnets available

Testnet Contract address
Mumbai 0x0a50b369f107aef88e83b79f8e437eb623ac4a0a

👷 How to test the Web3 Bazaar?

Note: Make sure to connect your wallet to an available test network. There won't be any costs associated with any transaction or fees you'll be paying interacting with the contracts below

0- Fund your wallet with native tokens

Before you start minting tokens or interacting with Bazaar contract you'll need to fund your wallet with native tokens of te corresponding test network. You can use one of the faucets below:

Testnet Explorers Testnet Faucets
Mumbai https://mumbai.polygonscan.com/ https://faucet.polygon.technology/

1 -Fund your wallet with tradeable assets

Go to one of the smart contracts below and connect your wallet on the connect to web3 button:

Asset type Network Address Opensea Collection
ERC-20 Mumbai 0x89A...6c41 N/A
ERC-20 V2 Mumbai 0xA2c...d60BA N/A
ERC-721 Mumbai 0x8ba..BD2B GO
ERC-1155 Mumbai 0xc70...66f GO

Within the contract, go to the write tab and execute method .mint.

Note: In the ERC-20 contract you'll be asked to provide a value for the payableAmount parameter. This is the value in Matic that will be used to mint the token. Providing '0' as value will consume none of your test tokens and mint 10 units of the ERC-20 token

2 - Repeat the first step with a different wallet

If you want to complete the whole flow yourself you’ll need to fund another wallet with a different asset type and role-play as your counterparty.

Or, you can invite friend and make your trades much funnier.

3 - Create and execute trades in the Bazaar

Now that your wallet is funded with testnet assets, you can create and execute trades from the Bazaar dApp to help us improve the UX or spot eventual bugs in the interface

Happy P2P trades frens

About

Solidity code and how to use testnet contracts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published