Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Contracts module rejig #1358

Merged
merged 116 commits into from
Jan 17, 2019
Merged

Contracts module rejig #1358

merged 116 commits into from
Jan 17, 2019

Commits on Dec 20, 2018

  1. Move prepare under code.

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    429a030 View commit details
    Browse the repository at this point in the history
  2. Schedule update

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    169c5e8 View commit details
    Browse the repository at this point in the history
  3. CodeHash

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    eb64e5e View commit details
    Browse the repository at this point in the history
  4. create takes code_hash

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    f79aa14 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    32bbbbd View commit details
    Browse the repository at this point in the history
  6. Actually save and load code

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    7f5df27 View commit details
    Browse the repository at this point in the history
  7. Use T::Hash as CodeHash

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    ee53c8c View commit details
    Browse the repository at this point in the history
  8. Explicit entrypoint name

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    045b1d8 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1c846b7 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    29fd7b2 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    40163e4 View commit details
    Browse the repository at this point in the history
  12. Progress.

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    f7b28b3 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0a08178 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    487c630 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    62e7b5d View commit details
    Browse the repository at this point in the history
  16. Clean

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    09d9a2b View commit details
    Browse the repository at this point in the history
  17. WIP

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    e520a2d View commit details
    Browse the repository at this point in the history
  18. Fix macro_define_env test.

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    c1e0018 View commit details
    Browse the repository at this point in the history
  19. Fix vm code tests.

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    9738d81 View commit details
    Browse the repository at this point in the history
  20. Remove tests for now.

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    56f0c4f View commit details
    Browse the repository at this point in the history
  21. Fix borked merge

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    2d8dd9c View commit details
    Browse the repository at this point in the history
  22. Fix build for wasm

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    601359d View commit details
    Browse the repository at this point in the history
  23. fmt

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    4271c48 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    56280a0 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    7053d29 View commit details
    Browse the repository at this point in the history
  26. Fix vm tests.

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    e629768 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    cef469f View commit details
    Browse the repository at this point in the history
  28. Implement test language.

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    e1969ae View commit details
    Browse the repository at this point in the history
  29. Add input_data test.

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    bbb50cd View commit details
    Browse the repository at this point in the history
  30. Max depth test

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    53ca6be View commit details
    Browse the repository at this point in the history
  31. ext_caller

    pepyakin committed Dec 20, 2018
    Configuration menu
    Copy the full SHA
    3324b8e View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2018

  1. Simplify test.

    pepyakin committed Dec 21, 2018
    Configuration menu
    Copy the full SHA
    c851fd6 View commit details
    Browse the repository at this point in the history
  2. Add TODO

    pepyakin committed Dec 21, 2018
    Configuration menu
    Copy the full SHA
    2c025f7 View commit details
    Browse the repository at this point in the history
  3. Some tests and todos.

    pepyakin committed Dec 21, 2018
    Configuration menu
    Copy the full SHA
    d43d5e3 View commit details
    Browse the repository at this point in the history
  4. top_level

    pepyakin committed Dec 21, 2018
    Configuration menu
    Copy the full SHA
    09ca3b5 View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2018

  1. Clean.

    pepyakin committed Dec 22, 2018
    Configuration menu
    Copy the full SHA
    4a12044 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    700cf43 View commit details
    Browse the repository at this point in the history
  3. Add a few comments.

    pepyakin committed Dec 22, 2018
    Configuration menu
    Copy the full SHA
    8f58d0e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    34a26b0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6519b69 View commit details
    Browse the repository at this point in the history
  6. Add not_exists test.

    pepyakin committed Dec 22, 2018
    Configuration menu
    Copy the full SHA
    f40a2c7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f2727a3 View commit details
    Browse the repository at this point in the history

Commits on Dec 24, 2018

  1. Add address tests.

    pepyakin committed Dec 24, 2018
    Configuration menu
    Copy the full SHA
    ddf9658 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b6ded65 View commit details
    Browse the repository at this point in the history

