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

Rust develop #103

Open
wants to merge 65 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
d780ed9
add example monero_c static lib build script
sneurlax Oct 10, 2024
2a31615
add example rust binding
sneurlax Oct 10, 2024
eb7cc58
support building other archs, copy file to correct path
sneurlax Oct 10, 2024
440f6c3
Merge branch 'master' into rust
sneurlax Oct 10, 2024
a42cbbe
prove integration
sneurlax Oct 10, 2024
4694bb9
convert to lib
sneurlax Oct 11, 2024
c2c2f2c
allow lib to be loaded by consumer crates
sneurlax Oct 11, 2024
3ceeecc
/monero_rust -> /monero.rs
sneurlax Oct 11, 2024
d3059b8
remove LICENSE
sneurlax Oct 11, 2024
85590d6
refer to correct repository
sneurlax Oct 11, 2024
1e85aff
remove system exports from bindings.rs
sneurlax Oct 11, 2024
2bdb7f9
support loading lib from /lib or same dir as bin
sneurlax Oct 11, 2024
a81f173
add ../../release as first lib location candidate
sneurlax Oct 11, 2024
aff9176
remove impls/monero.rs/scripts/build_monero_c.sh
sneurlax Oct 12, 2024
4f52286
update docs re: supported library paths
sneurlax Oct 12, 2024
aab9ea7
fix android lib
sneurlax Oct 12, 2024
44c1676
deduplicate wallet manager pointer and library reference
sneurlax Oct 12, 2024
dc103c8
refactor library loading
sneurlax Oct 12, 2024
a046d90
replace main.rs demo with integration tests
sneurlax Oct 12, 2024
774091b
do not use libloading
sneurlax Oct 15, 2024
0d9b372
silence naming-related warnings
sneurlax Oct 15, 2024
c7d7cf6
add unit tests
sneurlax Oct 15, 2024
9df600a
add Doc-tests
sneurlax Oct 15, 2024
78b1aef
NetworkType enum
sneurlax Oct 15, 2024
b556f50
Merge branch 'master' into rust
sneurlax Oct 15, 2024
6260fed
Merge branch 'master' into rust
sneurlax Oct 16, 2024
edfe554
make seed_offset an Option
sneurlax Oct 17, 2024
0a57eb4
add get_status fn for error-handling
sneurlax Oct 17, 2024
824a829
handle null wallet ptr case
sneurlax Oct 17, 2024
ff39a28
add open_wallet
sneurlax Oct 17, 2024
7a90b8f
add get_balance
sneurlax Oct 17, 2024
73c486e
make error handling in line with monero.ts example
sneurlax Oct 17, 2024
fa7fa68
add test cases for open_wallet
sneurlax Oct 17, 2024
0c0c413
add create_account
sneurlax Oct 18, 2024
6f04d70
add get_accounts
sneurlax Oct 18, 2024
39ff302
add close_wallet
sneurlax Oct 19, 2024
0bd5ae9
add get_height
sneurlax Oct 19, 2024
dce42cf
add init
sneurlax Oct 19, 2024
0114449
add refresh
sneurlax Oct 19, 2024
3b09a94
add untested transfer
sneurlax Oct 19, 2024
3d51547
add untested sweep_all
sneurlax Oct 19, 2024
e112ca4
WIP generate_from_keys
sneurlax Oct 19, 2024
be9cc33
add TODO
sneurlax Oct 19, 2024
57dce1e
clean up gitignore
sneurlax Oct 19, 2024
230d29a
add set_seed_language and use it to fix the generate_from_keys tests
sneurlax Oct 19, 2024
8f830af
add MONERO_Wallet_checkTxKey to wallet2_api_c.cpp
sneurlax Oct 20, 2024
5e9a878
add throw_if_error test, standardize docs comments
sneurlax Oct 20, 2024
4d339e8
add WIP check_tx_key
sneurlax Oct 20, 2024
8c25f0d
Update impls/monero.rs/example/Cargo.toml
sneurlax Oct 21, 2024
755749e
add restore_mnemonic
sneurlax Oct 21, 2024
1c1e0f2
add restore_polyseed
sneurlax Oct 21, 2024
06beb39
update example
sneurlax Oct 21, 2024
1d6dc08
WIP scanning example
sneurlax Oct 21, 2024
c166316
WIP example docs
sneurlax Oct 21, 2024
039ea32
update MONERO_Wallet_checkTxKey IAW feedback
sneurlax Oct 22, 2024
779ac9a
update header to match impl
sneurlax Oct 22, 2024
a66f82b
WIP check_tx_key with failing tests
sneurlax Oct 29, 2024
510cb14
add watch only (viewkey only) generate_from_keys integration test
sneurlax Oct 29, 2024
8e7bc59
update docs re: lib placement
sneurlax Oct 29, 2024
085d74b
Merge remote-tracking branch 'origin/develop' into rust-develop
MrCyjaneK Jan 5, 2025
64d5d9b
enable logging
MrCyjaneK Jan 5, 2025
962647f
fix: set the WalletManager daemon address
Im-Beast Jan 5, 2025
85249ef
chore: cargo fmt
Im-Beast Jan 5, 2025
070183c
ci: zano fixes
MrCyjaneK Jan 5, 2025
bbb28c7
ci: unshallow submodules
MrCyjaneK Jan 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/full_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ jobs:
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.job }}-${{ matrix.coin }}
- name: Unshallow submodules
run: git submodule foreach --recursive 'git fetch --unshallow || echo "Not a shallow submodule"'
- name: Cache built
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
uses: actions/cache@v4
Expand Down Expand Up @@ -197,7 +199,7 @@ jobs:
matrix:
coin: [monero, wownero, zano]
name: macos build
runs-on: macos-14
runs-on: macos-15
steps:
- name: Checkout monero_c repo
uses: actions/checkout@v4
Expand All @@ -207,10 +209,10 @@ jobs:
submodules: recursive
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.4'
xcode-version: '16.1'
- name: install dependencies
run: |
brew install ccache binutils pigz autoconf automake libtool pkg-config
brew install ccache binutils pigz autoconf automake libtool pkg-config git
- name: Patch sources
run: |
git config --global --add safe.directory '*'
Expand All @@ -221,6 +223,8 @@ jobs:
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.job }}-${{ matrix.coin }}
- name: Unshallow submodules
run: git submodule foreach --recursive 'git fetch --unshallow || echo "Not a shallow submodule"'
- name: Cache built
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
uses: actions/cache@v4
Expand Down Expand Up @@ -271,7 +275,7 @@ jobs:
xcode-version: '16.1'
- name: install dependencies
run: |
brew install ccache cmake autoconf automake libtool
brew install ccache cmake autoconf automake libtool git
- name: Patch sources
run: |
git config --global --add safe.directory '*'
Expand Down Expand Up @@ -456,7 +460,7 @@ jobs:
needs: [
lib_macos
]
runs-on: macos-14
runs-on: macos-15
steps:
- uses: denoland/setup-deno@v2
with:
Expand Down Expand Up @@ -515,7 +519,7 @@ jobs:
needs: [
lib_macos
]
runs-on: macos-14
runs-on: macos-15
steps:
- uses: denoland/setup-deno@v2
with:
Expand Down
7 changes: 4 additions & 3 deletions apply_patches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ repo="$1"

