23 lines
531 B
Plaintext
23 lines
531 B
Plaintext
= Solidity =
|
|
|
|
Solidity is a language used for smart contracts on several blockchains,
|
|
including ethereum.
|
|
|
|
== Structure ==
|
|
|
|
It is a good guideline to strcutre functions that interact with other contracts
|
|
in three phases
|
|
|
|
1) check conditions
|
|
2) perform actions (possibly changing the conditions)
|
|
3) Interact with the other contracts
|
|
|
|
== Keywords ==
|
|
|
|
- external
|
|
- applies to a function
|
|
- allows the function to be called from outside of the contract
|
|
- payable
|
|
- applies to a function
|
|
- allows the function to recieve Ether
|