Skip to content

Commit

Permalink
Merge branch '2.0' into chore/bindings-cleanup-is-alive
Browse files Browse the repository at this point in the history
  • Loading branch information
Brord van Wierst authored Nov 3, 2023
2 parents a225a03 + ff9afca commit 0005505
Show file tree
Hide file tree
Showing 43 changed files with 1,053 additions and 997 deletions.
2 changes: 1 addition & 1 deletion bindings/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub use self::method_handler::listen_mqtt;
pub use self::method_handler::CallMethod;
pub use self::{
error::{Error, Result},
method::{ClientMethod, SecretManagerMethod, UtilsMethod, WalletCommandMethod, WalletMethod},
method::{ClientMethod, SecretManagerMethod, UtilsMethod, WalletMethod},
method_handler::{call_client_method, call_secret_manager_method, call_utils_method, call_wallet_method},
response::Response,
};
Expand Down
6 changes: 1 addition & 5 deletions bindings/core/src/method/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@ mod client;
mod secret_manager;
mod utils;
mod wallet;
mod wallet_command;

pub use self::{
client::ClientMethod, secret_manager::SecretManagerMethod, utils::UtilsMethod, wallet::WalletMethod,
wallet_command::WalletCommandMethod,
};
pub use self::{client::ClientMethod, secret_manager::SecretManagerMethod, utils::UtilsMethod, wallet::WalletMethod};
8 changes: 4 additions & 4 deletions bindings/core/src/method/secret_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ pub enum SecretManagerMethod {
SignatureUnlock {
/// Transaction signing hash
transaction_signing_hash: String,
/// Chain to sign the hash with
/// Chain used to sign the hash
#[serde(with = "Bip44Def")]
chain: Bip44,
},
/// Signs a message with an Ed25519 private key.
SignEd25519 {
/// The message to sign, hex encoded String
message: String,
/// Chain to sign the message with
/// Chain used to sign the message
#[serde(with = "Bip44Def")]
chain: Bip44,
},
/// Signs a message with an Secp256k1Ecdsa private key.
SignSecp256k1Ecdsa {
/// The message to sign, hex encoded String
message: String,
/// Chain to sign the message with
/// Chain used to sign the message
#[serde(with = "Bip44Def")]
chain: Bip44,
},
Expand All @@ -66,7 +66,7 @@ pub enum SecretManagerMethod {
#[serde(rename_all = "camelCase")]
SignBlock {
unsigned_block: UnsignedBlockDto,
/// Chain to sign the essence hash with
/// Chain used to sign the block
#[serde(with = "Bip44Def")]
chain: Bip44,
},
Expand Down
423 changes: 363 additions & 60 deletions bindings/core/src/method/wallet.rs

Large diffs are not rendered by default.

316 changes: 0 additions & 316 deletions bindings/core/src/method/wallet_command.rs

This file was deleted.

1 change: 0 additions & 1 deletion bindings/core/src/method_handler/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ mod client;
mod secret_manager;
mod utils;
mod wallet;
mod wallet_command;

pub use call_method::{
call_client_method, call_secret_manager_method, call_utils_method, call_wallet_method, CallMethod,
Expand Down
Loading

0 comments on commit 0005505

Please sign in to comment.