Your Choice JavaScript News

Solidity News Friday, March 9 Ethereum security bugs, Network id gas, Memory struct & more…

Solidity News TLDR / Table of Contents

  • fergarrui/ethereum-security
    • GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 80 million projects.
    • Ethereum security bugs, network id gas, Mocha tests, RPC methods, interactive console
  • figs999/Ethereum
    • GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 80 million projects.
    • memory struct, storage array, , ,
  • ALIS
    • ALIS is Japan’s First Social Media Using Blockchain Technology
    • ALIS, ALIS community user, Recruit Co., ALIS corporate functions, ALIS users
  • The bugs and fixes are demonstrated using Mocha tests.
  • To debug or run the test suite in more detail: – – This will run the tests in a local test blockchain.
  • Then & or just can be run to have an interactive console and be able to see the RPC methods that have been called in the process, and therefore, the transaction hashes (if there was a transaction).
  • Once you know the transaction hash you want to inspect in more detail, it can be debugged running .
  • See the transaction with or the transaction receipt: – – Also, an individual test can be run using:

Tags: Ethereum security bugs, network id gas, Mocha tests, RPC methods, interactive console

  • I was trying to figure out why my Virtual Struct technique would save so much gas compared to using an in-memory solidity struct, – – – – so I spent some time combing over the execution stack from when a contract writes a memory struct to storage.
  • So, I just need you to take that memory struct and put it into a storage array – – – – — Ok.
  • 0973 DUP1 – – – – 0974 PUSH1 01 — Incrementing the length of the array – – – – 0976 ADD – – – – 0977 DUP3 – – – – 0978 DUP2 – – – – 0979 PUSH2 03dc — Were about to jump!
  • — – – – – 2462 JUMPDEST – – – – 2463 DUP2 — Get our storage index again… – – – – 2464 SLOAD — …to load the current length from the array were storing to.
  • 2483 PUSH1 00 – – – – 2485 SHA3 — Just need to calculate the storage bucket where our entry will go… – – – – 2486 SWAP2 – – – – 2487 DUP3 — …and save it for later.

Tags: memory struct, storage array, , ,

    Tags: ALIS, ALIS community user, Recruit Co., ALIS corporate functions, ALIS users

    Top Solidity Courses

    Getting Started with Ethereum Solidity Development (6,530 students enrolled)

    By Sebastien Arbogast
    • Understand the basic philosophy behind the blockchain and distributed/decentralized applications
    • The basics of how a blockchain generally works, just enough to be able to use it as a development platform
    • Develop a distributed application, from creating a blank project to deploying it in production all the way through writing smart contracts, unit testing them, and creating a user interface for them
    • How to combine the right tools to put together a consistent development environment
    • The fundamentals of the Solidity smart contract language
    • How to use the Truffle build and testing framework
    • How to deploy a decentralized app to various Ethereum instances (testrpc, private chain, test chain, main net)

    Learn more.


    Ethereum Blockchain Developer: Build Projects Using Solidity (10,937 students enrolled)

    By Ravinder Deol
    • Be Proficient In Solidity Programming By Building Projects In This Course.
    • Understand Blockchain Technology At A Theoretical And Practical Level.
    • Be Aware On A Practical Level Of How Smart Contracts Operate.
    • Be Able To Work With The Ethereum’s Major Core Development Tools.
    • Understand The Core Development Functions Of Ethereum.
    • Understand What Decentralisation Is As We’re Working With This Technology.
    • Be Able To Explain The Structure Of A Solidity Clearly Through Practical Examples.
    • Understand How To Use Web3 In Conjunction With The Project We’re Creating.
    • Be Proficient In Advanced Development With Truffle And Ethereum Studio.
    • Complete A Final Assignment Which Consists Of An Ethereum Blockchain Based Curriculum Vitae.

    Learn more.


    Ethereum : Decentralized Application Design & Development (9,794 students enrolled)

    By Rajeev Sakhuja
    • Leverage the Ethereum tools/software such as Wallet, Geth, MetaMask, Remix, TruffleV4, Ganache....
    • Create an ERC20 Compliant token to launch an Initial Coin Offering (ICO)
    • Setup Private Blockchain Network
    • Develop Smart contracts in Solidity using multiple tools such as Web3/Ganache/TruffleV4/Mocha framework
    • Comfortably describe how Ethereum Blockchain works | Ethers, Gas, POW, POS, Nodes ...
    • Describe how the Blockchain technologies work | Distributed Ledgers, Consensus, Mining ....
    • Develop UI/front end for Decentralized Application in HTML/CSS/Javascript using web3 libraries
    • Develop end to end Decentralized Applications (DAPP) on Ethereum platform
    • Setup private Ethereum networks for development & experimentation
    • Identify and use the right design patterns for developing smart contracts
    • Architect, Design & Build real use cases on Ethereum platform

    Learn more.


    The Complete Ethereum Course: Get .001 Ether In Your Wallet (4,273 students enrolled)

    By Ravinder Deol
    • Understand how Ethereum, the emerging cryptocurrency works, and get involved with it practically as well as learning the theoretical side of the cryptocurrency.
    • Realise how becoming an early adopter of Ethereum gives you the best chance to capitalize on its rise, as many would have missed the meteoric rise of Bitcoin.
    • Undertake your first ever Ethereum transaction by receiving .001 Ether from me for completing this course, I will of course walk you through how to setup your wallet.

    Learn more.


    Compile Your First Ethereum Smart Contract With Solidity (245 students enrolled)

    By Will Bunker
    • Compile a basic smart contract
    • Set a private blockchain for testing
    • Deploy smart contract to blockchain
    • Call the functions on smart contract.

    Learn more.


    Learn Solidity: Programming Language for Smart Contracts (3,153 students enrolled)

    By Toshendra Sharma
    • Develop Ethereum Smart Contracts using Solidity
    • Understand the basics & advance features of Solidity & Ethereum Virtual Machine
    • Develop their own decentralized blockchain applications

    Learn more.