.main { | |
display: flex; | |
flex-direction: column; | |
justify-content: space-between; | |
align-items: center; | |
padding: 6rem; | |
min-height: 100vh; | |
} | |
.description { |
import Head from 'next/head' | |
import Image from 'next/image' | |
import { Inter } from 'next/font/google' | |
import styles from '@/styles/Home.module.css' | |
import React, { useState, useEffect } from "react"; | |
import Web3 from "web3"; | |
const MY_CONTRACT_ABI = [ | |
{ | |
inputs: [], |
pragma solidity =>0.5.1 <0.7.0; | |
contract employees_records | |
{ | |
int id; | |
string f_name; | |
string last_name; | |
string address_; | |
string mob_no; |
pragma solidity =>0.4.1 <0.4.17; | |
contract employees_records | |
{ | |
int id; | |
string f_name; | |
string last_name; | |
string address_; | |
string mob_no; |
pragma solidity >=0.6.2 <0.7.0; | |
contract store_load_name | |
{ | |
string first_name; | |
function store(string memory _f_name)public { | |
first_name=_f_name; | |
} | |
function load() public view returns(string memory) { | |
return first_name; |
Both Cefi and Defi provide a way for people to manage their money and each has its advantages and disadvantages.
All over the world, people use traditional financial services every day. However, these services are provided by big banks and always have a single point of failure. CeFi is an extension of the existing financial model, but upgraded to the next level with crypto. "It alleviates one of the biggest pain points of the traditional financial system — accessibility but keeps the usability and simplicity as it's more familiar to most people." said Dashdorj.
# Smart Contract for Voting with Binance Smart ChianIDE | |
<p align="center"> | |
<img src="https://user-images.githubusercontent.com/16441258/104402961-70bdb880-5592-11eb-8338-4e95249f4a4c.png", align="center"> | |
###### In this smart contract, we will implement a voting process along with delegation. We'll use Solidity as a programming language, and [Metamask](https://metamask.io/) for the deployment and testing. All this will be done using [Binance Smart ChainIDE](https://binanceide.com/project/welcome). | |
### 1. Preliminaries | |
###### In this section we will briefly explain the background knowledge to make you better understand the smart contract. |
In this smart contract, we will implement a voting process along with delegation. We'll use Solidity as a programming language, and Metamask for the deployment and testing. All this will be done using Binance IDE.
Friends who have some knowledge of digital currency should know about Binance. Binance recently launched a blockchain that is compatible with Ethereum (EVM) and runs smart contracts, called Binance Smart Chain. This chain uses proof of stack alliance (POSA) to conduct node election and consistency verification. Participants use BNB mortgage to participate. If the verification transaction is successful, a valid block is proposed, and the transaction fee in the block will be charged.
What we, at WhiteMatrix Academy want to introduce today is how to deploy a smart contract on BSC using Binance IDE and Metamask.