Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.67 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.67 KB

MultiversX Winter Coding Challenge 2024

Rust implementation

A series of smart contracts written in Rust for the MultiversX blockchain.

Environment Installation

Install the MultiversX Smart Contract Rust SDK

Building the contracts

Use sc-meta in the terminal to build all contracts:

cd mx-wcc24-rs
sc-meta all build

Deploying and Testing Contracts

Use the MultiversX Utility App

  • Login with your developer wallet on Devnet
  • If necessary, you can get funds from web wallet's Faucet
  • Go to the SC Interaction page
  • Deploy the contracts by selecting the Deploy Contract tab and use the [contract-name].wasm file from the /output folder
  • Note the deployed contract's address after the deployment transaction is confirmed
  • You can also look at your scDeploy transaction in the Devnet Explorer. To find the contract's address, select the Logs section
  • After deployment, select the Load ABI tab and select the contract [contract-name].abi.json file from the /output folder
  • Make sure your contract's address is entered in the Contract Address field
  • You are now ready to interact with the contract!

Contracts

A smart contract that allows users to issue and manage ESDT Fungible tokens (SNOW).

A smart contract that allows users to stake ESDT Fungible tokens (WINTER) and earn SNOW rewards.