Intelligent Contract Language Solidity tutorial series the second-solidity address type introduction. It 's written in front .
Solidity is the Ethernet Square Intelligent Contract programming language, before reading this article, you should have an understanding of the ether square, the intelligent contract, if you do not understand, suggest you first look at th
Basic type conversion in solidity (14) | Getting Started series2017/4/29 posted in Solidity entry seriesClick to view the original text for optimized typography.
Implicit conversionsIf an operator can support different types. The compiler implicitly attempts to convert the type of an operand to the type of another operand, with the same assignment.
In general, the semantics can be converted as
Solidity Tutorial Series The third-solidity function type introduction. It 's written in front .
Solidity is the Ethernet Square Intelligent Contract programming language, before reading this article, you should have an understanding of the ether square, the intelligent contract, if you do not understand, suggest you first look at the etheric square is what
The f
with the chain and describe in the constructor all the business contracts that the module contract will use.the user has written the module contract and deployed it to After juice the blockchain, the module name will be displayed in the "My apps" of juice Open service platform, click on "My Apps" app, will jump to the user open Dapp app. How to set the app's Jump URL, reference module contract writing HTTPS://OPEN.JUZIX.NET/API_DOC/PART03/EXAMPLE/MODULES.MD
Compiling the deployment, te
Solidity Tutorial Series second article-solidity address type description.For a complete list of articles in the solidity series, see Category-solidity.Write in frontSolidity is the Ethereum Smart Contract programming language, before reading this article, you should have an understanding of ethereum, smart contracts, if you do not understand, it is recommended t
Assign Value (Assignment)
deconstruct assignment and return multiple results (destructing Assignments and returning multip values)
The solidity built-in support tuple (tuple), that is, supports a list of possible completely different types, fixed in number (tuple generally refers to two, and a triple generally refers to three).
This built-in structure can return multiple results at the same time, and can also be used to assign values to multiple var
Write in frontSolidity is the Ethereum Smart Contract programming language, you should know about Ethereum and smart contracts before reading this article.If you don't understand, it's recommended that you look at Ethereum first.This part of the official English document is not very thorough, so I refer to the solidity Official document (currently the latest version: 0.4.20) In addition to the in-depth analysis section.Data locationIn the first series
Write in frontSolidity is the Ethereum Smart Contract programming language, you should know about Ethereum and smart contracts before reading this article.If you don't understand, it's recommended that you look at Ethereum first.The first half of this article is a reference to the solidity official document (currently the latest version: 0.4.20) for translation, the latter part of the official documentation does not provide code for the knowledge Poin
In the first article in this series, I introduced the concept of a non-fake token (NFT) and the need for the ERC721 (draft) standard.In this article, we will first introduce the ERC721 standard interface and decompose some requirements. There will also be a brief but important detour on the ERC165 standard. "Todd Quackenbush's display of a toolkit on Unsplash shows tool interfaces and ERC165 standards such as hammers, axes, box cutters, iron and flashlights.
The ERC721 standard states: "Every co
This is Solidity Tutorial series article 7th introduces the etheric units and time units, series with you to thoroughly understand the solidity language.Write in frontSolidity is the Ethereum Smart Contract programming language, you should know about Ethereum and smart contracts before reading this article.If you don't understand, it's recommended that you look at Ethereum first.Subscribe to the Blockchain
Solidity characteristics
1, the exception can not capture2, the function return value can be multiple3, including address and other special types4, the return value declaration can be placed on the function declaration5, run the function will consume gas, gas shortage will cause the intelligent contract can not run6, can be in Go-ethereum, solidity online compiler, mist wallet interface to run the smart co
In the process of compiling and installing solidity, I met a strange problem.Webthree-umbrella/libethereum/libethereum/executive.CPP: in memberfunction 'void Dev::eth::standardtrace::operator () (uint64_t, uint64_t, Dev::eth::instruction, Dev::bigint, Dev::bigint, Dev::bigint, dev::eth::vm*, const dev::eth::extvmface*)':/home/vagrant/code/workspace/webthree-umbrella/libethereum/libethereum/executive.CPP: 81:8: error:unused Variable'returned'[-werror=u
This is the 9th article in the Solidity Tutorial series to introduce solidity error handling.Solidity series complete list of articles please see the classification-solidity. It 's written in front .
Solidity is an intelligent contract programming language for Ethernet, you should have a better understanding of Etherne
While part 1 discussed some or obvious vulnerabilities, this post is about vulnerabilities that HAV E not been exploited widely yet.
Let's skip the introduction and jump straight to them: 4 forcing Ether to a contract
Solidity ' s selfdestruct does two things. It renders the contract useless, effectively deleting the bytecode at this address. It sends all the contract's funds to a target address.
The special case has here, which is this if the receivi
Now the solidity Chinese document, either the translation is too bad, or too old, decided to re-translate.In particular, criticized the Geek Institute named "solidity official document Chinese version of" translation, machine translation is better than it, we still do not look.Write in frontSolidity is the Ethereum Smart Contract programming language, you should know about Ethereum and smart contracts befor
In my study of Ethereum technology, because of less relevant information, so took more detours. So here we will not introduce the grammatical structure of solidity, but will be in the next stage, from the actual combat, in succession to introduce Geth, browser-solidity, mist these three tools, and in the process of constantly explaining the basic concept of ethereum.
Through the practical use of these tools
string : You need to use double quotes "" or single quotation marks, for example: Define a String variable: string Name= "Jake";
String string cannot be obtained by length method
Hex Data : A string preceded by the keyword hex followed by a single or double quotation mark. such as Hex "001122FF". Here's an example to understand what this means:
Contract hexliteral{
function test () returns (string) {
var a = hex "001122FF";
var B = hex "A";
Expected primary expression
only be used by objects within this contract (or derivative contracts).
Mapping or array: Before solidity joins the array type, everyone uses a mapping type similar to mapping (address = = uint). This statement can also be written in address registrantspaid[], but mapping's storage footprint is smaller (smaller footprint). This mapping variable will be used to save the number of payments to the participants (as indicated by their wallet address) for
(Visibility and accessors). For details, see the contents of the function in the following type.
functions modifier (function Modifiers)function modifiers are used to enhance semantics.
Event (events)Events are a convenient interface provided by the Ethereum virtual machine (EVM) log infrastructure. Used to get the event that is currently occurring.
Contract Simpleauction {
Event anewhigherbid (address bidder, uint amount);
function Bid (UINT Bidvalue) external {
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.