Skip to content

Commit d641ead

Browse files
committed
Merge remote-tracking branch 'remotes/origin/fierce_fermion_6.2RC' into testnet
2 parents 1916aae + 0f99ba9 commit d641ead

File tree

251 files changed

+17493
-3355
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+17493
-3355
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [macos-10.15, ubuntu-16.04, windows-2019]
17+
os: [macos-10.15, ubuntu-18.04, windows-2019]
1818
#os: [macos-10.15, ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, windows-2019]
1919

2020
steps:
@@ -39,9 +39,9 @@ jobs:
3939
sudo apt-get update
4040
sudo apt-get install libssl-dev curl libxi-dev libcups2-dev -y
4141
42-
- name: Create Build Environment [ubuntu 16.04]
42+
- name: Create Build Environment [ubuntu-18.04]
4343
shell: bash
44-
if: matrix.os == 'ubuntu-16.04'
44+
if: matrix.os == 'ubuntu-18.04'
4545
run: |
4646
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
4747
sudo apt-get update
@@ -459,8 +459,8 @@ jobs:
459459
git clone https://github.com/emscripten-core/emsdk.git
460460
cd emsdk
461461
git pull
462-
./emsdk install latest
463-
./emsdk activate latest
462+
./emsdk install 2.0.33
463+
./emsdk activate 2.0.33
464464
465465
- name: Download boost
466466
shell: bash
@@ -514,8 +514,8 @@ jobs:
514514
git clone https://github.com/emscripten-core/emsdk.git ${{runner.workspace}}/emsdk
515515
cd ${{runner.workspace}}/emsdk
516516
git pull
517-
./emsdk install latest
518-
./emsdk activate latest
517+
./emsdk install 2.0.33
518+
./emsdk activate 2.0.33
519519
520520
- name: Download boost
521521
shell: bash
@@ -535,7 +535,7 @@ jobs:
535535
- name: Configure CMake && Build
536536
run: |
537537
source ${{runner.workspace}}/emsdk/emsdk_env.sh
538-
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
538+
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
539539
emmake make -j$(nproc) -C ${{runner.workspace}}/build_wasm
540540
541541
- name: Save version info
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
#
6+
# Find more information at:
7+
# https://github.com/microsoft/msvc-code-analysis-action
8+
9+
name: Microsoft C++ Code Analysis
10+
11+
on:
12+
#push:
13+
# branches: [ master ]
14+
#pull_request:
15+
# branches: [ master ]
16+
schedule:
17+
- cron: '23 6 * * 3'
18+
19+
env:
20+
# Path to the CMake build directory.
21+
build: '${{ github.workspace }}/build'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: windows-latest
27+
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v2
31+
32+
- name: Configure CMake
33+
run: |
34+
git clone --depth=1 https://github.com/BeamMW/libs.git c:/beam-libs
35+
echo "OPENSSL_ROOT_DIR=c:\beam-libs\openssl" >> $GITHUB_ENV
36+
git clone https://github.com/BeamMW/boost_prebuild_${{matrix.os}}.git c:/boost_prebuild
37+
echo "BOOST_ROOT=c:\boost_prebuild" >> $GITHUB_ENV
38+
cmake -B ${{ env.build }}
39+
40+
# Build is not required unless generated source files are used
41+
# - name: Build CMake
42+
# run: cmake --build ${{ env.build }}
43+
44+
- name: Initialize MSVC Code Analysis
45+
uses: microsoft/msvc-code-analysis-action@502db28262ba134c9a621d5a509b9f7e696c99b6
46+
# Provide a unique ID to access the sarif output path
47+
id: run-analysis
48+
with:
49+
cmakeBuildDirectory: ${{ env.build }}
50+
# Ruleset file that will determine what checks will be run
51+
ruleset: NativeRecommendRules.ruleset
52+
53+
# Upload SARIF file to GitHub Code Scanning Alerts
54+
- name: Upload SARIF to GitHub
55+
uses: github/codeql-action/upload-sarif@v1
56+
with:
57+
sarif_file: ${{ steps.run-analysis.outputs.sarif }}
58+
59+
# Upload SARIF file as an Artifact to download and view
60+
# - name: Upload SARIF as an Artifact
61+
# uses: actions/upload-artifact@v2
62+
# with:
63+
# name: sarif-file
64+
# path: ${{ steps.run-analysis.outputs.sarif }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,5 @@ ui/translations.qrc
111111
beam_version.gen
112112
keykeeper/wasm-key-keeper.*
113113

114-
out/
114+
out/
115+
wmake.sh

