BoN Mission 5
Smart Contracts are persistent scripts which can be deployed on the blockchain and called upon to perform specific tasks. They can be simple automations of repetitive tasks, such as sending transactions. They can also perform actions involving complex logic, on & off-chain data, be part of a larger mesh of interconnected smart contracts, and so on.
Smart Contracts will be important in the life of a Validator. They help automate rewards distribution, manage delegations from 3rd parties, participate in governance and tap into the DeFi potential of your stake. Before we get into all of that, let's first try deploying and interacting with one.
Details:
• Counter smart contract deployment tutorial (link) (https://docs.elrond.com/developers/dev-tutorials/the-counter-smart-contract)• Deployment output example:
{
"tx": "b6175893ec56b9fc26592f0c8a90ce5f2a2d002289ac080d8a402c1d161cae64",
"contract": "erd1qqqqqqqqqqqqqpgqg88kuq70vkwawnp77n354jte5j8kr59rtcxqpeht57"
}
• Mission #2 (closed) details (link) (https://t.me/BattleOfNodes/219) - Shard 0: erd1hqplnafrhnd4zv846wumat2462jy9jkmwxtp3nwmw8ye9eclr6fq40f044
- Shard 1: erd1utftdvycwgl3xt0r44ekncentlxgmhucxfq3jt6cjz0w7h6qjchsjarml6 • Transaction value: 100 xERD • Get the latest erdpy version:
wget -O - https://raw.githubusercontent.com/ElrondNetwork/elrond-sdk/master/erdpy-up.py | python3
• Remember to run this before starting the tutorial:
export PATH={HOME}/.local/bin:{PATH}