From c6a7afe81c0c7f89fc09d575c941aa1fe022f3eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lloren=C3=A7?= Date: Thu, 3 Oct 2024 09:34:15 +0200 Subject: [PATCH] update candid and declarations --- src/backend/backend.did | 5 ++++- src/declarations/backend/backend.did | 5 ++++- src/declarations/backend/backend.did.d.ts | 4 +++- src/declarations/backend/backend.factory.certified.did.js | 1 + src/declarations/backend/backend.factory.did.js | 1 + 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/backend/backend.did b/src/backend/backend.did index 6ca7a82df..0456b948e 100644 --- a/src/backend/backend.did +++ b/src/backend/backend.did @@ -158,7 +158,10 @@ type Result_4 = variant { type Result_5 = variant { Ok : UserProfile; Err : GetUserProfileError }; type Result_6 = variant { Ok : MigrationReport; Err : text }; type Result_7 = variant { Ok; Err : text }; -type SelectedUtxosFeeError = variant { InternalError : record { msg : text } }; +type SelectedUtxosFeeError = variant { + PendingTransactions; + InternalError : record { msg : text }; +}; type SelectedUtxosFeeRequest = record { network : BitcoinNetwork; amount_satoshis : nat64; diff --git a/src/declarations/backend/backend.did b/src/declarations/backend/backend.did index 6ca7a82df..0456b948e 100644 --- a/src/declarations/backend/backend.did +++ b/src/declarations/backend/backend.did @@ -158,7 +158,10 @@ type Result_4 = variant { type Result_5 = variant { Ok : UserProfile; Err : GetUserProfileError }; type Result_6 = variant { Ok : MigrationReport; Err : text }; type Result_7 = variant { Ok; Err : text }; -type SelectedUtxosFeeError = variant { InternalError : record { msg : text } }; +type SelectedUtxosFeeError = variant { + PendingTransactions; + InternalError : record { msg : text }; +}; type SelectedUtxosFeeRequest = record { network : BitcoinNetwork; amount_satoshis : nat64; diff --git a/src/declarations/backend/backend.did.d.ts b/src/declarations/backend/backend.did.d.ts index 207b91e30..e8c53a163 100644 --- a/src/declarations/backend/backend.did.d.ts +++ b/src/declarations/backend/backend.did.d.ts @@ -172,7 +172,9 @@ export type Result_4 = { Ok: SelectedUtxosFeeResponse } | { Err: SelectedUtxosFe export type Result_5 = { Ok: UserProfile } | { Err: GetUserProfileError }; export type Result_6 = { Ok: MigrationReport } | { Err: string }; export type Result_7 = { Ok: null } | { Err: string }; -export type SelectedUtxosFeeError = { InternalError: { msg: string } }; +export type SelectedUtxosFeeError = + | { PendingTransactions: null } + | { InternalError: { msg: string } }; export interface SelectedUtxosFeeRequest { network: BitcoinNetwork; amount_satoshis: bigint; diff --git a/src/declarations/backend/backend.factory.certified.did.js b/src/declarations/backend/backend.factory.certified.did.js index 7ae7e0c07..aadbeb5e0 100644 --- a/src/declarations/backend/backend.factory.certified.did.js +++ b/src/declarations/backend/backend.factory.certified.did.js @@ -119,6 +119,7 @@ export const idlFactory = ({ IDL }) => { utxos: IDL.Vec(Utxo) }); const SelectedUtxosFeeError = IDL.Variant({ + PendingTransactions: IDL.Null, InternalError: IDL.Record({ msg: IDL.Text }) }); const Result_4 = IDL.Variant({ diff --git a/src/declarations/backend/backend.factory.did.js b/src/declarations/backend/backend.factory.did.js index 85b7a0434..f603f188a 100644 --- a/src/declarations/backend/backend.factory.did.js +++ b/src/declarations/backend/backend.factory.did.js @@ -119,6 +119,7 @@ export const idlFactory = ({ IDL }) => { utxos: IDL.Vec(Utxo) }); const SelectedUtxosFeeError = IDL.Variant({ + PendingTransactions: IDL.Null, InternalError: IDL.Record({ msg: IDL.Text }) }); const Result_4 = IDL.Variant({