3rdparty/libbitcoin/include/bitcoin/bitcoin/impl/formats/base_16.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ bool decode_base16(byte_array<Size>& out, const std::string &in)
4444
template <size_t Size>
4545
byte_array<(Size - 1) / 2> base16_literal(const char (&string)[Size])
4646
{
47-
byte_array<(Size - 1) / 2> out;
47+
byte_array<(Size - 1) / 2> out = {};
4848
DEBUG_ONLY(const auto success =) decode_base16_private(out.data(),
4949
out.size(), string);
5050
BITCOIN_ASSERT(success);

3rdparty/libbitcoin/src/chain/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ if(MSVC)
1111
target_compile_options(${TARGET_NAME} PUBLIC "/wd4996")
1212
target_compile_options(${TARGET_NAME} PUBLIC "/wd4273")
1313
target_compile_options(${TARGET_NAME} PUBLIC "/wd4251")
14+
target_compile_options(${TARGET_NAME} PUBLIC "/wd4189")
1415
elseif(APPLE OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
1516
target_compile_options(${TARGET_NAME} PUBLIC -Wno-mismatched-tags)
1617
target_compile_options(${TARGET_NAME} PUBLIC -Wno-unused-variable)

3rdparty/libbitcoin/src/config/authority.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ authority::authority(const message::network_address& address)
126126

127127
static asio::ipv6 to_boost_address(const message::ip_address& in)
128128
{
129-
asio::ipv6::bytes_type bytes;
129+
asio::ipv6::bytes_type bytes = {};
130130
BITCOIN_ASSERT(bytes.size() == in.size());
131131
std::copy_n(in.begin(), in.size(), bytes.begin());
132132
const asio::ipv6 out(bytes);

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.13)
22
cmake_policy(SET CMP0074 NEW)
33

44
set(VERSION_MAJOR 6)
5-
set(VERSION_MINOR 1 )
5+
set(VERSION_MINOR 2 )
66
set(VERSION_REVISION 0)
77
set(GIT_COMMIT_HASH "unknown")
88

@@ -100,6 +100,8 @@ set(BEAM_VERSION_MAJOR ${VERSION_MAJOR} CACHE INTERNAL "")
100100
set(BEAM_VERSION_MINOR ${VERSION_MINOR} CACHE INTERNAL "")
101101
set(BEAM_VERSION_REVISION ${VERSION_REVISION} CACHE INTERNAL "")
102102
set(BEAM_BRANCH_NAME ${BRANCH_NAME} CACHE INTERNAL "")
103+
set(BEAM_PROJECT_SOURCE_DIR ${PROJECT_SOURCE_DIR} CACHE INTERNAL "")
104+
set(BEAM_PROJECT_BINARY_DIR ${PROJECT_BINARY_DIR} CACHE INTERNAL "")
103105

104106
message("BEAM_VERSION: ${PROJECT_VERSION}")
105107

@@ -275,7 +277,7 @@ else()
275277
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
276278

277279
if (EMSCRIPTEN)
278-
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s USE_PTHREADS=1 -s DISABLE_EXCEPTION_CATCHING=0 -s USE_BOOST_HEADERS=1")
280+
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s USE_PTHREADS=1 -s DISABLE_EXCEPTION_CATCHING=0 -s USE_BOOST_HEADERS=1 ")
279281
set(BEAM_WEB_WALLET_THREADS_NUM 5)
280282
add_definitions(-DBEAM_WEB_WALLET_THREADS_NUM=${BEAM_WEB_WALLET_THREADS_NUM})
281283
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-command-line-argument") # mostly in 3rd-party libs
@@ -286,6 +288,7 @@ else()
286288
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-const-variable") # so what?
287289
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-function") # mostly in 3rd-party libs
288290
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-value") # proto.h
291+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-nonnull") # yas
289292
endif()
290293

291294
if(BEAM_HW_WALLET)
@@ -446,7 +449,6 @@ if(NOT BEAM_BVM_ONLY)
446449
add_subdirectory(hw_crypto)
447450
add_subdirectory(node)
448451
add_subdirectory(mnemonic)
449-
add_subdirectory(websocket)
450452
endif()
451453

452454
if (EMSCRIPTEN)
@@ -460,4 +462,5 @@ endif()
460462
if(NOT BEAM_WALLET_CLIENT_LIBRARY)
461463
add_subdirectory(beam)
462464
add_subdirectory(explorer)
465+
add_subdirectory(websocket)
463466
endif()

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ ap-nodes.mainnet.beam.mw:8100
4343

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

46-
shanghai-node.mainnet.beam.mw:8100
47-
4846
Latest documentation is here: https://documentation.beam.mw
4947

5048
### BUILD FROM SOURCE

android/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,17 @@ set(SRC
1010
common.cpp
1111
node_model.h
1212
node_model.cpp
13+
dao/apps_api_ui.h
14+
dao/apps_api_ui.cpp
15+
dao/web_api_creator.h
16+
dao/web_api_creator.cpp
1317
)
1418

1519
add_library(${TARGET_NAME} SHARED ${SRC})
1620
target_link_libraries(${TARGET_NAME}
1721
PRIVATE
1822
wallet_client
23+
wallet_api
1924
utility
2025
node
2126
mnemonic
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
3+
public class ContractConsentDTO
4+
{
5+
public String request;
6+
public String info;
7+
public String amounts;
8+
}

0 commit comments

Comments
 (0)