Instantly share code, notes, and snippets.

Embed
What would you like to do?

Update from 1.0.6-rc1 to 1.0.7

All versions are from EOSio/eos

Current version of eosio.system in mainnet => 1.0.6-rc1

The version v1.0.6-rc1 results from applying the following patch to v1.0.5. https://gist.github.com/elmato/960e965f4e76fc059bb8c2715d566921

Proposed version of eosio.system in eoscanadacom#onezeroseven => 1.0.7

  1. sha256 of eosio.system.wasm (v1.0.7) (local build) dddfceb4688b1dc68b634da86f777b07afe5bfaa78e9a3725486998accf405ed

    how to get it:

    sha256sum build/contracts/eosio.system/eosio.system.wasm
  2. sha256 of eoscanadacom#onezeroseven wasm dddfceb4688b1dc68b634da86f777b07afe5bfaa78e9a3725486998accf405ed

    how to get it:

    cleos multisig review eoscanadacom onezeroseven | jq -r '.transaction.actions[0].data.code' | xxd -r -p | sha256sum
  3. diff of eosio.system code (v1.0.6-rc1 vs v1.0.7): https://gist.github.com/elmato/fdbe1a969efbf8d6ef2913b6c5e4c70d

    how to get it (diff of folders source code):

    diff ~/tmp/eosio.system-1.0.6-rc1 ~/tmp/eosio.system-1.0.7
  4. diff of eosio.system ABI (v1.0.6-rc1 vs v1.0.7):

    https://gist.github.com/elmato/210bfcdfc7cc9e08d626ab54bcb26477

    how to get it:

    a) Extract current 1.0.6-rc1 abi from mainnet:

    cleos get code -a /tmp/tmpabi eosio && cat /tmp/tmpabi | jq '' > ~/tmp/eosio-1.0.6-rc1-abi.json

    b) Extract proposed ABI from eoscanadacom#onezeroseven:

    cleos multisig review eoscanadacom onezeroseven | jq -r '.transaction.actions[1].data.abi' | abi_from_hex | jq '' > ~/tmp/eosio-1.0.7-abi.json

    c) Show diff

    diff ~/tmp/eosio-1.0.6-rc1-abi.json ~/tmp/eosio-1.0.7-abi.json

Building abi_from_hex

  1. apply patch from within root EOS folder

    https://gist.github.com/elmato/4fce5bd325ca56bf037f4f906d0a67ae

    run git apply < abi_from_hex.patch

  2. run cmake .. inside the build folder

  3. run make abi_from_hex

  4. after building, the executable will be located in build/tools/abi_from_hex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment