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 developer branch #814

Merged
merged 57 commits into from
Nov 27, 2023
Merged

Merge developer branch #814

merged 57 commits into from
Nov 27, 2023

Commits on May 24, 2023

  1. Enable more verbose TVM stack dump (#669)

    * Verbose stack dump
    
    * Move vm::VmLog::DumpStack and vm::VmLog::DumpStackVerbose to the next verbosity levels
    dungeon-master-666 authored May 24, 2023
    Configuration menu
    Copy the full SHA
    86623b4 View commit details
    Browse the repository at this point in the history
  2. Emulator improvements (#687)

    * ticktock, unixtime, optional config
    
    * documentation
    
    * fix account.now
    
    * emulate tick/tock for emscripten
    
    * remove excessive check
    
    * limit stack serialization calls
    dungeon-master-666 authored May 24, 2023
    Configuration menu
    Copy the full SHA
    c527bfe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8839e3a View commit details
    Browse the repository at this point in the history
  4. build fix (#707)

    dungeon-master-666 authored May 24, 2023
    Configuration menu
    Copy the full SHA
    d6b11d9 View commit details
    Browse the repository at this point in the history
  5. TVM Upgrade (#686)

    * New TVM instructions
    
    * Remove PREVBLOCKS
    
    * Separate target ton_crypto into TVM-related and -unrelared code
    
    * Add fine for failed "send message"; rework SENDMSG
    
    * Fix include
    
    * Fix bugs, improve action fines
    
    * Disable fines for special accounts
    
    * Handle msg_balance_remaining.grams == null in transaction.cpp
    
    * Bugfixes in SENDMSG
    
    * Fix fee calculation in SENDMSG
    
    * Fix CellStorageStat and transaction.cpp after merge
    
    * SETBOUNCEONACTIONPHASEFAIL instruction
    
    * ADDDIVMOD instructions
    
    * RUNVM, RUNVMX instructions
    
    * Changes in RUNVM
    
    * Tests for adddiv and runvm
    
    * HASHEXT instruction
    
    * Improve opcode-timing
    
    More iterations
    Don't measure preliminary run
    Remove logs and other excessive operations
    Add "error" to output
    
    * Increase RUNVM gas price
    
    * Optimize HASHEXT, adjust gas price
    
    * Add "bounce of action fail" flag to actions
    
    * Stack operations with unlimited arguments
    
    * Ristretto255 instructions
    
    * Adjust gas consumption
    
    * Optional fixed number of return values in RUNVM, fix exception handling
    
    * Adjust gas consumption
    
    * Simplify gas consumption logic
    
    * Support of secp256k1 and sodium libraries in builds (#11)
    
    * add support of secp256k1 library to the builds (linux, win)
    
    * add support of secp256k1 library to the builds (linux, win)
    
    * install secp256k1 via brew
    
    * install libsodium via brew;
    change sodium to upper case in FindSodium.cmake
    
    * install libsodium via brew;
    change sodium to upper case in FindSodium.cmake
    
    * simplify FindSodium.cmake
    
    * bug fixing
    
    * bug fixing
    
    * bug fixing
    
    * add macro SODIUM_STATIC
    
    * adjust build command for windows
    
    * put back original FindSodium.cmake
    
    * put back original FindSodium.cmake
    
    * fix sodium unzipped path for windows;
    add ninja
    
    * fix sodium unzipped path for windows;
    add ninja
    
    * fix sodium unzipped path for windows;
    add ninja
    
    * Win32 github build for secp256k1
    
    * x64 architecture github build for secp256k1
    
    * fix sodium linking on linux
    
    * enable docker buildx arm64 builds from forked repos
    
    * enable docker buildx arm64 builds from forked repos
    
    * enable docker buildx arm64 builds from forked repos
    
    * adjust mac builds for secp2561k and sodium
    
    * fix tonlib jni generation
    
    * minor fix
    
    * sync fixes across platforms
    
    * add libsodium build script for android and precompiled static libraries
    
    * build tonlib for android (fails)
    
    * FindSodium uppercase
    
    * remove system libsodium for android, use precompiled instead;
    specify SECP256K1_INCLUDE_DIR fir mac 12.6
    
    * uppercase sodium
    
    * simplify FindSodium
    
    * fix windows build sodium path;
    use ninja for windows
    
    * simplify sodium 2
    
    * adjust windows sodium paths;
    add paths to android jni
    
    * add ninja build windows
    
    * add ninja build windows
    
    * add ninja build windows 2
    
    * remove win ninja
    
    * fix 1
    
    * fix 2
    
    * fix win 3
    
    * fix linux compile 3
    
    * fix jni 1
    
    * fix jni 2 and mac
    
    * fix jni 3
    
    * fix jni 4
    
    * fix jni 5
    
    * fix mac 6
    
    * fix mac 7 and jni paths
    
    * fix jni 8
    
    * rework sodium for android
    
    * rework sodium for android
    
    * rework sodium for android 2
    
    * fixed sodium for android 2
    
    * fixed sodium for android 3
    
    * static secp256k1 for android
    
    * add precompiled arm secp256k1
    
    * add precompiled arm secp256k1
    
    * build native-lib with secp256k1 x86-64 (non arm)
    
    * update precompiled with NDK libsecp256k1.a
    
    * update precompiled with NDK libsecp256k1.a
    
    * update precompiled with NDK libsecp256k1.a
    
    * refactor llvm-strip location
    
    * refactor llvm-strip location
    
    * add native-lib.so for armv7a, armv8a
    
    * add native-lib.so for armv7a, armv8a
    
    * test  armv7a, armv8a
    
    * armv7a - fails linking on sodium, test -> armv8a
    
    * works x86-64, armv7a - fails linking on sodium, armv8a - fails linking secp256k1 (incompatible with aarch64linux)
    
    * update libpsec256k1, sodium static libs
    
    * test x86 android native-lib
    
    * test armv7 android native-lib
    
    * test armv8 android native-lib
    
    * x86_64 and arm64 android native-lib works
    
    * x86_64 and arm64 android native-lib works
    
    * x86_64 and arm64 android native-lib works
    
    * test armv7 android native-lib
    
    * test all android native-libs
    
    * test all android native-libs
    
    * test all android native-libs
    
    * test all android native-libs - without SodiumAndroid
    
    * test all android native-libs - with FindSodiumAndroid.cmake
    
    * win, with Sodium via SODIUM_DIR
    
    * win, with Sodium via SODIUM_DIR env
    
    * win, with Sodium via SODIUM_DIR env
    
    * win, with Sodium via SODIUM_DIR env and SODIUM_USE_STATIC_LIBS
    
    * win, with Sodium via SODIUM_DIR, SODIUM_USE_STATIC_LIBS and SODIUM_INCLUDE_DIR
    
    * android, with FindSodium
    
    * android, with FindSodium with SODIUM_USE_STATIC_LIBS
    
    * remove if not apple
    
    * target_link_libraries(ton_crypto_core PUBLIC secp256k1)
    
    * android SECP256K1_INCLUDE_DIRS
    
    * android SECP256K1_INCLUDE_DIR
    
    * add libsecp256k1.a/so pre-compiled with ubuntu 22 x86-64
    
    * add libsecp256k1.a/so pre-compiled with ubuntu 22 x86-64
    
    * sodium dirs
    
    * sodium dirs
    
    * sodium dirs
    
    * remove NOT APPLE and SodiumAndroid
    
    * add NOT APPLE and remove SodiumAndroid
    
    * add NOT APPLE and remove SodiumAndroid
    
    * remove build scripts for 18.04, reduce CMakeLists.txt
    
    * remove build scripts for 18.04, reduce CMakeLists.txt
    
    * Fix cas consumption during library load
    
    * Fix fetch_config_params after merge
    
    * Add all ADDDIVMOD ops to Asm.fif
    
    * Save unpaid storage fee to due_payment
    
    * Add "set prev blocks info" to emulator
    
    * Adjusted builds  (#13)
    
    * Update flake.nix
    
    Add libsodium
    
    * add libsecp256k1-dev and libsodium-dev into wasm build
    
    * make back emulator a shared library;
    put emulator to artifacts;
    compile wasm artifacts with sodium and secp256k1.
    
    * add secp256k1 to nix
    
    * compile emulator statically with nix
    
    * compile emulator statically with nix
    
    * compile emulator lib statically with nix
    
    * compile emulator lib statically with nix
    
    * add libemulator to artifacts
    
    * add shared libemulator library to artifacts
    
    * minor release fix
    
    * update set-output commands;
    add recent_changelog.md
    
    * releases fixes
    
    * releases fixes, multiline
    
    * releases fixes, multiline
    
    * releases fixes, multiline
    
    * put back multiline changelog
    
    * put back multiline changelog
    
    * ConfigParam 19 (global-id) and GLOBALID instruction
    
    * Fix gas consumption in HASHEXT
    
    * Add blst library
    
    * Add bls instructions
    
    * Allow passing long code to opcode-timing
    
    * Add bls testcase
    
    * More BLS instructions
    
    * Fix tests, add bls tests
    
    * Add more bls tests
    
    * Improve some bls operations
    
    * Adjust some BLS gas prices
    
    * Adjust BLS gas prices
    
    * Enable __BLST_PORTABLE__ flag only if PORTABLE flag is set
    
    * Add tests for BLS_PAIRING
    
    * GASCONSUMED instruction
    
    * Fix compilation against docker with blst library; (#14)
    
    * fix compilation against docker with blst library;
    add precompiled libblst.a to android builds
    
    * minor fix
    
    * Adjust BLKSWX gas
    
    * Fix comparison with NAN
    
    * Allow arbitrary integers for scalars in ristretto multiplication, fix test
    
    * Adjust nix builds according to PR 694 (#15)
    
    * integrate and test PR-694
    
    * integrate and test PR-694, test 2
    
    * Add P256_CHKSIGN (secp256r1)
    
    ---------
    
    Co-authored-by: SpyCheese <[email protected]>
    Co-authored-by: neodiX42 <[email protected]>
    3 people authored May 24, 2023
    Configuration menu
    Copy the full SHA
    9f93888 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2023

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

Commits on May 27, 2023

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

Commits on May 29, 2023

  1. Patch getmethod for tvm upgrade (#714)

    * Fix TVM version in emulator
    
    * Add prev_blocks_info to emulator-emscripten.cpp
    
    ---------
    
    Co-authored-by: SpyCheese <[email protected]>
    EmelyanenkoK and SpyCheese authored May 29, 2023
    Configuration menu
    Copy the full SHA
    961d870 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2023

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

Commits on Jun 7, 2023

  1. Configuration menu
    Copy the full SHA
    34303ee View commit details
    Browse the repository at this point in the history
  2. Merge pull request #723 from SpyCheese/patch/tonlib-try

    Process VmVirtError in RunEmulator
    EmelyanenkoK authored Jun 7, 2023
    Configuration menu
    Copy the full SHA
    69d3dcc View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. Remove TON arm64 compilation with Docker;

    Fix windows build;
    neodix42 committed Jun 8, 2023
    Configuration menu
    Copy the full SHA
    80d9be4 View commit details
    Browse the repository at this point in the history
  2. Remove TON arm64 compilation with Docker;

    Fix windows build;
    Sync create release with master.
    neodix42 committed Jun 8, 2023
    Configuration menu
    Copy the full SHA
    a208103 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2023

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

Commits on Jun 26, 2023

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

Commits on Jun 27, 2023

  1. Configuration menu
    Copy the full SHA
    961b895 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #731 from SpyCheese/tonlib-encrypt-patch

    New tag for encrypted messages
    tolya-yanot authored Jun 27, 2023
    Configuration menu
    Copy the full SHA
    c04e435 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

  1. Configuration menu
    Copy the full SHA
    131d7ee View commit details
    Browse the repository at this point in the history
  2. Fix "Could not set environment: 150: Operation not permitted while Sy…

    …stem Integrity Protection is engaged" in macOS x86-64 GH action
    neodix42 committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    d94e319 View commit details
    Browse the repository at this point in the history
  3. Fix "Could not set environment: 150: Operation not permitted while Sy…

    …stem Integrity Protection is engaged" in macOS x86-64 GH action
    neodix42 committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    0206062 View commit details
    Browse the repository at this point in the history
  4. Fix "Could not set environment: 150: Operation not permitted while Sy…

    …stem Integrity Protection is engaged" in macOS x86-64 GH action;
    
    Fix windows build & remove arm64 ubuntu gh action.
    neodix42 committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    edb80d5 View commit details
    Browse the repository at this point in the history
  5. Fix "Could not set environment: 150: Operation not permitted while Sy…

    …stem Integrity Protection is engaged" in macOS x86-64 GH action;
    
    Fix windows build & remove arm64 ubuntu gh action.
    Add missing storage-daemon artifacts
    neodix42 committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    75534db View commit details
    Browse the repository at this point in the history
  6. Merge pull request #725 from neodiX42/testnet

    Fix windows build & remove arm64 ubuntu gh action
    tolya-yanot authored Jun 28, 2023
    Configuration menu
    Copy the full SHA
    abc8a0f View commit details
    Browse the repository at this point in the history
  7. Merge pull request #733 from neodiX42/fix-macos-build

    Fix macOS Github action, add missing artifacts
    tolya-yanot authored Jun 28, 2023
    Configuration menu
    Copy the full SHA
    5fe8cac View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. Adjust BLS gas prices (#738)

    Co-authored-by: SpyCheese <[email protected]>
    EmelyanenkoK and SpyCheese authored Jul 5, 2023
    Configuration menu
    Copy the full SHA
    4b8e90f View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. Configuration menu
    Copy the full SHA
    119f5a3 View commit details
    Browse the repository at this point in the history
  2. Initialize random seed properly (#742)

    Co-authored-by: SpyCheese <[email protected]>
    EmelyanenkoK and SpyCheese authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    08cfc4c View commit details
    Browse the repository at this point in the history
  3. Tonlib fix (#743)

    * Fix building messages with long body (#709)
    
    * Fix returning slice in tonlib (#734)
    
    ---------
    
    Co-authored-by: SpyCheese <[email protected]>
    EmelyanenkoK and SpyCheese authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    9b34217 View commit details
    Browse the repository at this point in the history
  4. Patch/fix ub (#724)

    * Fix input validation in storage-manager and bitstring
    
    * Fix potentially dangling pointer missing_library
    
    ---------
    
    Co-authored-by: SpyCheese <[email protected]>
    EmelyanenkoK and SpyCheese authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    ef306dd View commit details
    Browse the repository at this point in the history
  5. Add Tonlib emulator libs (#744)

    * Use global libraries in RunEmulator
    
    * Tonlib method smc.getLibrariesExt
    
    * Process missing transaction in getStateByTransaction
    
    ---------
    
    Co-authored-by: SpyCheese <[email protected]>
    EmelyanenkoK and SpyCheese authored Jul 14, 2023
    Configuration menu
    Copy the full SHA
    f923b96 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    afb630b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    50d2361 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2023

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

Commits on Aug 7, 2023

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

Commits on Oct 12, 2023

  1. Configuration menu
    Copy the full SHA
    41ed354 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cdf96a2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ddd3d44 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b2a09ed View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2023

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

Commits on Oct 25, 2023

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

Commits on Oct 26, 2023

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

Commits on Oct 28, 2023

  1. Add "showtransactions" to tonlib-cli (#790)

    Co-authored-by: SpyCheese <[email protected]>
    EmelyanenkoK and SpyCheese authored Oct 28, 2023
    Configuration menu
    Copy the full SHA
    06e22bd View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2023

  1. CI: fix macOS and tonlib Android GitHub actions in testnet (#786)

    * fix macOS github actions
    
    * fix android tonlib GH action;
    
    * fixing wasm GH action
    
    * strip binaries
    
    * fix randomly failing ubuntu and wasm GH actions
    
    * fix randomly failing ubuntu and wasm GH actions
    
    * revert some changes
    neodix42 authored Oct 30, 2023
    Configuration menu
    Copy the full SHA
    89700cb View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2023

  1. Various changes in TVM, github builds and tests (#793)

    * Bugfixes in TVM and node
    
    * Upgrade to C++17
    
    * Improve GitHub builds
    
    * Fix existing tests and partially integrate them into builds
    
    ---------
    
    Co-authored-by: neodiX42 <[email protected]>
    Co-authored-by: EmelyanenkoK <[email protected]>
    3 people authored Nov 3, 2023
    Configuration menu
    Copy the full SHA
    5847897 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into testnet

    # Conflicts:
    #	.github/workflows/ton-x86-64-linux.yml
    #	.github/workflows/ton-x86-64-macos.yml
    #	.github/workflows/win-2019-compile.yml
    #	example/android/build.sh
    #	tonlib/tonlib/TonlibClient.cpp
    SpyCheese committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    945d4c3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    030ebaf View commit details
    Browse the repository at this point in the history
  4. Merge pull request #794 from SpyCheese/testnet

    Sync testnet with master
    EmelyanenkoK authored Nov 3, 2023
    Configuration menu
    Copy the full SHA
    287f9d7 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #795 from SpyCheese/tvm-patch

    Change GASCONSUMED opcode to f807
    EmelyanenkoK authored Nov 3, 2023
    Configuration menu
    Copy the full SHA
    52fd824 View commit details
    Browse the repository at this point in the history
  6. Add information on running tests (#796)

    Co-authored-by: SpyCheese <[email protected]>
    EmelyanenkoK and SpyCheese authored Nov 3, 2023
    Configuration menu
    Copy the full SHA
    79ed14c View commit details
    Browse the repository at this point in the history
  7. Fix transaction credit phase (#797)

    Co-authored-by: SpyCheese <[email protected]>
    EmelyanenkoK and SpyCheese authored Nov 3, 2023
    Configuration menu
    Copy the full SHA
    ba03657 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2023

  1. Configuration menu
    Copy the full SHA
    909e7db View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    31263fb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1cffca0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6b8994e View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2023

  1. Configuration menu
    Copy the full SHA
    d9580ea View commit details
    Browse the repository at this point in the history
  2. Don't allow deploying a contract with public libs (#812)

    * Check account size limits in unpack_msg_state
    
    * Don't allow deploying a contract with public libs
    
    ---------
    
    Co-authored-by: SpyCheese <[email protected]>
    EmelyanenkoK and SpyCheese authored Nov 23, 2023
    Configuration menu
    Copy the full SHA
    7262a66 View commit details
    Browse the repository at this point in the history

Commits on Nov 27, 2023

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