Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/fierce_fermion_6.2RC' in…
Browse files Browse the repository at this point in the history
…to testnet
  • Loading branch information
anatolse committed Dec 9, 2021
2 parents 1916aae + 0f99ba9 commit d641ead
Show file tree
Hide file tree
Showing 251 changed files with 17,493 additions and 3,355 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-10.15, ubuntu-16.04, windows-2019]
os: [macos-10.15, ubuntu-18.04, windows-2019]
#os: [macos-10.15, ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, windows-2019]

steps:
Expand All @@ -39,9 +39,9 @@ jobs:
sudo apt-get update
sudo apt-get install libssl-dev curl libxi-dev libcups2-dev -y
- name: Create Build Environment [ubuntu 16.04]
- name: Create Build Environment [ubuntu-18.04]
shell: bash
if: matrix.os == 'ubuntu-16.04'
if: matrix.os == 'ubuntu-18.04'
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
Expand Down Expand Up @@ -459,8 +459,8 @@ jobs:
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
git pull
./emsdk install latest
./emsdk activate latest
./emsdk install 2.0.33
./emsdk activate 2.0.33
- name: Download boost
shell: bash
Expand Down Expand Up @@ -514,8 +514,8 @@ jobs:
git clone https://github.com/emscripten-core/emsdk.git ${{runner.workspace}}/emsdk
cd ${{runner.workspace}}/emsdk
git pull
./emsdk install latest
./emsdk activate latest
./emsdk install 2.0.33
./emsdk activate 2.0.33
- name: Download boost
shell: bash
Expand All @@ -535,7 +535,7 @@ jobs:
- name: Configure CMake && Build
run: |
source ${{runner.workspace}}/emsdk/emsdk_env.sh
cmake . -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_TOOLCHAIN_FILE=${{runner.workspace}}/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DBoost_DEBUG=On -DBEAM_TESTS_ENABLED=Off -DBEAM_WALLET_CLIENT_LIBRARY=On -DBEAM_ATOMIC_SWAP_SUPPORT=Off -DBEAM_LASER_SUPPORT=Off -DBEAM_USE_STATIC=On -DBOOST_ROOT=${{runner.workspace}}/boost_prebuild -DCMAKE_FIND_ROOT_PATH:FILEPATH="${{runner.workspace}}/boost_prebuild;${{runner.workspace}}/openssl-wasm" -DOPENSSL_ROOT_DIR=${{runner.workspace}}/openssl-wasm -B${{runner.workspace}}/build_wasm
cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=${{runner.workspace}}/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DBoost_DEBUG=On -DBEAM_TESTS_ENABLED=Off -DBEAM_WALLET_CLIENT_LIBRARY=On -DBEAM_ATOMIC_SWAP_SUPPORT=Off -DBEAM_LASER_SUPPORT=Off -DBEAM_USE_STATIC=On -DBOOST_ROOT=${{runner.workspace}}/boost_prebuild -DCMAKE_FIND_ROOT_PATH:FILEPATH="${{runner.workspace}}/boost_prebuild;${{runner.workspace}}/openssl-wasm" -DOPENSSL_ROOT_DIR=${{runner.workspace}}/openssl-wasm -B${{runner.workspace}}/build_wasm
emmake make -j$(nproc) -C ${{runner.workspace}}/build_wasm
- name: Save version info
Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/msvc-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# Find more information at:
# https://github.com/microsoft/msvc-code-analysis-action

name: Microsoft C++ Code Analysis

on:
#push:
# branches: [ master ]
#pull_request:
# branches: [ master ]
schedule:
- cron: '23 6 * * 3'

env:
# Path to the CMake build directory.
build: '${{ github.workspace }}/build'

jobs:
analyze:
name: Analyze
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Configure CMake
run: |
git clone --depth=1 https://github.com/BeamMW/libs.git c:/beam-libs
echo "OPENSSL_ROOT_DIR=c:\beam-libs\openssl" >> $GITHUB_ENV
git clone https://github.com/BeamMW/boost_prebuild_${{matrix.os}}.git c:/boost_prebuild
echo "BOOST_ROOT=c:\boost_prebuild" >> $GITHUB_ENV
cmake -B ${{ env.build }}
# Build is not required unless generated source files are used
# - name: Build CMake
# run: cmake --build ${{ env.build }}

- name: Initialize MSVC Code Analysis
uses: microsoft/msvc-code-analysis-action@502db28262ba134c9a621d5a509b9f7e696c99b6
# Provide a unique ID to access the sarif output path
id: run-analysis
with:
cmakeBuildDirectory: ${{ env.build }}
# Ruleset file that will determine what checks will be run
ruleset: NativeRecommendRules.ruleset

# Upload SARIF file to GitHub Code Scanning Alerts
- name: Upload SARIF to GitHub
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: ${{ steps.run-analysis.outputs.sarif }}

# Upload SARIF file as an Artifact to download and view
# - name: Upload SARIF as an Artifact
# uses: actions/upload-artifact@v2
# with:
# name: sarif-file
# path: ${{ steps.run-analysis.outputs.sarif }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,5 @@ ui/translations.qrc
beam_version.gen
keykeeper/wasm-key-keeper.*

