Skip to content
Draft
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
12 changes: 12 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ chacha20poly1305 = { version = "0.11.0", default-features = false, features = [
] }
tokio = { version = "1", default-features = false, features = ["rt"] }
hex = { version = "0.4.3", default-features = false }
nonasync = { version = "0.1.3", default-features = false }
rand = { version = "0.10.1", default-features = false, features = [
"thread_rng",
] }
Expand Down Expand Up @@ -71,6 +72,7 @@ time = { version = "0.3.52", default-features = false }
file-format = { version = "0.29.0", default-features = false, features = [
"reader",
] }
fs2 = { version = "0.4.3", default-features = false }
url = { version = "2.5", default-features = false }
walkdir = { version = "2.5.0", default-features = false }
zip = { version = "8.6.0", default-features = false, features = [
Expand Down
12 changes: 12 additions & 0 deletions bindings/c-ffi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions bindings/uniffi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bindings/uniffi/src/rgb-lib.udl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ interface RgbLibError {
InsufficientAssignments(string asset_id, AssignmentsCollection available);
InsufficientBitcoins(u64 needed, u64 available);
Internal(string details);
RgbOperationInProgress(string operation_id);
InvalidAddress(string details);
InvalidAmountZero();
InvalidAssignment();
Expand Down
7 changes: 7 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,13 @@ pub enum Error {
details: String,
},

/// An RGB stock transition is waiting for its surrounding protocol to commit or roll back
#[error("RGB operation {operation_id} is in progress")]
RgbOperationInProgress {
/// Stable identifier of the operation that owns the RGB stock
operation_id: String,
},

/// An invalid bitcoin address has been provided
#[error("Address error: {details}")]
InvalidAddress {
Expand Down
Loading
Loading