-
How to Code a Multi-Sig Wallet in Solidity (0.5)
In this video I will explain what a mutli-sig wallet is and show you how to write one in Solidity. Some features will be left as an exercise for you to complete.
Exercise: https://smartcontractprogrammer.com/courses/multi-sig-wallet/
Code: https://solidity-by-example.org/0.5/multi-sig-wallet/
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
Setup Truffle - Multi-Sig Wallet in Solidity (0.5)
In this video I will show you, step by step, how to setup a Truffle project. We will copy and paste the multi-sig wallet contract from Remix into a Truffle project. By doing this, this will enable us to test our contract and easily setup a local blockchain for developing web applications that can interact with our smart contract.
Code: https://smartcontractprogrammer.com/courses/multi-sig-wallet/chapter-01/00-setup/
Truffle: https://www.trufflesuite.com/docs/truffle/overview
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
Testing with Truffle - Multi-Sig Wallet in Solidity (0.5)
This video with show you how to write a test for a smart contract using Truffle. I will show you two examples, testing that a function works and testing that a function will fail when we expect it to fail. We will be testing the multi-sig wallet contract.
Code: https://smartcontractprogrammer.com/courses/multi-sig-wallet/chapter-01/01-testing/
Truffle: https://www.trufflesuite.com/docs/truffle/overview
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
Deploying Contracts using Truffle - Multi-Sig Wallet in Solidity (0.5)
Before we start building an application that can connect to our multi-sig wallet contract, there are some setups that we need to do. In this video, I will show you how to run a local, private blockchain inside your computer and write a migration file that will deploy the contract onto the local blockchain. We will be using Truffle.
Code: https://smartcontractprogrammer.com/courses/multi-sig-wallet/chapter-01/02-migration/
Truffle: https://www.trufflesuite.com/docs/truffle/overview
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
Connect Metamask with Truffle and Import Accounts from Truffle - Multi-Sig Wallet in Solidity (0.5)
This video will explain how to connect Metamask with Truffle and import accounts from Truffle into Metamask.
Code: https://smartcontractprogrammer.com/courses/multi-sig-wallet/chapter-01/03-metamask/
Metamask: https://metamask.io/
Truffle: https://www.trufflesuite.com/docs/truffle/overview
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
React App Overview - Multi-Sig Wallet in Solidity (0.5)
We will start building a web application, using React and Typescript, that can interact with the multi-sig wallet smart contract written in Solidity. In this video I will show you a demo of the app and then explain how the code is organized.
Demo: https://multi-sig.netlify.app/
Code: https://github.com/t4sk/multi-sig-wallet
Videos that I highly recommend to learn about
React
https://www.youtube.com/playlist?list=PLN3n1USn4xlntqksY83W3997mmQPrUmqM
React Hooks
https://www.youtube.com/playlist?list=PLN3n1USn4xlmyw3ebYuZmGp60mcENitdM
React using Typescript|
https://www.youtube.com/watch?v=Z5iWr6Srsj8
Typescript
https://www.youtube.com/watch?v=rAy_3SIqT-E
Typescript Generics
https://www.youtube.com/watch?v=nViEqpgwxHE
Metamask: https://metamask.io/
Truffle: https://www.trufflesuite.com/docs/truffle/overview
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
React App - Install and Setup (Part 2) - Multi-Sig Wallet in Solidity (0.5)
Let's start building our multi-sig wallet app using React and Typescript. In this video I will show you 3 things.
1. How to initialize a React application using Typescript.
2. How to setup Truffle for UI development
3. How to write a function to unlock accounts managed by MetaMask and a function that will keep an eye on the current account used in MetaMask, checking back every second. This isn't the only way to write such functions but this will be a good starting point.
Demo: https://multi-sig.netlify.app/
Code: https://github.com/t4sk/multi-sig-wallet
Notes: https://smartcontractprogrammer.com/courses/multi-sig-wallet/chapter-02/01-setup/
Metamask: https://metamask.io/
Truffle: https://www.trufflesuite.com/docs/truffle/overview
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
React App - Web3 Context (Part 3) - Multi-Sig Wallet in Solidity (0.5)
In this video, I will show you how to code the user interface which will connect the app to Metamask and then display the current account. We will be using React reducer and context.
Exercise to monitor network id
https://smartcontractprogrammer.com/courses/multi-sig-wallet/chapter-02/03-exercise-monitor-network/
Here are some links to learn about React reducer and context
Reducer
https://www.youtube.com/watch?v=wcRawY6aJaw
Context
https://www.youtube.com/watch?v=lhMKvyLRWo0&t=201s
Demo: https://multi-sig.netlify.app/
Code: https://github.com/t4sk/multi-sig-wallet
Metamask: https://metamask.io/
Truffle: https://www.trufflesuite.com/docs/truffle/overview
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
React App - Multi Sig Wallet Context (Part 4) - Multi-Sig Wallet in Solidity (0.5)
In this video I will show you how to code 4 things.
- How to read data from a contract
- How to write to a contract
- How to send Ether to a contract
- Lastly, how to subscribe to events emitted from a contract
Exercise to monitor network id
https://smartcontractprogrammer.com/courses/multi-sig-wallet/chapter-02/03-exercise-monitor-network/
Exercise to execute transaction
https://smartcontractprogrammer.com/courses/multi-sig-wallet/chapter-02/05-exercise-execute-tx/
Demo: https://multi-sig.netlify.app/
Code: https://github.com/t4sk/multi-sig-wallet
Metamask: https://metamask.io/
Truffle: https://www.trufflesuite.com/docs/truffle/overview
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
Deploying Contracts to Ropsten Testnet - Multi-Sig Wallet in Solidity (0.5)
We are finally ready to deploy our multi-sig wallet smart contract onto the Ropsten test network. In this video I will show you how to get Ether from a faucet and then deploy our contract using Truffle and Infura.io
Demo: https://multi-sig.netlify.app/
Solidity contract code: https://github.com/t4sk/solidity-multi-sig-wallet
React app code: https://github.com/t4sk/multi-sig-wallet
Metamask faucet: https://faucet.metamask.io/
Infura: https://infura.io/
Github Issue #852: https://github.com/trufflesuite/truffle/issues/852
Metamask: https://metamask.io/
Truffle: https://www.trufflesuite.com/docs/truffle/overview
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
How to Use an ERC-20 Token | Solidity (0.6)
ERC20 token contract has several functions that you must know how to use.
In this video I will explain how to use those functions, transfer, approve and transferFrom.
Code: https://solidity-by-example.org/0.6/app/erc20/
Truffle: https://www.trufflesuite.com/docs/truffle/overview
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
ERC-20 Token Swap | Solidity (0.6)
ERC20 token is a like a Lego block that you can build on top of. In this video I will show you how you can code a contract that will trade one ERC20 token for another.
Code: https://solidity-by-example.org/0.6/app/erc20/
Truffle: https://www.trufflesuite.com/docs/truffle/overview
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com