vimwiki/tech/Solidity.wiki

23 lines
531 B
Plaintext
Raw Normal View History

2021-12-08 20:45:01 +00:00
= Solidity =
Solidity is a language used for smart contracts on several blockchains,
including ethereum.
2021-12-08 21:00:01 +00:00
== 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)
2021-12-09 03:45:01 +00:00
3) Interact with the other contracts
2021-12-08 20:45:01 +00:00
== Keywords ==
2021-12-08 21:00:01 +00:00
- 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