if [[ "x$repo" == "x" ]];
then
echo "Usage: $0 monero/wownero"
echo "Usage: $0 monero/wownero/zano"
exit 1
fi

if [[ "x$repo" != "xwownero" && "x$repo" != "xmonero" ]];
if [[ "x$repo" != "xwownero" && "x$repo" != "xmonero" && "x$repo" != "xzano" ]];
then
echo "Usage: $0 monero/wownero"
echo "Usage: $0 monero/wownero/zano"
echo "Invalid target given, only monero and wownero are supported targets"
exit 1
fi

if [[ ! -d "$repo" ]]
Expand Down
4 changes: 2 additions & 2 deletions impls/monero.dart/lib/src/checksum_monero.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ignore_for_file: constant_identifier_names
const String wallet2_api_c_h_sha256 = "9e80c4b59a0509aa02fbf01e8df2881b89f82225d1765bfa7856cbdbaf7af116";
const String wallet2_api_c_cpp_sha256 = "d229507db508e574bd2badf4819a38dbead8c16a84311ad32c22c887a6003439-b089f9ee69924882c5d14dd1a6991deb05d9d1cd";
const String wallet2_api_c_h_sha256 = "6c1ba9b57cb185c6dad030b15bcffe8a4772f33930e7f1d62d23b33514ba6f62";
const String wallet2_api_c_cpp_sha256 = "1d1deff340408541f5755b4838d06345f63dcdfffe26b14dbdce32a5de839c55-b089f9ee69924882c5d14dd1a6991deb05d9d1cd";
const String wallet2_api_c_exp_sha256 = "d0f95f1f3bc49f1f59fe4eb0b61826128d7d3bb75405d5a01a252d02db03097d";
1 change: 1 addition & 0 deletions impls/monero.rs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/
Loading
Loading