Skip to content

Commit 0c0f124

Browse files
committed
chore(client-wasm): deprecate cardano database v1 methods
1 parent ba4781e commit 0c0f124

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mithril-client-wasm/src/client_wasm.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,11 @@ impl MithrilClient {
159159
}
160160

161161
/// Call the client to get a snapshot from a digest
162+
///
163+
/// @deprecated superseded by `get_cardano_database_v2_snapshot`
162164
#[wasm_bindgen]
163165
pub async fn get_cardano_database_snapshot(&self, digest: &str) -> WasmResult {
166+
#[allow(deprecated)]
164167
let result = self
165168
.client
166169
.cardano_database()
@@ -175,8 +178,11 @@ impl MithrilClient {
175178
}
176179

177180
/// Call the client to get the list of available snapshots
181+
///
182+
/// @deprecated superseded by `list_cardano_database_v2`
178183
#[wasm_bindgen]
179184
pub async fn list_cardano_database_snapshots(&self) -> WasmResult {
185+
#[allow(deprecated)]
180186
let result = self
181187
.client
182188
.cardano_database()

0 commit comments

Comments
 (0)