The Transformers Smart Contract 2.

in #crypto7 months ago

Writing contract​
If you are new to blockchain development and don't know where to start, or if you just want to understand how to deploy and interact with smart contracts, this guide is for you. We will walk through creating and deploying a simple smart contract on the Goerli test network using a virtual wallet (Metamask), Solidity, Hardhat, and Alchemy (don't worry if you don't understand what any of this means yet, we will explain it!).

The EVM used on the transformers chain supports most of the characteristics of the Solidity standard, including contract proposal standards such as ERC-20, ERC-721, and ERC-3525, so if you use smart contract related functions, you need to be familiar with the Solidity. The other features have been adjusted to some extent due to the architecture model of transformers, and the specific differences will be detailed in the following sections.
If you are not familiar with Solidity, you can refer to the following link to complete the study of Solidity:
Solidity document
EVM operation code
Solidity Writing examples

The deployment of smart contracts requires the contract source code to be compiled into EVM bytecode, so you should be familiar with the relevant tools for Solidity compilation. The following are the familiar Remix IDE tools that can compile Solidity online:
Remix
Remix document

Transformers adopts the same standards as Ethereum smart contracts for Ethereum compatible smart contracts. Please read and learn EIP related standards (such as ERC-20) first, and refer to relevant implementation examples to write your own contract.
The reference link is as follows:
EIP
ERC
OpenZeppelin
The basic unit of transfer for TTOS currency in the contract is $1^{-8}TTOS.

For example, there are a total of 999.92064300 TTOS, or 99,992,064,300 contract transfer units.

Balance: 999.92064300
The contract does not support block variables and tx variables.
The balance attribute value of the address type variable is for reference only and is not recommended for use.
The type(X) expression only provides limited support and is not recommended for use.
Prohibit depositing TTOS coins into contracts during contract deployment.

The next article wil focus on contract deployment and contract execution.
Be sure to follow TFSC on social media channels below to receive daily updates on the TFSC ecosystem. Also, if you are interested in our vision and willing to support the TFSC ecosystem, please add $TFSC to your portfolio.
TFSC official Twitter: www.twitter.com/tfscchain
TFSC Discord community: https://discord.gg/W4YsQduNrf
Transformers_Magic Cube_Light_Logo_PNG.png

Coin Marketplace

STEEM 0.20
TRX 0.14
JST 0.030
BTC 68666.90
ETH 3251.63
USDT 1.00
SBD 2.67