Commits on Dec 26, 2018

  1. return from start fn.

    pepyakin committed Dec 26, 2018
    Configuration menu
    Copy the full SHA
    5b62988 View commit details
    Browse the repository at this point in the history
  2. Smart gas meter

    pepyakin committed Dec 26, 2018
    Configuration menu
    Copy the full SHA
    b5fd8dc View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2018

  1. Tracing

    pepyakin committed Dec 27, 2018
    Configuration menu
    Copy the full SHA
    8b1f113 View commit details
    Browse the repository at this point in the history
  2. Fix prepare tests.

    pepyakin committed Dec 27, 2018
    Configuration menu
    Copy the full SHA
    e2559c6 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2019

  1. Code moving

    pepyakin committed Jan 2, 2019
    Configuration menu
    Copy the full SHA
    a07066a View commit details
    Browse the repository at this point in the history
  2. Add ExecFeeToken

    pepyakin committed Jan 2, 2019
    Configuration menu
    Copy the full SHA
    de81162 View commit details
    Browse the repository at this point in the history
  3. Use tokens everywhere.

    pepyakin committed Jan 2, 2019
    Configuration menu
    Copy the full SHA
    97eb2a9 View commit details
    Browse the repository at this point in the history
  4. Make it compile in no_std.

    pepyakin committed Jan 2, 2019
    Configuration menu
    Copy the full SHA
    16351ca View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d9d2769 View commit details
    Browse the repository at this point in the history
  6. A minor clean

    pepyakin committed Jan 2, 2019
    Configuration menu
    Copy the full SHA
    81be0fd View commit details
    Browse the repository at this point in the history
  7. First create tests

    pepyakin committed Jan 2, 2019
    Configuration menu
    Copy the full SHA
    7451166 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2019

  1. Remove unneeded TODO

    pepyakin committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    bf094c7 View commit details
    Browse the repository at this point in the history
  2. Docs.

    pepyakin committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    5239bf8 View commit details
    Browse the repository at this point in the history
  3. Code shuffling

    pepyakin committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    46ac8fa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e17b369 View commit details
    Browse the repository at this point in the history
  5. Add test address.

    pepyakin committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    6d5e0aa View commit details
    Browse the repository at this point in the history
  6. Merge remote-tracking branch 'origin/master' into ser-putcode-model

    # Conflicts:
    #	srml/contract/src/lib.rs
    pepyakin committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    f48f565 View commit details
    Browse the repository at this point in the history
  7. Code shuffling

    pepyakin committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    5365d8b View commit details
    Browse the repository at this point in the history
  8. Add base_fee tests.

    pepyakin committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    224fadf View commit details
    Browse the repository at this point in the history
  9. rejig the code

    pepyakin committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    01390c7 View commit details
    Browse the repository at this point in the history
  10. Add some comments

    pepyakin committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    3f6b174 View commit details
    Browse the repository at this point in the history
  11. on_finalise comment

    pepyakin committed Jan 3, 2019
    Configuration menu
    Copy the full SHA
    83e4ee1 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2019

  1. Move event deposit further

    pepyakin committed Jan 4, 2019
    Configuration menu
    Copy the full SHA
    452977d View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2019

  1. Update Cargo.lock

    pepyakin committed Jan 7, 2019
    Configuration menu
    Copy the full SHA
    0af6aa8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a5a5d20 View commit details
    Browse the repository at this point in the history
  3. Format todo comments

    pepyakin committed Jan 7, 2019
    Configuration menu
    Copy the full SHA
    af9427b View commit details
    Browse the repository at this point in the history
  4. Fix formatting

    pepyakin committed Jan 7, 2019
    Configuration menu
    Copy the full SHA
    89932cd View commit details
    Browse the repository at this point in the history
  5. Comments

    pepyakin committed Jan 7, 2019
    Configuration menu
    Copy the full SHA
    9265e73 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    56e9969 View commit details
    Browse the repository at this point in the history
  7. Restore code_hash

    pepyakin committed Jan 7, 2019
    Configuration menu
    Copy the full SHA
    755fccd View commit details
    Browse the repository at this point in the history
  8. Fix node-executor.

    pepyakin committed Jan 7, 2019
    Configuration menu
    Copy the full SHA
    d3693df View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2019

  1. Fix typo

    pepyakin committed Jan 8, 2019
    Configuration menu
    Copy the full SHA
    f807766 View commit details
    Browse the repository at this point in the history
  2. Fix fmt

    pepyakin committed Jan 8, 2019
    Configuration menu
    Copy the full SHA
    e58fa2c View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2019

  1. Merge remote-tracking branch 'origin/master'

    # Conflicts:
    #	Cargo.lock
    #	core/test-runtime/wasm/Cargo.lock
    #	core/test-runtime/wasm/target/wasm32-unknown-unknown/release/substrate_test_runtime.compact.wasm
    #	node/executor/src/lib.rs
    #	node/runtime/wasm/Cargo.lock
    #	node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm
    pepyakin committed Jan 9, 2019
    Configuration menu
    Copy the full SHA
    088ec93 View commit details
    Browse the repository at this point in the history
  2. Update srml/contract/src/account_db.rs

    Co-Authored-By: pepyakin <s.pepyakin@gmail.com>
    gnunicorn and pepyakin authored Jan 9, 2019
    Configuration menu
    Copy the full SHA
    2cbf622 View commit details
    Browse the repository at this point in the history
  3. Update srml/contract/src/lib.rs

    Co-Authored-By: pepyakin <s.pepyakin@gmail.com>
    gnunicorn and pepyakin authored Jan 9, 2019
    Configuration menu
    Copy the full SHA
    785bbb9 View commit details
    Browse the repository at this point in the history
  4. Line wraps

    pepyakin committed Jan 9, 2019
    Configuration menu
    Copy the full SHA
    4e2e443 View commit details
    Browse the repository at this point in the history
  5. Wrapping macros

    pepyakin committed Jan 9, 2019
    Configuration menu
    Copy the full SHA
    a2fada6 View commit details
    Browse the repository at this point in the history
  6. Add _ prefix

    pepyakin committed Jan 9, 2019
    Configuration menu
    Copy the full SHA
    d8f433f View commit details
    Browse the repository at this point in the history
  7. Grumbles

    pepyakin committed Jan 9, 2019
    Configuration menu
    Copy the full SHA
    bf2c8ae View commit details
    Browse the repository at this point in the history
  8. Doc updates.

    pepyakin committed Jan 9, 2019
    Configuration menu
    Copy the full SHA
    7c8d487 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2019

  1. Update srml/contract/src/wasm/mod.rs

    Co-Authored-By: pepyakin <s.pepyakin@gmail.com>
    gnunicorn and pepyakin authored Jan 10, 2019
    Configuration menu
    Copy the full SHA
    25cce89 View commit details
    Browse the repository at this point in the history
  2. Update srml/contract/src/lib.rs

    Co-Authored-By: pepyakin <s.pepyakin@gmail.com>
    gnunicorn and pepyakin authored Jan 10, 2019
    Configuration menu
    Copy the full SHA
    a9fc6ef View commit details
    Browse the repository at this point in the history
  3. Merge branch 'ser-putcode-model' of github.com:paritytech/substrate i…

    …nto ser-putcode-model
    pepyakin committed Jan 10, 2019
    Configuration menu
    Copy the full SHA
    c166e74 View commit details
    Browse the repository at this point in the history
  4. Add comment

    pepyakin committed Jan 10, 2019
    Configuration menu
    Copy the full SHA
    cad39fe View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bbbac91 View commit details
    Browse the repository at this point in the history
  6. Add prepare_test! macro

    pepyakin committed Jan 10, 2019
    Configuration menu
    Copy the full SHA
    09e4a99 View commit details
    Browse the repository at this point in the history
  7. Require deploy function.

    pepyakin committed Jan 10, 2019
    Configuration menu
    Copy the full SHA
    0087a63 View commit details
    Browse the repository at this point in the history
  8. Add entry point tests

    pepyakin committed Jan 10, 2019
    Configuration menu
    Copy the full SHA
    260665d View commit details
    Browse the repository at this point in the history
  9. Add comment.

    pepyakin committed Jan 10, 2019
    Configuration menu
    Copy the full SHA
    59a2a76 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b666bd6 View commit details
    Browse the repository at this point in the history
  11. Get rid of weird match!

    pepyakin committed Jan 10, 2019
    Configuration menu
    Copy the full SHA
    9b13600 View commit details
    Browse the repository at this point in the history
  12. Recompile binaries

    pepyakin committed Jan 10, 2019
    Configuration menu
    Copy the full SHA
    c351d9e View commit details
    Browse the repository at this point in the history
  13. Add comments

    pepyakin committed Jan 10, 2019
    Configuration menu
    Copy the full SHA
    49e4d04 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    1ebe45f View commit details
    Browse the repository at this point in the history
  15. Little fix

    pepyakin committed Jan 10, 2019
    Configuration menu
    Copy the full SHA
    7d76184 View commit details
    Browse the repository at this point in the history
  16. Make test more complete

    pepyakin committed Jan 10, 2019
    Configuration menu
    Copy the full SHA
    7b40828 View commit details
    Browse the repository at this point in the history
  17. Clean

    pepyakin committed Jan 10, 2019
    Configuration menu
    Copy the full SHA
    1aa7dc7 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    66e2cc6 View commit details
    Browse the repository at this point in the history
  19. Merge remote-tracking branch 'origin/master' into ser-putcode-model

    # Conflicts:
    #	Cargo.lock
    #	node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm
    pepyakin committed Jan 10, 2019
    Configuration menu
    Copy the full SHA
    fd085c7 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2019

  1. Rebuild runtime.

    pepyakin committed Jan 11, 2019
    Configuration menu
    Copy the full SHA
    9974158 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2019

  1. Merge remote-tracking branch 'origin/master' into ser-putcode-model

    # Conflicts:
    #	core/test-runtime/wasm/target/wasm32-unknown-unknown/release/substrate_test_runtime.compact.wasm
    #	node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm
    #	srml/contract/src/account_db.rs
    #	srml/contract/src/lib.rs
    #	srml/contract/src/tests.rs
    pepyakin committed Jan 14, 2019
    Configuration menu
    Copy the full SHA
    e19d643 View commit details
    Browse the repository at this point in the history
  2. Add some tests.

    pepyakin committed Jan 14, 2019
    Configuration menu
    Copy the full SHA
    27f9d5f View commit details
    Browse the repository at this point in the history
  3. Attach an issue to a TODO

    pepyakin committed Jan 14, 2019
    Configuration menu
    Copy the full SHA
    1401dec View commit details
    Browse the repository at this point in the history
  4. Attach another issue

    pepyakin committed Jan 14, 2019
    Configuration menu
    Copy the full SHA
    449f5ad View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2019

  1. Apply suggestions from code review

    Co-Authored-By: pepyakin <s.pepyakin@gmail.com>
    gnunicorn and pepyakin authored Jan 15, 2019
    Configuration menu
    Copy the full SHA
    34a1698 View commit details
    Browse the repository at this point in the history
  2. Update srml/contract/src/exec.rs

    Co-Authored-By: pepyakin <s.pepyakin@gmail.com>
    gnunicorn and pepyakin authored Jan 15, 2019
    Configuration menu
    Copy the full SHA
    8108d87 View commit details
    Browse the repository at this point in the history
  3. Update srml/contract/src/exec.rs

    Co-Authored-By: pepyakin <s.pepyakin@gmail.com>
    gnunicorn and pepyakin authored Jan 15, 2019
    Configuration menu
    Copy the full SHA
    930cbf2 View commit details
    Browse the repository at this point in the history
  4. Recompile node_runtime

    pepyakin committed Jan 15, 2019
    Configuration menu
    Copy the full SHA
    40cf826 View commit details
    Browse the repository at this point in the history
  5. Merge remote-tracking branch 'origin/master' into ser-putcode-model

    # Conflicts:
    #	node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm
    pepyakin committed Jan 15, 2019
    Configuration menu
    Copy the full SHA
    8cc6f33 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2019

  1. Merge and fix merge conflicts

    # Conflicts:
    #	node/executor/src/lib.rs
    #	node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm
    #	srml/contract/src/lib.rs
    #	srml/contract/src/tests.rs
    pepyakin committed Jan 16, 2019
    Configuration menu
    Copy the full SHA
    7c9c8a6 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2019

  1. Merge and fix conflicts

    # Conflicts:
    #	Cargo.lock
    #	core/test-runtime/wasm/target/wasm32-unknown-unknown/release/substrate_test_runtime.compact.wasm
    #	node/runtime/wasm/target/wasm32-unknown-unknown/release/node_runtime.compact.wasm
    #	srml/contract/Cargo.toml
    pepyakin committed Jan 17, 2019
    Configuration menu
    Copy the full SHA
    41f769a View commit details
    Browse the repository at this point in the history