Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge dynamic_link into feat/1.5.0_dynamiclink (copy of feat/bump_1.5.0) #340

Closed

Commits on Mar 15, 2022

  1. feat: direct contract call with dynamic link (Finschia#153)

    * feat: add contract_call definition to BackendApi
    
    * feat: add dynamic link for imported function in custom env
    
    * feat: allow custom env module name
    
    * feat: add sample contracts for testing dynamic link feature
    
    * feat: add fmt::Display trait to FunctionMetadata
    
    * chore: add FIXME comment for known issue
    
    * fix: move out the callee metadata from context_data to env
    
    context_data is wrraped by Arc, so cloned envs are sharing the context_data.
    so overwrite the previous metadata if there are more then 2 imported functions.
    
    * chore: remove ci in example contracts
    
    * fix: fix import name condition to allow only one dot
    
    * chore: update cargo for contracts
    
    * chore: fix lint
    
    * chore: fix clippy
    
    * chore: cargo fmt
    
    * docs: simplify the sample contract docs
    
    Most are generated by the template and are not needed.
    
    * chore: remove contract unused warnings
    
    * chore: delete unnecessary excludes created by template
    Jiyong Ha committed Mar 15, 2022
    Configuration menu
    Copy the full SHA
    5732a33 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2022

  1. feat: add import&export macro and serialized data copy pass (Finschia…

    …#157)
    
    * feat: add #[callable_point] proc macro
    
    * feat: add #[dynamic_link] proc macro
    
    * fix: publiclize the memory module
    
    using in #[callable_point] and #[dynamic_link]
    
    * feat: add re-exports #[callable_point] and #[dynamic_link]
    
    * feat: make tuple return by #[callable_point] and #[dynamic_link]
    
    * feat: add copies region of args and return between env
    
    The actual copy calls are executed by wasmvm.
    
    * fix: disable return the tuple type
    
    Finschia#156
    
    * refactor: improve error handling with proc_macro_error
    
    * feat: update sample contract for dynamic_link
    
    * test: add unit test for copy_region_vals_between_env
    
    * test: add integration test for callable_point macro
    
    proc_macro cannot do normal unit tests.
    Instead, it is replaced by the contract's integration test.
    
    * test: add integration test for dynamic_link macro
    
    proc_macro cannot do normal unit tests.
    Instead, it is replaced by the contract's integration test.
    
    * fix: unlimit the target_arch of memory module
    
    When running the test with dynamic_link proc_macro,
    it should be able to compile the memory module on other architectures as well.
    
    * chore: cargo fmt
    
    * chore: update cargo.lock for contracts
    
    * fix: fix maximum size
    
    * chore: cargo clippy
    
    * test: add module name test condition for dynamic_link macro
    
    * chore: fix reverted unused warnings in the contracts
    
    * chore: fix typo
    
    * chore: remove unnecessary prefix
    
    * refactor: improve abort message
    
    * refactor: change to use quote! and proc_macro2
    
    proc_macro2 allows the implementation of separate modules.
    
    * chore: update cargo.lock
    
    * chore: disable clippy warning for abort_by!
    
    * fix: add disallowed type by parameter
    
    see: Finschia#152
    
    * chore:cargo fmt
    
    * chore: avoid false-positive of clippy
    
    * chore: again avoid clippy
    
    * chore: fix typo
    Jiyong Ha committed Mar 31, 2022
    Configuration menu
    Copy the full SHA
    5cfcf14 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2022

  1. feat: add global api for to get env,deps in dynamic call (Finschia#182)

    * feat: add global api for to get env in dynamic call
    
    * tet: add integration test for env of global api
    
    * refactor: refactor integration test
    
    * chore: cargo fmt
    
    * feat: add deps into global api
    
    It has bug within using the mock envs.
    leave the issue and continue with W/A first because it's need for the virtual call stack test.
    Jiyong Ha committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    7b2d9dd View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2022

  1. feat: add dynamic callstack for prevent the re-entrancy attack (Finsc…

    …hia#178)
    
    * feat: add dynamic callstack for prevent the re-entrancy attack
    
    - includes max call depth limitation
    
    * test: add integration test for trying re-entrancy attack
    
    * fix: change the duplication check to use contract address
    
    Even in a running existing contract, a wasmer instance is newly created every call.
    cannot use the wasmer instance for check the duplication.
    
    * chore: rename to try_pass_callstack
    
    * chore: cargo fmt
    Jiyong Ha committed Apr 28, 2022
    Configuration menu
    Copy the full SHA
    990b9e1 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2022

  1. Configuration menu
    Copy the full SHA
    df82d81 View commit details
    Browse the repository at this point in the history
  2. test: add unit test for dynamic link trampoline (Finschia#185)

    * refactor: remove available gas parameter by contract_call
    
    * test: add unit test for native_dynamic_link_trampoline
    
    * refactor: refactor test code for using an existing mock_instance function
    
    * chore: cargo fmt
    
    * chore: rename function
    Jiyong Ha committed May 9, 2022
    Configuration menu
    Copy the full SHA
    141c988 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2022

  1. test: add unit tests for #[dynamic_link] and #[callable_point] (Finsc…

    …hia#188)
    
    * test: add unit tests for #[dynamic_link] and #[callable_point]
    
    Due to the limitations of proc macro test implementation,
    test logic cannot be added where attribute and proc-macro-error are used.
    
    * chore: cargo fmt
    
    * test: refactor tests
    Jiyong Ha committed May 10, 2022
    Configuration menu
    Copy the full SHA
    d81a930 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2022

  1. feat: enable dynamic callee returns tuple typed value (Finschia#195)

    * feat: enable dynamic callee function to return tuple typed value
    
    * refactor: refactor how to check returned value of dynamic callee
    
    * refactor: refactor dynamic call macros
    
    * feat: add dynamic call function returns tuple and tests
    
    * chore: cargo fmt
    
    * chore: cargo clippy
    
    * fix: fix attribute format of dynamic caller's pnig
    
    * docs: update README.md of contracts
    
    * fix: refactor dynamic-callee and dynamic-caller
    
    * chore: cargo fmt
    
    * chore: format contract/REAMDE.md 's table
    loloicci committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    4a4e155 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ea4ff2e View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2022

  1. fix: limit exporting GlobalEnv only to wasm32 target (Finschia#212)

    * fix: limit exporting GlobalEnv to wasm32 target
    
    * chore: cargo clippy
    loloicci committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    b60b63c View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2022

  1. fix: correct path (Finschia#217)

    * fix: contract path
    
    * fix: contract path(caller)
    da1suk8 committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    bfc80e0 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2022

  1. feat: improve how to specify the callee contract address (Finschia#215)

    * chore: remove unneeded line from test wasm
    
    * feat: change from where vm fetches callee address
    
    * feat: add Contract trait to represent callee contract
    
    * feat: add derive Contract
    
    * feat: remake macros for dynamic link
    
    * feat: remake dynamic caller contract
    
    * fix: fix unit tests for dynamic link
    
    * fix: fix how to dynamic link callee contract
    
    * fix: fix a typo
    loloicci committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    4aa757d View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2022

  1. fix: relax the limit of exporting targets of global env (Finschia#220)

    * revert: Revert "fix: limit exporting GlobalEnv only to wasm32 target (Finschia#212)"
    
    This reverts commit b60b63c.
    
    * fix: relax the limit of exporting of GlobalEnv
    loloicci committed Jul 8, 2022
    Configuration menu
    Copy the full SHA
    39b4811 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2022

  1. feat: add number contracts (Finschia#222)

    * feat: add number contracts
    
    * ci: add tests for number contracts to github workflow
    loloicci committed Jul 15, 2022
    Configuration menu
    Copy the full SHA
    c546d49 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2022

  1. feat: improve dynamic link contracts' tests and add them to github wo…

    …rkflow (Finschia#221)
    
    * fix: improve dynamic callee tests
    
    * feat: add dynamic link contracts' tests to github workflow
    
    * fix: cargo clippy and improve arg names
    
    * ci: comment out clippy for dynamic-link contracts
    loloicci committed Jul 21, 2022
    Configuration menu
    Copy the full SHA
    3857228 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2022

  1. perf: Add benchmarks for estimate dynamic link gas cost (Finschia#224)

    * feat: expand env type for read/write data from/to mock env
    
    * perf: add benchmark for native_dynamic_link_trampoline
    
    * perf: add benchmark for read/write region
    
    * perf: fix a mistaken commentout
    
    * pref: increase gas limit for mock instance big enough for bench iterations
    loloicci committed Aug 18, 2022
    Configuration menu
    Copy the full SHA
    a227bee View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2022

  1. fix: rename generated functions from dynamic_link and callable_point …

    …macro (Finschia#226)
    
    * fix: rename generated function by dynamic_link and callable_point
    
    * fix: fix tests of contracts for previous commit's change
    
    * chore: cargo fmt
    
    * fix: fix a test for dynamic_link
    loloicci committed Aug 24, 2022
    Configuration menu
    Copy the full SHA
    c314989 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f22dc86 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2022

  1. feat: make available user defined mock for dynamic link (Finschia#229)

    * feat: enable implement user defined mock of dynamic link
    
    * feat: add userdefined mock and tests to dynamic-caller-contract
    
    * fix: fix a doctest for dynamic_link
    
    * chore: cargo clippy
    
    * chore: remove a whitespace after ! (op not)
    loloicci committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    b40f277 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2022

  1. feat: change error message (Finschia#232)

    * test: enable to fail in dynamic_link callee mock wat
    
    * feat: add error for dynamic link
    
    * test: add unit test for dynamic link
    
    * fix: delete unnecessary blank
    
    * fix: modify to the appropriate function
    
    * fix: fix unit tests for dynamic link
    
    * fix: modified function name
    
    * fix: change type to String
    
    * refactor: use unwrap_err
    
    Co-authored-by: loloicci <loloicci@linecorp.com>
    da1suk8 and loloicci committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    2c3dc42 View commit details
    Browse the repository at this point in the history
  2. docs: fix README (Finschia#235)

    * fix: cache name
    
    * docs: add call-number and number
    
    * docs: fix typo and title
    
    * docs: add entry point info of number and call-number
    da1suk8 committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    54a4980 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2022

  1. feat: add do_panic as callable_point (Finschia#236)

    * feat: add callee_panic of callable_point
    
    * test: add integration test for callee_panic
    
    * fix: fix test error
    
    * fix: adapt cargo schema
    
    * fix: add newline at end of file
    
    * fix: rename function to do_panic
    
    * fix: add "s"
    da1suk8 committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    8501d46 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2022

  1. feat: make callable point takes deps as the first arg (Finschia#233)

    * feat: make callable_point function takes deps as the first arg
    
    * feat: fix dynamic callee contracts' callable points
    
    * test: add and format docs for macros
    
    * feat: remove functions to get deps in global_api
    
    * fix: fix merged dynamic_callee_contract
    loloicci committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    d601ee1 View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2022

  1. ci: fix dynamic_link ci for benchmarking following Finschia#209 (Fins…

    …chia#237)
    
    * ci: fix broken workflow for benchmarking (Finschia#209)
    
    * ci: clean list of branches to benchmark
    
    * ci: fix broken workflow for benchmarking
    
    * ci: change rust version for dynamic_link branch
    
    * ci: add dynamic_link branch to branches to take benchmark
    loloicci committed Sep 5, 2022
    Configuration menu
    Copy the full SHA
    a45c627 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    424de0f View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2022

  1. feat: pass env as the second arg of dynamic linked callee function (F…

    …inschia#234)
    
    * feat: add userdefined mock and tests to dynamic-caller-contract
    
    * revert: "feat: add global api for to get env,deps in dynamic call (Finschia#182)"
    
    This reverts commit 7b2d9dd.
    
    * feat: add write_value_to_env which writes value to instance memory
    
    * feat: make callable point take Env as the second arg
    
    * fix: fix merged contracts
    
    * chore: fix a comment
    loloicci committed Sep 6, 2022
    Configuration menu
    Copy the full SHA
    d08b5a5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cbebb8a View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2022

  1. Configuration menu
    Copy the full SHA
    4ec2394 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2022

  1. build: update Cargo.lock

    da1suk8 committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    55608d4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e26fdfc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    39464c3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fa8227e View commit details
    Browse the repository at this point in the history
  5. style: use unwrap()

    da1suk8 committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    f1024c8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    54a6b74 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    66aa3e7 View commit details
    Browse the repository at this point in the history
  8. docs: update README

    da1suk8 committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    98dbb39 View commit details
    Browse the repository at this point in the history
  9. ci: delete same part

    da1suk8 committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    af6d6ee View commit details
    Browse the repository at this point in the history
  10. test: fix integration test

    da1suk8 committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    9704c6d View commit details
    Browse the repository at this point in the history
  11. ci: add voting_with_uuid

    da1suk8 committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    02bf950 View commit details
    Browse the repository at this point in the history
  12. test: fix unit test

    da1suk8 committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    455dbd9 View commit details
    Browse the repository at this point in the history
  13. fix: fix clippy

    da1suk8 committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    c074547 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2022

  1. feat: add interface validation method for dynamic link functions (Fin…

    …schia#245)
    
    * feat: add get_wasmer_module to backend api
    
    * feat: add validate interface to api
    
    * feat: make dynamic_link macro which adds validate interface automatically
    
    * feat: update dynamic caller contract to use interface detection and
    update contracts depending cosmwasm
    
    * doc: add some comments
    
    * ci: upgrade Rust in CI contract building test
    
    This PR upgrade Rust to 1.57.0 in some part of CI.
    When CI uses rust 1.51,
    error: linking with `cc` failed: exit code: 1
    is caused in mac OS v12.
    
    * fix: modify a error message
    loloicci committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    a611c55 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a9cfcd3 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2022

  1. fix: fix max_address_length

    da1suk8 committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    bbbab82 View commit details
    Browse the repository at this point in the history
  2. feat: force the dynamic linked functions' module name to start with "…

    …dynamiclinked_" (Finschia#248)
    
    * fix: fix the dynamic linked functions' module name starts with "dynamiclinked_"
    
    * fix: fix tests in contracts
    
    * feat: add a test for block WASI
    
    * chore: make some multiple used string a variable
    loloicci committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    aba70a2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7b9f70d View commit details
    Browse the repository at this point in the history
  4. fix: update Cargo.lock

    da1suk8 committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    ca4f75c View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2022

  1. fix: add comment

    da1suk8 committed Oct 31, 2022
    Configuration menu
    Copy the full SHA
    6df419f View commit details
    Browse the repository at this point in the history
  2. fix: add newline

    da1suk8 committed Oct 31, 2022
    Configuration menu
    Copy the full SHA
    facfd37 View commit details
    Browse the repository at this point in the history
  3. Merge pull request Finschia#244 from da1suk8/M1support_dynamic_link

    fix: update dependencies of packages in dynamic link branch
    da1suk8 committed Oct 31, 2022
    Configuration menu
    Copy the full SHA
    497f09d View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2022

  1. Configuration menu
    Copy the full SHA
    2e02a26 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2022

  1. Configuration menu
    Copy the full SHA
    5a2058a View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2022

  1. ci: add setup process of dynamic link benchmarking to avoid runing ou…

    …t of gas (Finschia#250)
    
    * fix: use interface_version_8
    
    * fix: prepare instance in setup function
    
    Co-authored-by: Daisuke Iuchi <42408108+da1suk8@users.noreply.github.com>
    loloicci and da1suk8 committed Dec 19, 2022
    Configuration menu
    Copy the full SHA
    71f3509 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2022

  1. Configuration menu
    Copy the full SHA
    3025e45 View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2022

  1. fix: remake functions to read/write from/to env region for dynamic li…

    …nk (Finschia#259)
    
    * feat: enable to specify the limit of region length used in dynamic link
    
    * feat: remove copy_regions_val_between_env and make read_regons_val_from_env
    
    * fix: fix address length limit in validate dynamic link interface
    
    * feat: add simple callee contract for test
    
    * doc: add documents for simple-callee
    
    * fix: fix mock contract_call api to write env to callee env
    
    * feat: powerup call-number to enable use submsg reply to execute number
    
    * fix: reflect reviews
    
    * chore: update Cargo.lock for Finschia#261
    loloicci committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    324f59e View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2022

  1. ci: add Documentation tests (Finschia#262)

    * ci: add documentation test
    
    * fix: add newline
    
    * ci: add contract_simple_callee in tests
    da1suk8 committed Dec 23, 2022
    Configuration menu
    Copy the full SHA
    202cb81 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2023

  1. feat: Add EventManager to Context Data in Instance's Environment (Fin…

    …schia#266)
    
    * feat: add event manager to ctx/environment
    
    * feat: add do_ functions in imports.rs
    
    * feat: add native api functions for adding event/attribute
    
    * feat: add get_evests_attributes to instance
    
    * feat: add event manager functions to Deps.api
    
    * feat: add a contract to test event manager
    
    * feat: add tests of event manager
    loloicci committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    a4c961f View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2023

  1. Configuration menu
    Copy the full SHA
    e780aeb View commit details
    Browse the repository at this point in the history
  2. bump up to 2.3.0 of wasmer

    da1suk8 committed Mar 13, 2023
    Configuration menu
    Copy the full SHA
    4534ffa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    74db75f View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2023

  1. feat!: read/write context/permission (Finschia#270)

    * feat!: add callable_points instead of callable_point
    
    Because created a function to export the read-write permission of each function
    of callable_point outside
    
    * feat: add caller-callee-number
    
    Added to check if read-write and read-only permissions
    are properly inherited
    As for sub, intentionally use handle-sub as a function
    with read-wirte permission
    
    * cargo build
    
    * fix: cargo clippy
    
    * rename caller-callee-number to intermediate-number
    
    because to make it easy to understand that thsi contract is
    between call-number and number
    
    * fix: rename intermediate_number
    
    * fix: unnecessary code
    
    * fix: reflect comments
    
    divide into module
    modified for better understanding
    
    * ci: add test of intermediate-number
    
    * fix: reflect comment
    
    rename __callable_point to callable_points
    fix typo
    add document
    
    * Update packages/derive/src/lib.rs
    
    Co-authored-by: TAKASE Ryo <loloicci@loloicci.dev>
    
    * fix: reflect comment
    
    change to use serialized binaries
    
    * fix: cargo clippy
    
    * fix: update function description
    
    * fix: remove unnecessary file
    
    * fix: fix permissions structure for better clarity
    
    * fix: change name of function
    
    * fix: test and description
    
    ---------
    
    Co-authored-by: TAKASE Ryo <loloicci@loloicci.dev>
    da1suk8 and loloicci committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    fc54ae1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b7b80f6 View commit details
    Browse the repository at this point in the history
  3. bump up to 2.3.0 of wasmer

    da1suk8 committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    6862de3 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2023

  1. Configuration menu
    Copy the full SHA
    26010f9 View commit details
    Browse the repository at this point in the history
  2. feat: improve events contract to be usable via dynamic link (Finschia…

    …#274)
    
    * feat: improve events contract usable for callee/caller
    
    * chore: add doc comments for event contract
    loloicci committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    f46c6e9 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2023

  1. feat: implement set_dynamic_callstack and call_function to Instance (F…

    …inschia#272)
    
    * feat: implement set_callstack to environment
    
    * feat: implement call_function to instance
    
    * chore: cargo fmt
    loloicci committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    a265000 View commit details
    Browse the repository at this point in the history
  2. fix: Fix events contract (Finschia#276)

    * fix: fix events contract for dynamic link
    
    * ci: add ci for events contract
    
    * fix: update schema of events contract
    loloicci committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    f4e432a View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2023

  1. feat: add set_callee_permission (Finschia#278)

    * feat: add succeed_readonly to simple callee contract
    
    * feat: add set_callee_permission
    
    * feat: add comment
    
    * chore: cargo clippy
    loloicci committed Mar 30, 2023
    Configuration menu
    Copy the full SHA
    6774545 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2023

  1. Merge pull request Finschia#271 from da1suk8/merge_main_6ea2dfb7

    merge main(6ea2dfb) in dynamic_link branch
    da1suk8 committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    df28f42 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2023

  1. ci: add lack clippy tests for some contracts and fix contracts accord…

    …ing to them (Finschia#285)
    
    * ci: add lack clippy tests for contracts
    
    * fix: cargo clippy for intermediate-number contract
    
    * fix: cargo clippy for simple-callee contract
    
    * fix: cargo clippy for voting-with-uuid contract
    
    * ci: update rust toolchain for testing eventns contract
    
    * build: cargo schema in event contract
    
    * fix: cargo clippy in call number contract
    
    * ci: modify tests.yml
    loloicci committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    f3d7757 View commit details
    Browse the repository at this point in the history
  2. feat: switch how to do dynamic link and validate interface to solve r…

    …ust/Go pointer sharing issue (Finschia#283)
    
    * feat: improve contracts using dynamic link for test new dynamic link functions
    
    * feat: change how to dynamic link and validate interface
    
    * chore: cargo fmt
    
    * chore: cargo fmt
    
    * ci: update rust-toolchain version in ci tests according to latest dynamic link branch
    
    * chore: cargo schema on events contract
    
    * chore: cargo clippy
    
    * chore: cargo clippy for dynamic-caller-contract
    
    * test: remove verbose tests for dynamic link
    
    some tests in vm/dynamic_link.rs are testing mock.rs's call_callable point.
    this is verbose, and this mock will be removed in Finschia#273.
    so this commit removes these tests.
    loloicci committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    6ce2d99 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2023

  1. fix: Remove unused dynamiclink features (Finschia#286)

    * fix: remove unused dynamiclink features
    
    * fix: fix tests for callee contracts
    loloicci committed Apr 14, 2023
    Configuration menu
    Copy the full SHA
    cb1a355 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2023

  1. fix: serde wasm32 target (Finschia#288)

    * fix: serde wasm32 target
    
    * test: fix cargo lock and fmt
    
    * Revert "test: fix cargo lock and fmt"
    
    This reverts commit 359fcc3.
    
    * Revert "fix: serde wasm32 target"
    
    This reverts commit 34416b9.
    
    * fix: serde wasm32 target
    
    * test: fix fmt
    
    * fix: add crate::serde::to_vec
    
    * Revert "fix: add crate::serde::to_vec"
    
    This reverts commit 80834b8.
    
    * fix serde wasm32 target - to_binary
    dudong2 committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    72064e6 View commit details
    Browse the repository at this point in the history
  2. fix: change the type of argument of "validate_interface" to serialize…

    …d binary (Finschia#289)
    
    * fix: change validate interface receiving expected interface as binary
    
    * build: update cargo files and some tests in contracts
    
    * docs: delete needless comment
    loloicci committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    9161e25 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2023

  1. Configuration menu
    Copy the full SHA
    00f58c0 View commit details
    Browse the repository at this point in the history
  2. ci: fix benchmarkings and make CI benchmark each PR (Finschia#294)

    * fix: fix benchmarks
    
    * ci: make ci benchmarks for each PRs
    
    * fix: delete a benchmarking which cannot be done in the single repository now
    
    * chore: fix format
    
    * fix: fix a bug in benchmark
    loloicci committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    ac1e18e View commit details
    Browse the repository at this point in the history

Commits on May 22, 2023

  1. feat: check property function for dynamic linked callee contract (Fin…

    …schia#301)
    
    * feat: add propoerty check for dynamic linked callee contract
    
    * feat: add default supported function list
    
    * test: fix fmt
    
    * test: fix test
    
    * test: without callable_points
    
    * test: remove unneeded line and change case order
    dudong2 committed May 22, 2023
    Configuration menu
    Copy the full SHA
    2ff53aa View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. feat: add get_caller_addr to deps.api (Finschia#304)

    * feat: add get_caller_addr to deps.api
    
    * feat: add some functions to check get_caller_addr to sample contracts
    
    * fix: fix reentrancy and split callee's callee contract definition
    
    * fix: rename an attribute name of a event
    
    * chore: cargo fmt
    loloicci committed Jun 12, 2023
    Configuration menu
    Copy the full SHA
    d566925 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2023

  1. feat: add a query to get own address via callee's get caller address … (

    Finschia#307)
    
    * feat: add a query to get own address via callee's get caller address to dynamic_caller_contract
    
    * chore: cargo clippy
    loloicci committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    eda535b View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

  1. fix: delete outdated serde json (Finschia#312)

    * fix: delete outdated comments
    
    * chore: delete unused serde_json from contracts dependencies
    
    * chore: update dynamic-callee-contract's Cargo.lock
    loloicci committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    8bc0b35 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2023

  1. feat: StdResult (de)serializer (Finschia#313)

    * feat: StdResult (de)serialize
    
    * test: fix lint fmt
    
    * chore: remove comments
    
    * test: fix std result pong ordering
    
    * chore: add semicolon
    
    * test: fix test
    
    * test: add pong_with_stdresult test
    
    * test: fix lint fmt
    
    * test: fix build
    
    * test: fix test
    
    * test: fix fmt and test
    
    * test: fix fmt and test
    
    * test: fix lint fmt
    
    * test: add StdResult unit test
    
    * test: fix build
    
    * test: add mock test func
    
    * test: fix len
    
    * test: fix test string
    
    * test: fix lint fmt
    
    * test: add stdresult_err to import and reordering
    
    * chore: remove conversion_overflow
    
    * chore: add target_arch to StdError
    dudong2 committed Jun 30, 2023
    Configuration menu
    Copy the full SHA
    7100d3b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    80f98b8 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. chore: Added description about mock for callee (Finschia#306)

    * Added description about mock for callee
    
    * chore: fix the comment that clearly states that test is the target
    
    * comment: fix as pointed out
    
    * fix: fix ambiguous comment for dynamic link mock
    
    * fix: typo
    Kynea0b committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    9c673da View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2023

  1. fix: add the error handling when getting address from storage (Finsch…

    …ia#316)
    
    * fix: add the error handling when getting address from storage
    
    * fix: Added error delegation `?` to function caller on `unwrap()?`
    
    * fix: fix `?`
    Kynea0b committed Jul 12, 2023
    Configuration menu
    Copy the full SHA
    03abb08 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2023

  1. feat: allow WASM extension operators (Finschia#320)

    * fix: use parity wasm's sign-ext feature
    
    * chore: generate new lock files to contracts
    loloicci committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    f99cf36 View commit details
    Browse the repository at this point in the history
  2. chore: write explanatory comments on test functions in the sample con…

    …tract (Finschia#318)
    
    * chore: write explanatory comments on test functions
    
    Signed-off-by: 170210 <j170210@icloud.com>
    
    * style: format
    
    Signed-off-by: 170210 <j170210@icloud.com>
    
    * style: fix for review
    
    Signed-off-by: 170210 <j170210@icloud.com>
    
    ---------
    
    Signed-off-by: 170210 <j170210@icloud.com>
    170210 committed Jul 21, 2023
    Configuration menu
    Copy the full SHA
    db08495 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. fix: corrected to appropriate error message (Finschia#321)

    * fix: corrected to appropriate error message
    
    * fix: reflect comments
    
    * fix: delete unnecessary '{}'
    da1suk8 committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    a7a9154 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2023

  1. chore: applied macros (Finschia#325)

    * fix: adopt macros
    
    - #[cw_serde]
    - #[derive(QueryResponses)]
    - write_api!
    
    * fix: adopt macros and as with the queue contract,
    several structures were moved to msg.rs
    da1suk8 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    124e376 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2024

  1. Configuration menu
    Copy the full SHA
    9ae12d9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    84cab1f View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2024

  1. fix: fix bench vm

    loloicci committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    4e229fd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    94a60c9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c8f9d2d View commit details
    Browse the repository at this point in the history
  4. chore: cargo fmt

    loloicci committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    76fb518 View commit details
    Browse the repository at this point in the history
  5. fix: cargo clippy

    loloicci committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    73ac905 View commit details
    Browse the repository at this point in the history
  6. ci: update rust used by ci

    loloicci committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    2a0972b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a179310 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2024

  1. Configuration menu
    Copy the full SHA
    228b292 View commit details
    Browse the repository at this point in the history
  2. fix: update tests

    loloicci committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    f4e503e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7defcca View commit details
    Browse the repository at this point in the history
  4. chore: cargo fmt

    loloicci committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    f3231de View commit details
    Browse the repository at this point in the history