One of the reasons why Solidity is easy to learn is its similarity to other programming languages. If you have experience with JavaScript or C++, you will find the syntax of Solidity quite familiar. Solidity code is also easy to read and understand, thanks to its clear and concise syntax.
Ethereum is an open-source blockchain platform that offers smart contract facilities. Solidity was first introduced as a new type of programing language for the Ethereum platform. Developers use the Solidity programming language to develop smart contracts. Using Solidity, you can program the contracts to do any type of task.
Solidity is a type of object-oriented programming language. This programing language is developed specifically for smart contracts. This type of language is widely used in creating smart contracts features in blockchain platforms.
To understand Solidity better developers, need to dive into the key elements of this language, such as the compiler, pragma, reserved keywords, value types, variables, etc. There are already many use cases of using Solidity as the foundation for smart contracts. However, this language also has its fair share of issues.
Here, at 101 blockchains, we are offering courses that will help you comprehend this topic in a simple manner. Using our courses, you will understand the concepts behind Solidity and Smart contracts in no time.
Learn more about Solidity and smart contracts from here ->
Ethereum Development Fundamentals course
https://academy.101blockchains.com/courses/ethereum-development-fundamentals
The Complete Ethereum Technology Course
https://academy.101blockchains.com/courses/ethereum-technology-course
Learn more about the certification courses from here ->
Certified Enterprise Blockchain Professional (CEBP) course
https://academy.101blockchains.com/courses/blockchain-expert-certification
Certified Enterprise Blockchain Architect (CEBA) course
https://academy.101blockchains.com/courses/certified-enterprise-blockchain-architect
Certified Blockchain Security Expert (CBSE) course
https://academy.101blockchains.com/courses/certified-blockchain-security-expert
Learn more from our guide ->
https://101blockchains.com/solidity-tutorial/
https://101blockchains.com/solidity-vs-move-vs-clarity/
https://101blockchains.com/smart-contract-best-practices/
https://101blockchains.com/solidity-issues/
https://101blockchains.com/smart-contracts/
https://101blockchains.com/ethereum-smart-contracts/
https://101blockchains.com/blockchain-smart-contract-examples/
Understanding the Basics of Decentralized Applications (dApps)Capital Numbers
The world of DApps is rapidly evolving, and it can be difficult to keep up with the latest developments. This presentation is designed to provide you with a solid foundation in DApps, so you can stay up-to-date and understand their potential for disrupting traditional industries.
Visit here - https://bit.ly/3Ls1ZeB
Introduction to Solidity and Smart Contract Development (9).pptxGene Leybzon
Blockchain is a revolutionary technology that is changing the way we handle digital transactions. It is a technology that can be applied in many different fields, from logistics and supply chain management to real estate and voting systems.
In order to help our clients to plan and execute digital transformation, we need to understand foundational elements, including smart contracts and languages that are popular in developing smart contracts.
In this presentation, we share an overview of what a smart contract is and how it functions, look into the real-world examples of smart contracts, and tools that are used to develop smart contracts. We look into Solidity, a powerful programming language that enables developers to create complex and sophisticated smart contract applications on Ethereum-compatible blockchains.
There is no expectation of prior knowledge of blockchain technology or smart contracts development and we are expecting to have a lively and engaging session.
Ethereum Tutorial - Ethereum Explained | What is Ethereum? | Ethereum Explain...Simplilearn
This presentation on Ethereum will help you understand what is Ethereum, Ethereum features which includes cryptocurrency, smart contracts, Ethereum virtual machine, decentralized application, decentralized autonomous organization, applications of Ethereum and at the end you will see a demo on smart contract. Ethereum is a blockchain based distributed computing platform that enables developers to build and deploy their decentralized applications. Ether(ETH) is a cryptocurrency that runs on Ethereum network. It is used to pay for the computational resources and transaction fees on the Ethereum network. Ether can be utilized for building decentralized applications, smart contracts and making standard peer to peer payments. Now, lets deep dive into these slides and understand what is Ethereum and how does it work.
Below topics are explained in this Ethereum presentation:
1. What is Ethereum?
2. Ethereum features
- Cryptocurrency
- Smart contract
- Ethereum virtual machine
- Decentralized application
- Decentralized autonomous organization
3. Applications of Ethereum
4. Demo - Smart contract
Simplilearn’s Blockchain Certification Training has been designed for developers who want to decipher the global craze surrounding Blockchain, Bitcoin and cryptocurrencies. You’ll learn the core structure and technical mechanisms of Bitcoin, Ethereum, Hyperledger and Multichain Blockchain platforms, use the latest tools to build Blockchain applications, set up your own private Blockchain, deploy smart contracts on Ethereum and gain practical experience with real-world projects.
Why learn Blockchain?
Blockchain technology is the brainchild of Satoshi Nakamoto, which enables digital information to be distributed. A network of computing nodes makes up the Blockchain. Durability, robustness, success rate, transparency, incorruptibility are some of the enticing characteristics of Blockchain. By design, Blockchain is a decentralized technology which is used by a global network of the computer to manage Bitcoin transactions easily. Many new business applications will result in the usage of Blockchain such as Crowdfunding, smart contracts, supply chain auditing, Internet of Things(IoT), etc.
The Blockchain Certification Training Course is recommended for:
1. Developers
2. Technologists interested in learning Ethereum, Hyperledger and Blockchain
3. Technology architects wanting to expand their skills to Blockchain technology
4. Professionals curious to learn how Blockchain technology can change the way we do business
5. Entrepreneurs with technology background interested in realizing their business ideas on the Blockchain
Learn more at: https://www.simplilearn.com/
More info: https://blockchainhub.net/
Ethereum for Beginners: History of the Blockchain & Ethereum, Components, Outlook, Web 3.0, Serverless, Decetralized Universal World Computer
Smart contracts are the next version of automated contracts where the user won't have to rely on trust. Smart contracts are automated algorithmic digital forms of contracts where parties can exchange assets without any intermediaries based on specified rules. Here, the program within the smart contract will self-execute based on the conditions previously defined by the parties.
There are certain benefits to using smart contracts such as autonomous, secured, interruption-free, trustless, cost-effective, fast performance, and accurate and error-free. But here, we will analyze the examples of smart contracts, such as how it can be useful in digital identity, supply chain management, insurance, etc.
To help you understand how smart contracts work or how you can utilize this new form of technology for your personal gain, or company 101 Blockchains offers an array of courses. You can use these courses to learn more about smart contracts and its role in various sectors.
Learn more about smart contracts from here ->
Ethereum Development Fundamentals course
https://academy.101blockchains.com/courses/ethereum-development-fundamentals
The Complete Ethereum Technology Course
https://academy.101blockchains.com/courses/ethereum-technology-course
Learn more about the certification courses from here ->
Certified Enterprise Blockchain Professional (CEBP) course
https://academy.101blockchains.com/courses/blockchain-expert-certification
Certified Enterprise Blockchain Architect (CEBA) course
https://academy.101blockchains.com/courses/certified-enterprise-blockchain-architect
Certified Blockchain Security Expert (CBSE) course
https://academy.101blockchains.com/courses/certified-blockchain-security-expert
Learn more from our guide ->
https://101blockchains.com/smart-contracts/
https://101blockchains.com/ethereum-smart-contracts/
https://101blockchains.com/blockchain-smart-contract-examples/
https://101blockchains.com/smart-contract-use-cases/
https://101blockchains.com/what-is-a-smart-contract/
Ethereum is an open-source blockchain platform that offers smart contract facilities. Solidity was first introduced as a new type of programing language for the Ethereum platform. Developers use the Solidity programming language to develop smart contracts. Using Solidity, you can program the contracts to do any type of task.
Solidity is a type of object-oriented programming language. This programing language is developed specifically for smart contracts. This type of language is widely used in creating smart contracts features in blockchain platforms.
To understand Solidity better developers, need to dive into the key elements of this language, such as the compiler, pragma, reserved keywords, value types, variables, etc. There are already many use cases of using Solidity as the foundation for smart contracts. However, this language also has its fair share of issues.
Here, at 101 blockchains, we are offering courses that will help you comprehend this topic in a simple manner. Using our courses, you will understand the concepts behind Solidity and Smart contracts in no time.
Learn more about Solidity and smart contracts from here ->
Ethereum Development Fundamentals course
https://academy.101blockchains.com/courses/ethereum-development-fundamentals
The Complete Ethereum Technology Course
https://academy.101blockchains.com/courses/ethereum-technology-course
Learn more about the certification courses from here ->
Certified Enterprise Blockchain Professional (CEBP) course
https://academy.101blockchains.com/courses/blockchain-expert-certification
Certified Enterprise Blockchain Architect (CEBA) course
https://academy.101blockchains.com/courses/certified-enterprise-blockchain-architect
Certified Blockchain Security Expert (CBSE) course
https://academy.101blockchains.com/courses/certified-blockchain-security-expert
Learn more from our guide ->
https://101blockchains.com/solidity-tutorial/
https://101blockchains.com/solidity-vs-move-vs-clarity/
https://101blockchains.com/smart-contract-best-practices/
https://101blockchains.com/solidity-issues/
https://101blockchains.com/smart-contracts/
https://101blockchains.com/ethereum-smart-contracts/
https://101blockchains.com/blockchain-smart-contract-examples/
Understanding the Basics of Decentralized Applications (dApps)Capital Numbers
The world of DApps is rapidly evolving, and it can be difficult to keep up with the latest developments. This presentation is designed to provide you with a solid foundation in DApps, so you can stay up-to-date and understand their potential for disrupting traditional industries.
Visit here - https://bit.ly/3Ls1ZeB
Introduction to Solidity and Smart Contract Development (9).pptxGene Leybzon
Blockchain is a revolutionary technology that is changing the way we handle digital transactions. It is a technology that can be applied in many different fields, from logistics and supply chain management to real estate and voting systems.
In order to help our clients to plan and execute digital transformation, we need to understand foundational elements, including smart contracts and languages that are popular in developing smart contracts.
In this presentation, we share an overview of what a smart contract is and how it functions, look into the real-world examples of smart contracts, and tools that are used to develop smart contracts. We look into Solidity, a powerful programming language that enables developers to create complex and sophisticated smart contract applications on Ethereum-compatible blockchains.
There is no expectation of prior knowledge of blockchain technology or smart contracts development and we are expecting to have a lively and engaging session.
Ethereum Tutorial - Ethereum Explained | What is Ethereum? | Ethereum Explain...Simplilearn
This presentation on Ethereum will help you understand what is Ethereum, Ethereum features which includes cryptocurrency, smart contracts, Ethereum virtual machine, decentralized application, decentralized autonomous organization, applications of Ethereum and at the end you will see a demo on smart contract. Ethereum is a blockchain based distributed computing platform that enables developers to build and deploy their decentralized applications. Ether(ETH) is a cryptocurrency that runs on Ethereum network. It is used to pay for the computational resources and transaction fees on the Ethereum network. Ether can be utilized for building decentralized applications, smart contracts and making standard peer to peer payments. Now, lets deep dive into these slides and understand what is Ethereum and how does it work.
Below topics are explained in this Ethereum presentation:
1. What is Ethereum?
2. Ethereum features
- Cryptocurrency
- Smart contract
- Ethereum virtual machine
- Decentralized application
- Decentralized autonomous organization
3. Applications of Ethereum
4. Demo - Smart contract
Simplilearn’s Blockchain Certification Training has been designed for developers who want to decipher the global craze surrounding Blockchain, Bitcoin and cryptocurrencies. You’ll learn the core structure and technical mechanisms of Bitcoin, Ethereum, Hyperledger and Multichain Blockchain platforms, use the latest tools to build Blockchain applications, set up your own private Blockchain, deploy smart contracts on Ethereum and gain practical experience with real-world projects.
Why learn Blockchain?
Blockchain technology is the brainchild of Satoshi Nakamoto, which enables digital information to be distributed. A network of computing nodes makes up the Blockchain. Durability, robustness, success rate, transparency, incorruptibility are some of the enticing characteristics of Blockchain. By design, Blockchain is a decentralized technology which is used by a global network of the computer to manage Bitcoin transactions easily. Many new business applications will result in the usage of Blockchain such as Crowdfunding, smart contracts, supply chain auditing, Internet of Things(IoT), etc.
The Blockchain Certification Training Course is recommended for:
1. Developers
2. Technologists interested in learning Ethereum, Hyperledger and Blockchain
3. Technology architects wanting to expand their skills to Blockchain technology
4. Professionals curious to learn how Blockchain technology can change the way we do business
5. Entrepreneurs with technology background interested in realizing their business ideas on the Blockchain
Learn more at: https://www.simplilearn.com/
More info: https://blockchainhub.net/
Ethereum for Beginners: History of the Blockchain & Ethereum, Components, Outlook, Web 3.0, Serverless, Decetralized Universal World Computer
Smart contracts are the next version of automated contracts where the user won't have to rely on trust. Smart contracts are automated algorithmic digital forms of contracts where parties can exchange assets without any intermediaries based on specified rules. Here, the program within the smart contract will self-execute based on the conditions previously defined by the parties.
There are certain benefits to using smart contracts such as autonomous, secured, interruption-free, trustless, cost-effective, fast performance, and accurate and error-free. But here, we will analyze the examples of smart contracts, such as how it can be useful in digital identity, supply chain management, insurance, etc.
To help you understand how smart contracts work or how you can utilize this new form of technology for your personal gain, or company 101 Blockchains offers an array of courses. You can use these courses to learn more about smart contracts and its role in various sectors.
Learn more about smart contracts from here ->
Ethereum Development Fundamentals course
https://academy.101blockchains.com/courses/ethereum-development-fundamentals
The Complete Ethereum Technology Course
https://academy.101blockchains.com/courses/ethereum-technology-course
Learn more about the certification courses from here ->
Certified Enterprise Blockchain Professional (CEBP) course
https://academy.101blockchains.com/courses/blockchain-expert-certification
Certified Enterprise Blockchain Architect (CEBA) course
https://academy.101blockchains.com/courses/certified-enterprise-blockchain-architect
Certified Blockchain Security Expert (CBSE) course
https://academy.101blockchains.com/courses/certified-blockchain-security-expert
Learn more from our guide ->
https://101blockchains.com/smart-contracts/
https://101blockchains.com/ethereum-smart-contracts/
https://101blockchains.com/blockchain-smart-contract-examples/
https://101blockchains.com/smart-contract-use-cases/
https://101blockchains.com/what-is-a-smart-contract/
What is A Smart Contract? | Smart Contracts Tutorial | Smart Contracts in Blo...Simplilearn
This presentation on smart contract tutorial will help you understand what is a smart contract, why we need a smart contract, solidity for a smart contract, Blockchain implementation of the smart contract, voting process, hospitals and at the end you will see a use case implementation on crowdfunding smart contract. Smart contracts are self-executing contracts which contain the terms and conditions of an agreement between the peers. A smart contract is very similar to a vending machine. It eliminates the need for intermediate and escrow services. The terms and conditions of an agreement are written in code. These agreements facilitate the exchange of money, shares, property etc. All of this process is executed in Blockchain's decentralized platform. So, let us get started and understand what is a smart contract.
Below topics are explained in this smart contract presentation:
1. Why smart contract?
2. What is a smart contract?
3. Solidity for smart contract
4. Blockchain implementation of a smart contract
5. Voting process
6. Hospitals
7. Use case - Crowd funding smart contract
Simplilearn’s Blockchain Certification Training has been designed for developers who want to decipher the global craze surrounding Blockchain, Bitcoin and cryptocurrencies. You’ll learn the core structure and technical mechanisms of Bitcoin, Ethereum, Hyperledger and Multichain Blockchain platforms, use the latest tools to build Blockchain applications, set up your own private Blockchain, deploy smart contracts on Ethereum and gain practical experience with real-world projects.
Why learn Blockchain?
Blockchain technology is the brainchild of Satoshi Nakamoto, which enables digital information to be distributed. A network of computing nodes makes up the Blockchain. Durability, robustness, success rate, transparency, incorruptibility are some of the enticing characteristics of Blockchain. By design, Blockchain is a decentralized technology which is used by a global network of the computer to manage Bitcoin transactions easily. Many new business applications will result in the usage of Blockchain such as Crowdfunding, smart contracts, supply chain auditing, etc.
The Blockchain Certification Training Course is recommended for:
1. Developers
2. Technologists interested in learning Ethereum, Hyperledger and Blockchain
3. Technology architects wanting to expand their skills to Blockchain technology
4. Professionals curious to learn how Blockchain technology can change the way we do business
5. Entrepreneurs with technology background interested in realizing their business ideas on the Blockchain
Learn more at: https://www.simplilearn.com/
Understanding Proof of Work (PoW) and Proof of Stake (PoS) AlgorithmsGautam Anand
We will focus on understanding "Proof of Stake (PoS)" Algorithm, how it different from "Proof of Work" algorithm, the performance benefits and security overview. We will also discuss the upcoming blockchain protocols that are planning to move to PoS.
Ethereum is the largest decentralized software platform that allows you to build smart contracts and decentralized applications without any downtime and without any third party interference.
VISIT:- http://www.oodlestechnologies.com/online-cryptocurrency-wallet
Decentralized applications 101: How and why to build a DAppErik Trautman
You're already well familiar with the design, interaction and development patterns of "normal" web and mobile apps. In this meetup, we'll shift the focus to describe what a decentralized app (DApp) actually is from the very top to the nuts and bolts below the surface.
This is intended to help the full spectrum of designers, developers and product people to understand why they might create a DApp in the first place and how that is different than working with web 2 applications. We'll cover the high level user-facing aspects (like interactions and flows) down to the low-level of the stack (the actual blockchain) so you understand what you're getting into.
We assume you know what a blockchain is.
Learn more about NEAR, the scalable developer-friendly blockchain, at https://nearprotocol.com
Basics you need to know about Solidity and how it works. Learn the simple way of building a smart contract in Solidity. Tools that can be used with Solidity.
Crypto wallets are a type of digital wallet specifically used for storing digital currencies. These are basically applications that can help you access blockchain platforms and help you retrieve and use your crypto assets.
There are usually two types of crypto wallets - Hot Wallets and Cold Wallets. Hot wallets are a type of crypto wallets that are always connected to the internet. This type of wallet is less secured than a Cold wallet. Cold wallets are a type of crypto wallets that are offline. Typically, they serve as vaults for your important documents and assets.
You need to choose a type of wallet based on your needs. However, to fully understand how this works, you have to learn about the underlying working process of the wallets. Here, 101 Blockchains can greatly help you out. We have courses that will specifically target your needs and help you understand the mechanism behind blockchain technology-based wallets.
Learn more about the cryptocurrency from these courses ->
Stablecoin Fundamentals Masterclass
https://academy.101blockchains.com/courses/stablecoin-masterclass
Getting Started with Bitcoin Technology Course
https://academy.101blockchains.com/courses/getting-started-with-bitcoin-technology
We also offer lucrative certification courses for professionals. Learn more about these courses from here ->
Certified Enterprise Blockchain Professional (CEBP) course
https://academy.101blockchains.com/courses/blockchain-expert-certification
Certified Enterprise Blockchain Architect (CEBA) course
https://academy.101blockchains.com/courses/certified-enterprise-blockchain-architect
Certified Blockchain Security Architect (CBSE) course
https://academy.101blockchains.com/courses/certified-blockchain-security-expert
Read our full guide on this topic ->
https://101blockchains.com/crypto-wallet-list/
https://101blockchains.com/types-of-crypto-wallets/
https://101blockchains.com/crypto-wallets/
https://101blockchains.com/paper-wallets/
https://101blockchains.com/software-wallet/
https://101blockchains.com/hot-wallet-vs-cold-wallet/
https://101blockchains.com/best-hardware-wallets/
https://101blockchains.com/blockchain-wallet/
https://101blockchains.com/best-nft-wallets/
https://101blockchains.com/top-defi-wallets/
Presentation by DHS S&T at the NY Blockchain 360 Conference regarding Blockchain's relevance to the Homeland Security Enterprise. Results of security and privacy research and development over the last 2+ years and next steps.
The basic idea of decentralization is to distribute control and authority to the peripheries of an organization instead of one central body being in full control of the organization.
Ethereum is approaching its most anticipated upgrade ever: the merge. The merge is one of the major milestones towards ETH 2.0, bringing with it several benefits to users and holders alike.
In this webinar we will dive into how the merge will work and its implications for the future of Ethereum. We will analyze key metrics surrounding Ethereum’s security, staking rewards and more, while also providing a long-term outlook following the merge.
Programming smart contracts in solidityEmanuel Mota
Ethereum Overview and what are Smart Contracts and what are their limitations. A Solidity programming language Crash Course. How to create an ERC20 token. What is an ICO on Ethereum.
There are four different types of blockchain - Public blockchain, Private blockchain, Consortium blockchain and Hybrid blockchain.
This presentation gives a glimpse about blockchain technology and the different types of blockchain. Hope it helps!
How to Start Building in Web3 – Smart Contract Design & Development Part 1Zeeve
Sankalp Sharma, Co-Founder & VP of Engineering of Zeeve, starts the webinar by briefly introducing the topic of smart contract design and development, emphasizing the importance of understanding smart contracts and their potential to address challenges faced by traditional contracts.
Sankalp Sharma explains that the session is designed to be beginner-friendly, so no previous knowledge of smart contracts is required. He also briefly overviews what will be covered in the session and expresses his hope that participants will find the session productive.
Are you searching for C Language Training in Ambala? Noe tour search ends here.... Batra Computer Centre provides you the best training in C Language in Ambala. Btra Computer Centre offers you many other courses like Basic Computer Course, C& C++, SEO, Web Designing , Web Development and many more...
What is A Smart Contract? | Smart Contracts Tutorial | Smart Contracts in Blo...Simplilearn
This presentation on smart contract tutorial will help you understand what is a smart contract, why we need a smart contract, solidity for a smart contract, Blockchain implementation of the smart contract, voting process, hospitals and at the end you will see a use case implementation on crowdfunding smart contract. Smart contracts are self-executing contracts which contain the terms and conditions of an agreement between the peers. A smart contract is very similar to a vending machine. It eliminates the need for intermediate and escrow services. The terms and conditions of an agreement are written in code. These agreements facilitate the exchange of money, shares, property etc. All of this process is executed in Blockchain's decentralized platform. So, let us get started and understand what is a smart contract.
Below topics are explained in this smart contract presentation:
1. Why smart contract?
2. What is a smart contract?
3. Solidity for smart contract
4. Blockchain implementation of a smart contract
5. Voting process
6. Hospitals
7. Use case - Crowd funding smart contract
Simplilearn’s Blockchain Certification Training has been designed for developers who want to decipher the global craze surrounding Blockchain, Bitcoin and cryptocurrencies. You’ll learn the core structure and technical mechanisms of Bitcoin, Ethereum, Hyperledger and Multichain Blockchain platforms, use the latest tools to build Blockchain applications, set up your own private Blockchain, deploy smart contracts on Ethereum and gain practical experience with real-world projects.
Why learn Blockchain?
Blockchain technology is the brainchild of Satoshi Nakamoto, which enables digital information to be distributed. A network of computing nodes makes up the Blockchain. Durability, robustness, success rate, transparency, incorruptibility are some of the enticing characteristics of Blockchain. By design, Blockchain is a decentralized technology which is used by a global network of the computer to manage Bitcoin transactions easily. Many new business applications will result in the usage of Blockchain such as Crowdfunding, smart contracts, supply chain auditing, etc.
The Blockchain Certification Training Course is recommended for:
1. Developers
2. Technologists interested in learning Ethereum, Hyperledger and Blockchain
3. Technology architects wanting to expand their skills to Blockchain technology
4. Professionals curious to learn how Blockchain technology can change the way we do business
5. Entrepreneurs with technology background interested in realizing their business ideas on the Blockchain
Learn more at: https://www.simplilearn.com/
Understanding Proof of Work (PoW) and Proof of Stake (PoS) AlgorithmsGautam Anand
We will focus on understanding "Proof of Stake (PoS)" Algorithm, how it different from "Proof of Work" algorithm, the performance benefits and security overview. We will also discuss the upcoming blockchain protocols that are planning to move to PoS.
Ethereum is the largest decentralized software platform that allows you to build smart contracts and decentralized applications without any downtime and without any third party interference.
VISIT:- http://www.oodlestechnologies.com/online-cryptocurrency-wallet
Decentralized applications 101: How and why to build a DAppErik Trautman
You're already well familiar with the design, interaction and development patterns of "normal" web and mobile apps. In this meetup, we'll shift the focus to describe what a decentralized app (DApp) actually is from the very top to the nuts and bolts below the surface.
This is intended to help the full spectrum of designers, developers and product people to understand why they might create a DApp in the first place and how that is different than working with web 2 applications. We'll cover the high level user-facing aspects (like interactions and flows) down to the low-level of the stack (the actual blockchain) so you understand what you're getting into.
We assume you know what a blockchain is.
Learn more about NEAR, the scalable developer-friendly blockchain, at https://nearprotocol.com
Basics you need to know about Solidity and how it works. Learn the simple way of building a smart contract in Solidity. Tools that can be used with Solidity.
Crypto wallets are a type of digital wallet specifically used for storing digital currencies. These are basically applications that can help you access blockchain platforms and help you retrieve and use your crypto assets.
There are usually two types of crypto wallets - Hot Wallets and Cold Wallets. Hot wallets are a type of crypto wallets that are always connected to the internet. This type of wallet is less secured than a Cold wallet. Cold wallets are a type of crypto wallets that are offline. Typically, they serve as vaults for your important documents and assets.
You need to choose a type of wallet based on your needs. However, to fully understand how this works, you have to learn about the underlying working process of the wallets. Here, 101 Blockchains can greatly help you out. We have courses that will specifically target your needs and help you understand the mechanism behind blockchain technology-based wallets.
Learn more about the cryptocurrency from these courses ->
Stablecoin Fundamentals Masterclass
https://academy.101blockchains.com/courses/stablecoin-masterclass
Getting Started with Bitcoin Technology Course
https://academy.101blockchains.com/courses/getting-started-with-bitcoin-technology
We also offer lucrative certification courses for professionals. Learn more about these courses from here ->
Certified Enterprise Blockchain Professional (CEBP) course
https://academy.101blockchains.com/courses/blockchain-expert-certification
Certified Enterprise Blockchain Architect (CEBA) course
https://academy.101blockchains.com/courses/certified-enterprise-blockchain-architect
Certified Blockchain Security Architect (CBSE) course
https://academy.101blockchains.com/courses/certified-blockchain-security-expert
Read our full guide on this topic ->
https://101blockchains.com/crypto-wallet-list/
https://101blockchains.com/types-of-crypto-wallets/
https://101blockchains.com/crypto-wallets/
https://101blockchains.com/paper-wallets/
https://101blockchains.com/software-wallet/
https://101blockchains.com/hot-wallet-vs-cold-wallet/
https://101blockchains.com/best-hardware-wallets/
https://101blockchains.com/blockchain-wallet/
https://101blockchains.com/best-nft-wallets/
https://101blockchains.com/top-defi-wallets/
Presentation by DHS S&T at the NY Blockchain 360 Conference regarding Blockchain's relevance to the Homeland Security Enterprise. Results of security and privacy research and development over the last 2+ years and next steps.
The basic idea of decentralization is to distribute control and authority to the peripheries of an organization instead of one central body being in full control of the organization.
Ethereum is approaching its most anticipated upgrade ever: the merge. The merge is one of the major milestones towards ETH 2.0, bringing with it several benefits to users and holders alike.
In this webinar we will dive into how the merge will work and its implications for the future of Ethereum. We will analyze key metrics surrounding Ethereum’s security, staking rewards and more, while also providing a long-term outlook following the merge.
Programming smart contracts in solidityEmanuel Mota
Ethereum Overview and what are Smart Contracts and what are their limitations. A Solidity programming language Crash Course. How to create an ERC20 token. What is an ICO on Ethereum.
There are four different types of blockchain - Public blockchain, Private blockchain, Consortium blockchain and Hybrid blockchain.
This presentation gives a glimpse about blockchain technology and the different types of blockchain. Hope it helps!
How to Start Building in Web3 – Smart Contract Design & Development Part 1Zeeve
Sankalp Sharma, Co-Founder & VP of Engineering of Zeeve, starts the webinar by briefly introducing the topic of smart contract design and development, emphasizing the importance of understanding smart contracts and their potential to address challenges faced by traditional contracts.
Sankalp Sharma explains that the session is designed to be beginner-friendly, so no previous knowledge of smart contracts is required. He also briefly overviews what will be covered in the session and expresses his hope that participants will find the session productive.
Are you searching for C Language Training in Ambala? Noe tour search ends here.... Batra Computer Centre provides you the best training in C Language in Ambala. Btra Computer Centre offers you many other courses like Basic Computer Course, C& C++, SEO, Web Designing , Web Development and many more...
A function provides a convenient way of packaging a computational recipe, so that it can be used as often as required. A function definition consists of two parts: interface and body. The interface of a function (also called its prototype) specifies how it may be used. It consists of three entities:
The function name. This is simply a unique identifier.
The function parameters (also called its signature). This is a set of zero or more typed identifiers used for passing values to and from the function.
The function return type. This specifies the type of value the function returns. A function which returns nothing should have the return type void.
The body of a function contains the computational steps (statements) that comprise the function.
c++ pointers by Amir Hamza Khan (SZABISTIAN)Ameer Hamxa
This slides will help you to learn pointers in c++ and i have put in some programs in this slides to help beginners in c++ and also you can use it as your own presentation lol ;)
follow me on facebook https://www.facebook.com/Ameerii132
and you are welcome for questions and quirries
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
Sidekick Solutions uses Bonterra Impact Management (fka Social Solutions Apricot) and automation solutions to integrate data for business workflows.
We believe integration and automation are essential to user experience and the promise of efficient work through technology. Automation is the critical ingredient to realizing that full vision. We develop integration products and services for Bonterra Case Management software to support the deployment of automations for a variety of use cases.
This video focuses on the notifications, alerts, and approval requests using Slack for Bonterra Impact Management. The solutions covered in this webinar can also be deployed for Microsoft Teams.
Interested in deploying notification automations for Bonterra Impact Management? Contact us at sales@sidekicksolutionsllc.com to discuss next steps.
Generating a custom Ruby SDK for your web service or Rails API using Smithyg2nightmarescribd
Have you ever wanted a Ruby client API to communicate with your web service? Smithy is a protocol-agnostic language for defining services and SDKs. Smithy Ruby is an implementation of Smithy that generates a Ruby SDK using a Smithy model. In this talk, we will explore Smithy and Smithy Ruby to learn how to generate custom feature-rich SDKs that can communicate with any web service, such as a Rails JSON API.
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
2. What is Solidity?
Ethereum Solidity is a contract-oriented, high-level language with
syntax like that of JavaScript.
A solidity is a tool used to generate a machine-level code to
execute on EVM.
The solidity compiler takes the high-level code and breaks it
down into simpler instructions.
3. Contracts in Ethereum Solidity
A contract is the fundamental building block of Ethereum’s decentralized
Applications. All variables and functions are part of a contract and this is the
starting point of all the projects.
1
2
3
version pragma ^0.4.19;
contract MyFirst{
}
An empty contract named MyFirst would look like this:
4. Layout of Solidity File
Source files can contain an arbitrary number of contract definitions, include directives and
pragma directives.
Version Pragma
Version Pragma is the declaration of the version of the Solidity compiler that the particular code
should use.
1. version pragma ^0.4.00;
Note: The source file shown above will not compile with a compiler earlier than version 0.4.0 and it will
also not work on a compiler starting from version 0.5.0.
5. Importing other Source Files
Ethereum Solidity supports import statements that are very similar to those available in JavaScript,
although Solidity does not know the concept of a “default export”.
At a global level you can use import statements of the following form:
1 import "filename";
The above statement imports all global symbols from “filename” into the current global scope.
1 import * as symbolName from "filename";
…creates a new global symbol symbolName whose members are all the global symbols from “filename”
6. Comments
Just like any other language, single line and multi-line comments are possible in Solidity.
1
2
3
4
5
// This is a single-line comment.
/*
This is a
multi-line comment
*/
Now, before we move further in our Solidity tutorial, you should know that Ethereum has three
areas where it can store items.
1. Storage: where all the contract state variables reside. Every contract has its own storage and it is
persistent between function calls
2. Memory: hold temporary values and gets erased between (external) function calls and is cheaper to
use
3. Stack: hold small local variables and is almost free to use, but can only hold a limited amount of
values
For almost all the types, you cannot specify where they should be stored, because they are copied
every time they are used.
Alright, now that you are aware of the storage locations in Ethereum Solidity, let me tell you about the
general value types.
7. Value Types in Solidity
The following types are also called value types because variables of these types will always be passed by
value.
Boolean
Keyword: Bool
The possible values are constants i.e., true or false
8. Integers
Keyword: int/uint (uint8 to uint256 in steps of 8 (unsigned of 8 up to 256 bits) and int8 to int256)
Signed and unsigned integers of various sizes.
Example:
1
2
3
contract MySample{
uint UnsignedInt =50;
}
In the above statement, we have created a uint called InsignedInt & set it to 50.
uint is a keyword that is used to declare a variable which can store an integral type of
value (unsigned integer) from the range of 0 to 4,294,967,295. It keyword is an alias of System. ... uint
keyword occupies 4 bytes (32 bits) space in the memory.
9. Address:
Keyword: address
Holds a 20-byte value (size of an Ethereum address). Address types also have members and serve as a base
for all contracts.
Members of Addresses: Balance & Transfer
It is possible to query the balance of an address using the property balance and to send Ether to an address
using the transfer function.
1
2
3
4
address x = 0x123;
address myAddress = this;
if (x.balance < 10 && myAddress.balance > = 10) x.transfer(10);
Strings:
Keyword: String literals are written with either double or single-quotes “foo” or ‘bar’.
Used for arbitrary-length UTF-data.
1 string language = "Solidity";
These value types can interact with each other in expressions containing operators. Next, in our
Solidity tutorial, let me tell you about the various operators.
12. Incremental Operators
Incremental operators in solidity: a++, a–, ++a, –a, a+=1, a=a+1
Rules applicable to other programming languages are similar in solidity also.
Bitwise Operators:
Following are the operators: (Bitwise OR) ‘|’, (Bitwise XOR), (Bitwise negation) ‘~’ , (Bitwise right shift) ‘>>’,
(Bitwise left shift) ‘<<‘
Logical Operators:
Logical operators in Solidity: ! (logical negation), && (logical and), || (logical or), ==(equality), != (not equal)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
contract operators {
// Arithmetic Operators
// +,-,*,/, %, **
// Incremental Operators
// a++, a--, a+=1, a=a+1,++a,--a;
a=10;
a= a++; //here, output will be 10, because the value is first returned and then then increment is done
a=++a;
//Logical Operators
!, &&, ||, ==, !=
isOwner = true && false;
var orValue= 0x02 | 0x01; // output would be 0x03
//Bitwise Operators~,>>, <<;
function Operators() {
// Initialize state variables here}}
13. Now Sometimes there is a need for a more complex data type. For this Solidity provides structs.
Data Structures in Solidity
Solidity provides three types of data structures:
14. Structs
Solidity provides a way to define new types in the form of structs. Structs are custom defined types that can
group several variables.
1
2
3
4
5
6
7
8
9
pragma solidity ^0.4.0;
contract Ballot {
struct Voter { // Struct
uint weight1, weight2, weight3;
bool voted;
address delegate1, delegate2, delegate3, delegate4;
string name;
uint vote1, vote2, vote3, vote4, vote5;
uint height1, height2, height3 } }
Note: Structs can only have 16 members, exceeding which the following error might occur: Stack too Deep.
Structs allow you to create more complicated data types that have multiple properties.
Now, what if you need a collection of something, say addresses. Well, just like most of the languages,
Solidity also has Arrays.
15. Arrays
Arrays in Solidity can have a compile-time fixed size or they can be dynamic.
1 uint[3] fixed; //array of fixed length 3
1
uint[] dynamic; //a dynamic array has no fixed size, it can
keep growing
You can also create an array of structs. Using the previously created Voter struct:
Note: declaring an array as public will automatically create a better method for it
1 Voter[] voting;
1 Voter[] public voting;
16. Mappings
Mappings can be seen as hash tables which are virtually initialized such that every possible key exists and is
mapped to a value whose byte-representation is all zeros: a type’s default value.
Mappings are declared as:
1 Mapping(_Keytype => _ValueType )
Note: _Keytype can be almost any type except for a dynamically sized array, a contract, an enum and a
struct.
Example:
1
2
3
4
5
6
7
8
9
10
contract MappingExample {
mapping(address => uint) public balances;
function update(uint newBalance) {
balances[msg.sender] = newBalance; }}
contract MappingUser {
function f() returns (uint) {
MappingExample m = new MappingExample();
m.update(100);
return m.balances(this);
}}
17. Control Structures
Most of the control structures in JavaScript are available in Solidity except for switch and goto.
So there is: if, else, while, do, for, break, continue, return, ? :, with the usual semantics known from C
or JavaScript.
Note: There is no type conversion from non-boolean to boolean types as there is in C and JavaScript.
Now let’s see how these Control structures are used in Solidity.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
contract ControlStructure {
address public a;
function ControlStructure>){
// if-else can be used like this
if(input1==2)
a=1;
else
a=0;
// while can be used like this
while(input1>=0){
if(input1==5)
continue;
input1=input1-1;
a++;}
// for loop can be used like this
for(uint i=0;i<=50;i++) { a++; if(a==4) break; } //do while can be used like this do { a--; } (while a>0);
// Conditional Operator can be used like this
bool IsTrue = (a == 1)?true: false;
/*will show an error because
there is no type conversion from non-boolean to boolean
*/
if(1)
{
}
18. Moving on with our Solidity tutorial blog, let’s talk about the executable units of code within a Contract.
These are called functions.
Functions
Here is how a function is declared in Solidity.
1
2
function sampleFunc(string name, uint amount) {
}
The above-declared is an empty body function which takes two parameters: a string and a uint.
You would call this function like:
1 sampleFunc("Shashank", 10000);
Talking about functions, Solidity also provides function modifiers.
Function Modifiers
It is used to easily change the behavior of the functions. These conditions can be checked before
even making the function calls because they have been declared in the function definitions in the
smart contracts.
19. Example: If you want to call a kill contract function through only the owner or creator of the function.
1
2
3
4
5
6
7
8
9
10
11
contract FunctionModifiers{
address public creator;
function FunctionModifiers() {
creator = msg.sender;}
Modifier onlyCreator() {
if(msg.sender!=creator){
throw; }
_; //resumes the function wherever the access modifier is used
}
function killContract() onlyCreator{ //function will not execute if an exception occurs
self-destruct(creator); }}
20. Inheritance
Solidity supports multiple Inheritance by copying code including polymorphism.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
contract Owned {
address Owner ;
function owned() {
owner = msg.sender;
}}
contract Mortal is Owned { // 'is' keyword is used for inheritance
function kill(){
self-destruct(owner); }}
contract User is Owned, Mortal //Multiple inheritance
{
string public UserName;
function User(string _name){
UserName = _name;
}}
Alright, I feel the above-discussed concepts are sufficient enough for you to kick-start with Solidity
programming.
21. Scope of local variables is limited to function in which they are defined but
State variables can have three types of scopes.
Public − Public state variables can be accessed internally as well as via
messages. For a public state variable, an automatic getter function is
generated.
Internal − Internal state variables can be accessed only internally from the
current contract or contract deriving from it without using this.
Private − Private state variables can be accessed only internally from the
current contract they are defined not in the derived contract from it.
22. pragma solidity ^0.5.0;
contract C {
uint public data = 30;
uint internal iData= 10;
uint storedData;
function x() public returns (uint) {
data = 3; // internal access
return data;
}
}
contract Caller {
C c = new C();
function f() public view returns (uint) {
return c.data(); //external access
}
}
contract D is C {
function y() public returns (uint) {
iData = 3; // internal access
return iData;
}
function getResult() public view
returns(uint){
uint a = 1; // local variable
uint b = 2;
uint result = a + b;
return storedData; //access the state
variable
}
}
23. What is an Operator?
Let us take a simple expression 4 + 5 is equal to 9. Here 4 and 5 are called
operands and '+' is called the operator. Solidity supports the following types of
operators.
1. Arithmetic Operators
2. Comparison Operators
3. Logical (or Relational) Operators
4. Assignment Operators
5. Conditional (or ternary) Operators
Operators
24. Arithmetic Operators
Solidity supports the following arithmetic operators −
Assume variable A holds 10 and variable B holds 20, then −
1
+ (Addition)
Adds two operands
Ex: A + B will give 30
2
- (Subtraction)
Subtracts the second
operand from the first
Ex: A - B will give -10
3
* (Multiplication)
Multiply both operands
Ex: A * B will give 200
25. 4
/ (Division)
Divide the numerator
by the denominator
Ex: B / A will give 2
5
% (Modulus)
Outputs the remainder of
an integer division
Ex: B % A will give 0
6
++ (Increment)
Increases an integer
value by one
Ex: A++ will give 11
7
-- (Decrement)
Decreases an integer
value by one
Ex: A-- will give 9
26. pragma solidity ^0.5.0;
contract SolidityTest {
constructor() public{
}
function getResult() public view returns(uint){
uint a = 1;
uint b = 2;
uint result = a + b; //arithmetic operation
return result;
}
}
27. Comparison Operators
Solidity supports the following comparison operators −
Assume variable A holds 10 and variable B holds 20, then −
1
= = (Equal)
Checks if the value of two
operands are equal or not, if yes,
then the condition becomes true.
Ex: (A == B) is not true.
2
!= (Not Equal)
Checks if the value of two operands
are equal or not, if the values are not
equal, then the condition becomes
true.
Ex: (A != B) is true.
28. 3
> (Greater than)
Checks if the value of the left operand is
greater than the value of the right operand,
if yes, then the condition becomes true.
Ex: (A > B) is not true.
5
>= (Greater than or Equal to)
Checks if the value of the left operand is
greater than or equal to the value of the
right operand, if yes, then the condition
becomes true.
Ex: (A >= B) is not true
6
<= (Less than or Equal to)
Checks if the value of the left operand
is less than or equal to the value of the
right operand, if yes, then the condition
becomes true.
Ex: (A <= B) is true
4
< (Less than)
Checks if the value of the left operand is
less than the value of the right operand,
if yes, then the condition becomes true.
Ex: (A < B) is true.
29. pragma solidity ^0.5.0;
contract SolidityTest {
uint storedData;
constructor() public{
storedData = 10;
}
function getResult() public view returns(string memory){
uint a = 1; // local variable
uint b = 2;
uint result = a + b;
return integerToString(result);
}
function integerToString(uint _i) internal pure
returns (string memory _uintAsString) {
30. if (_i == 0) { //comparison operator
return "0";
}
uint j = _i;
uint len;
while (j != 0) { //comparison operator
len++;
j /= 10;
}
bytes memory bstr = new bytes(len);
uint k = len - 1;
while (_i != 0) {
bstr[k--] = byte(uint8(48 + _i % 10));
_i /= 10;
}
return string(bstr);//access local variable
}
31. Loops
While writing a contract, you may encounter a situation where you need to perform an
action over and over again.
In such situations, you would need to write loop statements to reduce the number of
lines.
Solidity supports all the necessary loops to ease down the pressure of programming.
32. 1
While Loop
The most basic loop in Solidity is the while loop which would be discussed in this
chapter. Flow Chart:
The flow chart of while loop looks as follows
33. Syntax
The syntax of while loop in Solidity is as follows −
while (expression) {
Statement(s) to be executed if expression is true
}
pragma solidity =0.5.0 <= 0.9.0;
contract array
{
uint[3] public arr;
uint public count;
function loop() public{
while(count<arr.length)
{
arr[count] = count;
count++;
}
}
}
34.
35. 2
do...while Loop
The do...while loop is similar to the while loop except that the condition check happens
at the end of the loop.
Syntax
The syntax for do-while loop in
Solidity is as follows −
do {
Statement(s) to be executed;
} while (expression);
36. // Solidity program to
// demonstrate the use of
// 'Do-While loop'
pragma solidity ^0.5.0;
// Creating a contract
contract Types {
// Declaring a dynamic array
uint[] data;
// Declaring state variable
uint8 j = 0;
// Defining function to demonstrate
// 'Do-While loop'
function loop(
) public returns(uint[] memory){
do{
j++;
data.push(j);
}while(j < 5) ;
return data;
}
}
37. For Loop
The for loop is the most compact form of looping. It includes the following three important parts.
The loop initialization where we initialize our counter to a starting value. The initialization statement
is executed before the loop begins.
The test statement which will test if a given condition is true or not. If the condition is true, then the
code given inside the loop will be executed, otherwise the control will come out of the loop.
The iteration statement where you can increase or decrease your counter.
38. Syntax
The syntax of for loop is
Solidity is as follows −
for (initialization; test
condition; iteration
statement) {
Statement(s) to be
executed if test condition is
true
}
39. // Solidity program to
// demonstrate the use
// of 'For loop'
pragma solidity ^0.5.0;
// Creating a contract
contract Types {
// Declaring a dynamic array
uint[] data;
// Defining a function
// to demonstrate 'For loop'
function loop(
) public returns(uint[] memory){
for(uint i=0; i<5; i++){
data.push(i);
}
return data;
}
}
40. 1 if statement
The if statement is the fundamental control statement that allows Solidity to make
decisions and execute statements conditionally.
// Solidity program to
// demonstrate the
// use of 'if statement'
pragma solidity ^0.5.0;
// Creating a contract
contract Types {
// Declaring state variable
uint i = 10;
// Defining function to
// demonstrate use of
// 'if statement'
function decision_making(
) public returns(bool){
if(i<10){
return true;
}
}
}
41. 2 if...else statement
The 'if...else' statement is the next form of control statement that allows Solidity to
execute statements in a more controlled way.
// Solidity program to
// demonstrate the use of
// 'if...else' statement
pragma solidity ^0.5.0;
// Creating a contract
contract Types {
// Declaring state variables
uint i = 10;
bool even;
//
Defining function to
// demonstrate the use of
// 'if...else statement'
function decision_making(
) public payable returns(bool){
if(i%2 == 0){
even = true;
}
else{
even = false;
}
return even;
}
}
42. if...else if... statement.
The if...else if... statement is an advanced form of if...else that allows Solidity to make a correct
decision out of several conditions.
pragma solidity ^0.5.0;
// Creating a contract
contract Types {
// Declaring state variables
uint i = 10;
string result;
// Defining function to
// demonstrate the use
// of 'if...else if...else
// statement'
function decision_making(
) public returns(string memory){
if(i<10){
result = "less than 10";
}
else if(i == 10){
result = "equal to 10";
}
else{
result = "greater than 10";
}
return result;
}
}
43. Structs
Solidity enables users to create their own type in the form of Structure. The structure is the
group of different types although it is not possible to contain a member of its own type.
Structure is a reference type variable and can contain both - value types and reference types.
Declaration
struct <name of structure> {
<type> variable1;
<type> variable2;
44. pragma solidity ^0.5.0;
contract Types {
struct User {
string name;
uint age;
bool isValid;
}
User _user = User("John", 40, true);
function getUserInfo()
public view
returns (string memory, uint,bool) {
return(_user.name, _user.age, _user.isValid);
}
}
45. Mapping Types
Mapping types are the most used reference type; they are used to store data in a key-value pair; where
the key can be any built-in value types or byte and string. You can think of it as a hash table or dictionary
as in any other language, in which a user can store data in a key-value format and data can be retrieved
by key.
mapping(_KeyType => _ValueType) <access specifier> <name>;
Example
mapping (address => uint) account;
pragma solidity ^0.5.0;
contract MappingExample {
mapping(address => uint) account;
function updateBalance(uint newBalance) public {
account[msg.sender] = newBalance;
}
function getBalance(address _address)
public view returns (uint) {
return account[_address];
}
}
46. A function is a group of reusable code which can be called anywhere in your
program.
This eliminates the need of writing the same code again and again. It helps
programmers in writing modular codes.
Functions allow a programmer to divide a big program into a number of
small and manageable functions.
Like any other advanced programming language, Solidity also supports all
the features necessary to write modular code using functions.
This section explains how to write your own functions in Solidity.
47. Function Definition
Before we use a function, we need to define it.
The most common way to define a function in Solidity is by using the
function keyword, followed by a unique function name, a list of parameters
(that might be empty), and a statement block surrounded by curly braces.
48. Syntax
The basic syntax is shown here.
function function-name(parameter-list) scope
returns() {
//statements
}
49. Introduction
A programming language has an important aspect of taking decisions
in code.
Solidity delivers the if…else and switches statements to execute
different instructions based on circumstances.
This is too significant to loop through multiple items.
Solidity provides different constructs such as for loops and while
statements.
50. Solidity expressions
A statement, comprising multiple operands and optionally zero or
more operators is referred to as an expression.
That gives results in a single value, object, or function.
The operand may be a variable, literal, function invocation, or
another expression itself.