Skip to content

Commit

Permalink
fix build problems
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed Jul 30, 2024
1 parent cac0264 commit c624a92
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checksum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ jobs:
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
Invalid bindings found in monero.dart, make sure to run `./impls/monero.dart/update_bindings.sh`
Invalid checksums, please run `./generate_checksum.sh`
4 changes: 3 additions & 1 deletion generate_checksum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ do
COIN_libwallet2_api_c_date=$(git log -1 --format=%ci -- ${coin}_libwallet2_api_c)

cat > ${coin}_libwallet2_api_c/src/main/cpp/${coin}_checksum.h << EOF
#ifndef MONEROC_CHECKSUMS
#define MONEROC_CHECKSUMS
const char * ${COIN}_wallet2_api_c_h_sha256 = "${COIN_wallet2_api_c_h_sha256}";
const char * ${COIN}_wallet2_api_c_cpp_sha256 = "${COIN_wallet2_api_c_cpp_sha256}";
const char * ${COIN}_wallet2_api_c_exp_sha256 = "${COIN_wallet2_api_c_exp_sha256}";
const int ${COIN}_libwallet2_api_c_version = ${COIN_libwallet2_api_c_version};
const char * ${COIN}_wallet2_api_c_date = "${COIN_libwallet2_api_c_date}";
#endif
EOF
cat > impls/monero.dart/lib/src/checksum_${coin}.dart << EOF
// ignore_for_file: constant_identifier_names
const String wallet2_api_c_h_sha256 = "${COIN_wallet2_api_c_h_sha256}";
const String wallet2_api_c_cpp_sha256 = "${COIN_wallet2_api_c_cpp_sha256}";
const String wallet2_api_c_exp_sha256 = "${COIN_wallet2_api_c_exp_sha256}";
Expand Down
5 changes: 2 additions & 3 deletions impls/monero.dart/lib/src/checksum_monero.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// ignore_for_file: constant_identifier_names

const String wallet2_api_c_h_sha256 = "b9c712f59873da33dfc4c9caa4850ee5cba4bf7310179dfc33af9d3029d9855a";
const String wallet2_api_c_cpp_sha256 = "7edf0905802faa48f66362a6d2ebf25f458107b67cd4abc6d01886c40f5634ef";
const String wallet2_api_c_exp_sha256 = "bfac0ee584f50bd9263ae453103530c2594b21aec8ae7622e8c192c027f5d6af";
const int libwallet2_api_c_version = 46;
const String wallet2_api_c_date = "2024-07-16 13:17:16 +0200";
const int libwallet2_api_c_version = 47;
const String wallet2_api_c_date = "2024-07-30 14:33:17 +0000";
5 changes: 2 additions & 3 deletions impls/monero.dart/lib/src/checksum_wownero.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// ignore_for_file: constant_identifier_names

const String wallet2_api_c_h_sha256 = "1f4688b9ddacbc33e82426c50480ab8e3727718f59e577080a7dc6dca48bcf9d";
const String wallet2_api_c_cpp_sha256 = "f5047661949961d19a1dfadec0fa24e83911b2f7c4b658717edb5b50ab2055a1";
const String wallet2_api_c_exp_sha256 = "dd9874cc43a6a74bbfa3e49c4ad3f835ff22efd3de8f679cc91c4af3d931aedb";
const int libwallet2_api_c_version = 19;
const String wallet2_api_c_date = "2024-07-16 13:17:16 +0200";
const int libwallet2_api_c_version = 20;
const String wallet2_api_c_date = "2024-07-30 14:33:17 +0000";
7 changes: 5 additions & 2 deletions wownero_libwallet2_api_c/src/main/cpp/wownero_checksum.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#ifndef MONEROC_CHECKSUMS
#define MONEROC_CHECKSUMS
const char * WOWNERO_wallet2_api_c_h_sha256 = "1f4688b9ddacbc33e82426c50480ab8e3727718f59e577080a7dc6dca48bcf9d";
const char * WOWNERO_wallet2_api_c_cpp_sha256 = "f5047661949961d19a1dfadec0fa24e83911b2f7c4b658717edb5b50ab2055a1";
const char * WOWNERO_wallet2_api_c_exp_sha256 = "dd9874cc43a6a74bbfa3e49c4ad3f835ff22efd3de8f679cc91c4af3d931aedb";
const int WOWNERO_libwallet2_api_c_version = 19;
const char * WOWNERO_wallet2_api_c_date = "2024-07-16 13:17:16 +0200";
const int WOWNERO_libwallet2_api_c_version = 20;
const char * WOWNERO_wallet2_api_c_date = "2024-07-30 14:33:17 +0000";
#endif

0 comments on commit c624a92

Please sign in to comment.