Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion crypto_plugins/flutter_libepiccash
Submodule flutter_libepiccash updated 42 files
+0 −3 .gitmodules
+2 −0 example/.gitignore
+1 −1 example/ios/Flutter/AppFrameworkInfo.plist
+1 −1 example/ios/Podfile
+12 −11 example/ios/Podfile.lock
+8 −5 example/ios/Runner.xcodeproj/project.pbxproj
+4 −1 example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1 −1 example/ios/Runner/AppDelegate.swift
+317 −0 example/lib/cancel_transactions_view.dart
+14 −1 example/lib/epicbox_config.dart
+1 −7 example/lib/mnemonic_view.dart
+78 −7 example/lib/recover_view.dart
+298 −0 example/lib/send_transaction_view.dart
+657 −0 example/lib/slate_transaction_view.dart
+455 −64 example/lib/transaction_view.dart
+654 −141 example/lib/wallet_info_view.dart
+1 −1 example/lib/wallet_management_view.dart
+43 −0 example/lib/wallet_state_manager.dart
+1 −1 example/macos/Podfile
+6 −6 example/macos/Podfile.lock
+4 −4 example/macos/Runner.xcodeproj/project.pbxproj
+2 −1 example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+5 −1 example/macos/Runner/AppDelegate.swift
+29 −29 example/pubspec.lock
+2 −1 ios/Classes/SwiftFlutterLibepiccashPlugin.swift
+5 −3 ios/flutter_libepiccash.podspec
+109 −5 lib/epic_cash.dart
+235 −12 lib/lib.dart
+95 −30 macos/Classes/FlutterLibepiccashPlugin.h
+2 −0 macos/flutter_libepiccash.podspec
+2,406 −1,634 rust/Cargo.lock
+18 −11 rust/Cargo.toml
+0 −1 rust/epic-wallet
+4 −3 rust/src/config.rs
+194 −32 rust/src/ffi.rs
+845 −13 rust/src/lib.rs
+27 −18 rust/src/listener.rs
+3 −3 rust/src/mnemonic.rs
+186 −113 rust/src/wallet.rs
+47 −10 scripts/ios/build_all.sh
+13 −0 scripts/linux/build_all.sh
+45 −2 scripts/macos/build_all.sh
8 changes: 4 additions & 4 deletions docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Install [Rust](https://www.rust-lang.org/tools/install) via [rustup.rs](https://
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.bashrc
rustup install 1.89.0 1.81.0
rustup install 1.89.0 1.85.1 1.81.0
rustup default 1.89.0
cargo install cargo-ndk
```
Expand Down Expand Up @@ -209,11 +209,11 @@ brew install brotli cairo coreutils gdbm gettext glib gmp libevent libidn2 libng
```
<!-- TODO: determine which of the above list are not needed at all. -->

Download and install [Rust](https://www.rust-lang.org/tools/install). [Rustup](https://rustup.rs/) is recommended for Rust setup. Use `rustc` to confirm successful installation. Install toolchains 1.81.0 and 1.89.0 as well as `cbindgen` and `cargo-lipo` too. You will also have to add the platform target(s) `aarch64-apple-ios` and/or `aarch64-apple-darwin`. You can use the command(s):
Download and install [Rust](https://www.rust-lang.org/tools/install). [Rustup](https://rustup.rs/) is recommended for Rust setup. Use `rustc` to confirm successful installation. Install toolchains 1.81.0, 1.85.1, and 1.89.0 as well as `cbindgen` and `cargo-lipo` too. You will also have to add the platform target(s) `aarch64-apple-ios` and/or `aarch64-apple-darwin`. You can use the command(s):
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.bashrc
rustup install 1.89.0 1.81.0
rustup install 1.89.0 1.85.1 1.81.0
rustup default 1.89.0
cargo install cargo-ndk
cargo install cbindgen cargo-lipo
Expand Down Expand Up @@ -294,7 +294,7 @@ Install Flutter 3.38.5 on your Windows host (not in WSL2) by [following their gu
### Rust
Install [Rust](https://www.rust-lang.org/tools/install) on the Windows host (not in WSL2). Download the installer from [rustup.rs](https://rustup.rs), make sure it works on the commandline (you may need to open a new terminal), and install the following versions:
```
rustup install 1.89.0 1.81.0
rustup install 1.89.0 1.85.1 1.81.0
rustup default 1.89.0
cargo install cargo-ndk
```
Expand Down
116 changes: 116 additions & 0 deletions lib/models/epic_slatepack_models.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
class EpicSlatepackResult {
final bool success;
final String? error;
final String? slatepack;
final String? slateJson;
final bool? wasEncrypted;
final String? recipientAddress;

EpicSlatepackResult({
required this.success,
this.error,
this.slatepack,
this.slateJson,
this.wasEncrypted,
this.recipientAddress,
});

@override
String toString() {
return "EpicSlatepackResult("
"success: $success, "
"error: $error, "
"slatepack: $slatepack, "
"slateJson: $slateJson, "
"wasEncrypted: $wasEncrypted, "
"recipientAddress: $recipientAddress"
")";
}
}

class EpicSlatepackDecodeResult {
final bool success;
final String? error;
final String? slateJson;
final bool? wasEncrypted;
final String? senderAddress;
final String? recipientAddress;

EpicSlatepackDecodeResult({
required this.success,
this.error,
this.slateJson,
this.wasEncrypted,
this.senderAddress,
this.recipientAddress,
});

@override
String toString() {
return "EpicSlatepackDecodeResult("
"success: $success, "
"error: $error, "
"slateJson: $slateJson, "
"wasEncrypted: $wasEncrypted, "
"senderAddress: $senderAddress, "
"recipientAddress: $recipientAddress"
")";
}
}

class EpicReceiveResult {
final bool success;
final String? error;
final String? slateId;
final String? commitId;
final String? responseSlatepack;
final bool? wasEncrypted;
final String? recipientAddress;

EpicReceiveResult({
required this.success,
this.error,
this.slateId,
this.commitId,
this.responseSlatepack,
this.wasEncrypted,
this.recipientAddress,
});

@override
String toString() {
return "EpicReceiveResult("
"success: $success, "
"error: $error, "
"slateId: $slateId, "
"commitId: $commitId, "
"responseSlatepack: $responseSlatepack, "
"wasEncrypted: $wasEncrypted, "
"recipientAddress: $recipientAddress"
")";
}
}

class EpicFinalizeResult {
final bool success;
final String? error;
final String? slateId;
final String? commitId;

EpicFinalizeResult({
required this.success,
this.error,
this.slateId,
this.commitId,
});

@override
String toString() {
return "EpicFinalizeResult("
"success: $success, "
"error: $error, "
"slateId: $slateId, "
"commitId: $commitId"
")";
}
}
Loading