out/
out/
wmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ bool decode_base16(byte_array<Size>& out, const std::string &in)
template <size_t Size>
byte_array<(Size - 1) / 2> base16_literal(const char (&string)[Size])
{
byte_array<(Size - 1) / 2> out;
byte_array<(Size - 1) / 2> out = {};
DEBUG_ONLY(const auto success =) decode_base16_private(out.data(),
out.size(), string);
BITCOIN_ASSERT(success);
Expand Down
1 change: 1 addition & 0 deletions 3rdparty/libbitcoin/src/chain/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ if(MSVC)
target_compile_options(${TARGET_NAME} PUBLIC "/wd4996")
target_compile_options(${TARGET_NAME} PUBLIC "/wd4273")
target_compile_options(${TARGET_NAME} PUBLIC "/wd4251")
target_compile_options(${TARGET_NAME} PUBLIC "/wd4189")
elseif(APPLE OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(${TARGET_NAME} PUBLIC -Wno-mismatched-tags)
target_compile_options(${TARGET_NAME} PUBLIC -Wno-unused-variable)
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/libbitcoin/src/config/authority.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ authority::authority(const message::network_address& address)

static asio::ipv6 to_boost_address(const message::ip_address& in)
{
asio::ipv6::bytes_type bytes;
asio::ipv6::bytes_type bytes = {};
BITCOIN_ASSERT(bytes.size() == in.size());
std::copy_n(in.begin(), in.size(), bytes.begin());
const asio::ipv6 out(bytes);
Expand Down
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.13)
cmake_policy(SET CMP0074 NEW)

set(VERSION_MAJOR 6)
set(VERSION_MINOR 1 )
set(VERSION_MINOR 2 )
set(VERSION_REVISION 0)
set(GIT_COMMIT_HASH "unknown")

Expand Down Expand Up @@ -100,6 +100,8 @@ set(BEAM_VERSION_MAJOR ${VERSION_MAJOR} CACHE INTERNAL "")
set(BEAM_VERSION_MINOR ${VERSION_MINOR} CACHE INTERNAL "")
set(BEAM_VERSION_REVISION ${VERSION_REVISION} CACHE INTERNAL "")
set(BEAM_BRANCH_NAME ${BRANCH_NAME} CACHE INTERNAL "")
set(BEAM_PROJECT_SOURCE_DIR ${PROJECT_SOURCE_DIR} CACHE INTERNAL "")
set(BEAM_PROJECT_BINARY_DIR ${PROJECT_BINARY_DIR} CACHE INTERNAL "")

message("BEAM_VERSION: ${PROJECT_VERSION}")

Expand Down Expand Up @@ -275,7 +277,7 @@ else()
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")

if (EMSCRIPTEN)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s USE_PTHREADS=1 -s DISABLE_EXCEPTION_CATCHING=0 -s USE_BOOST_HEADERS=1")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s USE_PTHREADS=1 -s DISABLE_EXCEPTION_CATCHING=0 -s USE_BOOST_HEADERS=1 ")
set(BEAM_WEB_WALLET_THREADS_NUM 5)
add_definitions(-DBEAM_WEB_WALLET_THREADS_NUM=${BEAM_WEB_WALLET_THREADS_NUM})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-command-line-argument") # mostly in 3rd-party libs
Expand All @@ -286,6 +288,7 @@ else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-const-variable") # so what?
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-function") # mostly in 3rd-party libs
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-value") # proto.h
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-nonnull") # yas
endif()

if(BEAM_HW_WALLET)
Expand Down Expand Up @@ -446,7 +449,6 @@ if(NOT BEAM_BVM_ONLY)
add_subdirectory(hw_crypto)
add_subdirectory(node)
add_subdirectory(mnemonic)
add_subdirectory(websocket)
endif()

if (EMSCRIPTEN)
Expand All @@ -460,4 +462,5 @@ endif()
if(NOT BEAM_WALLET_CLIENT_LIBRARY)
add_subdirectory(beam)
add_subdirectory(explorer)
add_subdirectory(websocket)
endif()
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ ap-nodes.mainnet.beam.mw:8100

ap-hk-nodes.mainnet.beam.mw:8100

shanghai-node.mainnet.beam.mw:8100

Latest documentation is here: https://documentation.beam.mw

### BUILD FROM SOURCE
Expand Down
5 changes: 5 additions & 0 deletions android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ set(SRC
common.cpp
node_model.h
node_model.cpp
dao/apps_api_ui.h
dao/apps_api_ui.cpp
dao/web_api_creator.h
dao/web_api_creator.cpp
)

add_library(${TARGET_NAME} SHARED ${SRC})
target_link_libraries(${TARGET_NAME}
PRIVATE
wallet_client
wallet_api
utility
node
mnemonic
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@


public class ContractConsentDTO
{
public String request;
public String info;
public String amounts;
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@ public class TxDescriptionDTO
public boolean isMaxPrivacy;
public boolean isShielded;
public int assetId;
public boolean isDapps;
public String appName;
public String appID;
public String contractCids;
public int minConfirmations;
public String minConfirmationsProgress;
}
1 change: 1 addition & 0 deletions android/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jclass ExchangeRateClass = 0;
jclass VersionInfoClass = 0;
jclass TransactionParametersClass = 0;
jclass AssetInfoClass = 0;
jclass ContractConsetClass = 0;

namespace
{
Expand Down
1 change: 1 addition & 0 deletions android/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ extern jclass ExchangeRateClass;
extern jclass VersionInfoClass;
extern jclass TransactionParametersClass;
extern jclass AssetInfoClass;
extern jclass ContractConsetClass;

JNIEnv* Android_JNI_getEnv(void);

Expand Down
Loading

0 comments on commit d641ead

Please sign in to comment.