Welcome to the Wizard of Oz, a TypeScript and Node.js project that demonstrates how to execute token swaps and non-fungible token (NFT) transactions on a blockchain system. In this project, we provide three examples to guide you through the process of performing three transactions.Prerequisites
Before you can run the Wizard of Oz project, you will need to have the following tools installed on your system:
- Node.js
- Yarn
To get started, please follow the steps below:
Clone the repository using the following command:bash
git clone https://github.com/crypto-coders-au/wizard-of-oz.git
Navigate to the project directory:bash
cd wizard-of-oz
Install the project dependencies:
yarn install
The Wizard of Oz project comes with three examples that demonstrate how to execute token swaps and NFT transactions. Please follow the instructions below to run each example:
In this example, a user swaps 5 of token A for 1 of token B from the system wallet.
To run this example, execute the following command:
yarn swap
In this example, a user burns a valid NFT from a collection for a fixed reward of 10 of token B.
To run this example, execute the following command:
yarn burn
Note: This instruction will fail because you don't have an NFT from the valid collection to burn.
In this example, a user has to pay 10 of token A to update a trait on their NFT.
To run this example, execute the following command:
yarn update
If you have any questions or encounter any issues while using the Wizard of Oz project, please feel free to ask for help on our Discord channel:
We will be happy to assist you.