Smart Contracts Language
Solidity language。
Last updated
Solidity language。
Last updated
MAPO-Relay-Chain’s smart contracts mainly use Solidity language as the programming language,The following MAPO-Relay-Chain
is collectively referred to as MAPO.
Previous knowledge of programming languages, especially of JavaScript or Python, can help you make sense of differences in smart contract languages. We also recommend you understand smart contracts as a concept before digging too deep into the language comparisons. .
Object-oriented, high-level language for implementing smart contracts.
Curly-bracket language that has been most profoundly influenced by C++.
Statically typed (the type of a variable is known at compile time).
Supports:
Inheritance (you can extend other contracts).
Libraries (you can create reusable code that you can call from different contracts – like static functions in a static class in other object oriented programming languages).
Complex user-defined types.
This example should give you a sense of what Solidity contract syntax is like. For a more detailed description of the functions and variables, see the docs.
If you are a beginner, there are many tutorials and learning tools out there.
Good developer tooling available.
Solidity has a big developer community, which means you'll most likely find answers to your questions quite quickly.