United Nations Educational, Scientific and Cultural Organization
The UNESCO Institute for Information Technologies in Education (UNESCO IITE) is the only UNESCO Category 1 Institute that holds a global mandate for Information and Communication Technologies (ICT) in Education. In line with the new Education 2030 Agenda, IITE has developed its strategic priority areas to meet new demands and tasks ahead. The mission of UNESCO IITE is to promote the innovative use of ICT and serve as facilitator and enabler for achieving Sustainable Development Goal 4 (SDG 4) through ICT-enabled solutions and best practices.
WebAssembly and Astar Network
Astar & Shiden runtimes are based on Substrate, and both networks incorporate pallet-contracts, a sandboxed environment used to deploy and execute WebAssembly smart contracts. Any language that compiles to Wasm may be deployed and run on this Wasm Virtual Machine, however, the code should be compatible with the pallet-contracts API.
For WASM smart contracts you can use any compatible programming language, not only Rust.
Implementation
1#[derive(Default)]2#[ink(storage)]3pub struct AutomatedMarketMaker {4 total_shares: Balance, // Stores the total amount of share issued for the pool5 total_token1: Balance, // Stores the amount of Token1 locked in the pool6 total_token2: Balance, // Stores the amount of Token2 locked in the pool7 shares: Mapping<AccountId, Balance>, // Stores the share holding of each provider8 token1_balance: Mapping<AccountId, Balance>, // Stores the token1 balance of each user9 token2_balance: Mapping<AccountId, Balance>, // Stores the token2 balance of each user10 fees: Balance, // Percent of trading fees charged on trade11}
Do you have an experience with implementing of decentralized exchanges? Ping me, please.
TBD